/**
 * Epoxy Table PDP — first gallery slide self-hosted autoplay video.
 */

body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video.wd-video-playing {
	position: relative;
	background: #111;
}

body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video .wd-video-actions {
	display: none !important;
}

/* Prefer the muted looping MP4 over the still photo on the first slide. */
body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video.wd-video-playing figure.woocommerce-product-gallery__image > a,
body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video.wd-video-hide-thumb figure.woocommerce-product-gallery__image > a {
	opacity: 0 !important;
	pointer-events: none !important;
}

body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video .wd-product-video-mp4,
body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video .wd-product-video {
	z-index: 2;
}

body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video video {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-height: min(70vh, 640px);
	object-fit: contain !important;
	background: #111;
}

/* Hide native controls chrome — autoplay loop only, no click-away UI. */
body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video video::-webkit-media-controls {
	display: none !important;
}

body.single-product.postid-15910 .woocommerce-product-gallery .product-image-wrap.wd-with-video video {
	pointer-events: none;
}
