/* Olevs product gallery: vertical thumbnails on the left, gold frame, arrows, counter, tag */
.olsf-on .woocommerce-product-gallery { position: relative; display: grid !important; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start; }
.olsf-on .woocommerce-product-gallery .flex-viewport,
.olsf-on .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; background: #fff; border: 1px solid #e2dbcf; box-shadow: 0 30px 60px -36px rgba(15,14,12,.45); }
.olsf-on .woocommerce-product-gallery .flex-viewport::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,169,110,.35); pointer-events: none; z-index: 2; }
.olsf-on .woocommerce-product-gallery .flex-viewport { position: relative; }
.olsf-on .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }

/* thumbnails: a column as tall as the photo, scrolls when there are many */
.olsf-on .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 2px 0 0 !important; height: 0; min-height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #c9a96e transparent; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { width: 3px; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb { background: #c9a96e; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs li { width: 84px !important; flex: 0 0 84px; margin: 0 !important; padding: 0 !important; float: none !important; list-style: none; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs img { width: 84px; height: 84px; object-fit: cover; display: block; border: 1px solid #e2dbcf; background: #fff; opacity: .62; transition: opacity .2s, border-color .2s; cursor: pointer; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.olsf-on .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: #c9a96e; box-shadow: inset 0 0 0 1px #c9a96e; }

/* arrows over the photo */
.olsf-on .woocommerce-product-gallery .flex-direction-nav { position: absolute; left: 100px; right: 0; top: 50%; margin: 0; padding: 0; list-style: none; z-index: 4; pointer-events: none; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav li { margin: 0; list-style: none; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav a { position: absolute; top: -22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(15,14,12,.82); color: #e2c99a; font-size: 26px; line-height: 1; text-decoration: none; pointer-events: auto; opacity: 0; transition: opacity .2s, background .2s; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 16px; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 16px; }
.olsf-on .woocommerce-product-gallery:hover .flex-direction-nav a { opacity: 1; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav a:hover { background: #0f0e0c; color: #fff; }
.olsf-on .woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: 0 !important; pointer-events: none; }

/* zoom button, tag, counter */
.olsf-on .woocommerce-product-gallery__trigger { top: 18px !important; right: 18px !important; left: auto !important; width: 38px !important; height: 38px !important; border-radius: 50% !important; background: rgba(15,14,12,.82) !important; z-index: 5 !important; }
.olsf-gtag { position: absolute; bottom: 16px; left: 18px; z-index: 5; padding: 5px 11px; background: rgba(15,14,12,.85); color: #e2c99a; font-family: "Hind Siliguri", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; border: 1px solid rgba(201,169,110,.45); pointer-events: none; }
.olsf-gcount { position: absolute; right: 18px; bottom: 16px; z-index: 5; padding: 4px 11px; background: rgba(255,255,255,.92); border: 1px solid #e2dbcf; color: #1a1814; font-family: "Hind Siliguri", sans-serif; font-size: 13px; font-weight: 600; pointer-events: none; }

/* phones: photo first, a strip of thumbnails under it */
@media (max-width: 767px) {
	.olsf-on .woocommerce-product-gallery { grid-template-columns: 1fr; gap: 10px; }
	.olsf-on .woocommerce-product-gallery .flex-viewport,
	.olsf-on .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; grid-row: 1; }
	.olsf-on .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; padding: 0 0 2px !important; }
	.olsf-on .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; flex: 0 0 64px; }
	.olsf-on .woocommerce-product-gallery .flex-control-thumbs img { width: 64px; height: 64px; }
	.olsf-on .woocommerce-product-gallery .flex-direction-nav { left: 0; }
	.olsf-on .woocommerce-product-gallery .flex-direction-nav a { opacity: 1; width: 38px; height: 38px; top: -19px; font-size: 22px; }
	.olsf-gtag { left: 14px; bottom: 12px; }
	.olsf-on .woocommerce-product-gallery__trigger { top: 14px !important; right: 14px !important; }
	.olsf-gcount { right: 14px; bottom: 12px; }
}
