/* Product page gallery (moved from HIEJB Product Video 1.0.2). */

/* Arrows in the big image's lower corners, just above the watermark. The image is
   square and full width, so cqw measures down it: 88%, at least 50px from the bottom. */
.woocommerce-product-gallery { container-type: inline-size; }
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav a {
	position: absolute; top: min(88cqw, 100cqw - 50px); z-index: 9; width: 40px; height: 40px; margin-top: -20px;
	border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	font-size: 0; opacity: 1; overflow: hidden; text-indent: 0; cursor: pointer;
}
.woocommerce-product-gallery .flex-direction-nav a:before {
	content: ''; font-family: inherit; text-shadow: none;
	position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -7px;
	border: solid #333; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.woocommerce-product-gallery .flex-direction-nav a.flex-prev:before { margin-left: -3px; transform: rotate(-135deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: .35; cursor: default; }

/* Even thumbnail gaps; the extra class beats Woo's 25%-width columns rule. */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs::before,
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs::after { display: none; }
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li {
	float: none; width: auto; margin: 0; padding: 0;
}
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li img { display: block; width: 100% !important; }
