/* Product Video - its own gallery slide after the featured photo */
.wom-pv-slide { position: relative; }

.wom-pv {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
}

/* YouTube preview image shown until the video plays */
.wom-pv-poster {
	position: absolute;
	inset: 0;
	background: #000 center / cover no-repeat;
	transition: opacity 0.35s ease;
}

/* Big YouTube button in the middle of the video slide */
.wom-pv-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
	filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
	transition: transform 0.15s ease;
	z-index: 3;
}
.wom-pv-btn:hover { transform: translate(-50%, -50%) scale(1.08); }

.wom-pv-frame {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.35s ease;
}
.wom-pv-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Transparent layer over the player: taps toggle sound/pause, swipes go to the gallery.
   YouTube's own control bar (bottom 48px) stays usable. */
.wom-pv-shield {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 48px;
	display: none;
	cursor: pointer;
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
	z-index: 2;
}

.wom-pv-sound {
	position: absolute;
	top: 12px;
	left: 12px;
	display: none;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(15, 15, 15, 0.8);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	pointer-events: none;
	z-index: 3;
}

.wom-pv.is-playing .wom-pv-frame { opacity: 1; }
.wom-pv.is-playing .wom-pv-poster { opacity: 0; }
.wom-pv.is-playing .wom-pv-shield { display: block; }
.wom-pv.is-playing .wom-pv-btn { display: none; }
.wom-pv.is-playing.is-muted .wom-pv-sound { display: block; }
.wom-pv.is-playing.is-paused .wom-pv-btn { display: block; }

/* Mini-thumb of the video: YouTube preview + big YouTube button */
.flex-control-thumbs li.wom-pv-thumb-li { position: relative; }
.flex-control-thumbs li.wom-pv-thumb-li img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #000;
}
.wom-pv-thumb-btn {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	line-height: 0;
	pointer-events: none;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.wom-pv-thumb-btn svg { width: 46%; min-width: 26px; max-width: 42px; height: auto; display: block; margin: 0 auto; }
