/* Solaire Product Video — gallery slide + thumbnail overlay */

/* Main video slide container */
.spv-video-slide {
	position: relative;
	overflow: hidden;
	background: #000;
}

/* Facade: 16:9 click-to-play */
.spv-facade {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	overflow: hidden;
	background: #000;
	display: block;
}

.spv-thumb-wrap {
	width: 100%;
	height: 100%;
	display: block;
}

.spv-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Play button */
.spv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.15s ease-out;
}

.spv-facade:hover .spv-play,
.spv-facade:focus .spv-play {
	transform: translate(-50%, -50%) scale(1.1);
}

.spv-play svg circle {
	transition: fill 0.15s ease-out;
}

.spv-facade:hover .spv-play svg circle,
.spv-facade:focus .spv-play svg circle {
	fill: rgba(0, 0, 0, 0.85);
}

/* Active iframe (replaces facade on click) */
.spv-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.spv-iframe-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Thumbnail strip: play icon overlay on video thumbnails */
.flex-control-thumbs li:has(img[src*="ytimg"]) {
	position: relative;
}

.flex-control-thumbs li:has(img[src*="ytimg"])::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	background-color: rgba(0, 0, 0, 0.65);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='6,3 17,10 6,17' fill='%23ffffff'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.spv-play,
	.spv-play svg circle {
		transition: none;
	}
}
