/* Salient Product Video – Lightbox-modus */

/* ---- Play-knop op de hoofdfoto ---- */
.spv-play-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.spv-play-badge__icon {
	position: relative;
	display: block;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.92 );
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.28 );
	backdrop-filter: blur( 2px );
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Play-driehoek */
.spv-play-badge__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -40%, -50% );
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #1f2937;
}

.spv-play-badge__label {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	color: #fff;
	background: rgba( 17, 24, 39, 0.72 );
	backdrop-filter: blur( 2px );
}

.spv-play-badge:hover .spv-play-badge__icon,
.spv-play-badge:focus-visible .spv-play-badge__icon {
	transform: scale( 1.08 );
	background: #fff;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.34 );
}

.spv-play-badge:focus-visible {
	outline: none;
}

@media ( max-width: 600px ) {
	.spv-play-badge__icon {
		width: 58px;
		height: 58px;
	}
	.spv-play-badge__icon::before {
		border-width: 10px 0 10px 17px;
	}
}

/* ---- Overlay / lightbox ---- */
.spv-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.spv-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.spv-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.82 );
	backdrop-filter: blur( 3px );
}

.spv-lightbox__dialog {
	position: relative;
	width: min( 92vw, 960px );
	max-height: 88vh;
	transform: scale( 0.96 );
	transition: transform 0.25s ease;
}

.spv-lightbox.is-open .spv-lightbox__dialog {
	transform: scale( 1 );
}

.spv-lightbox__video {
	display: block;
	width: 100%;
	max-height: 88vh;
	background: #000;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.5 );
}

.spv-lightbox__close {
	position: fixed;
	top: 16px;
	right: 18px;
	z-index: 2;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 26px;
	line-height: 42px;
	color: #111;
	background: rgba( 255, 255, 255, 0.92 );
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.3 );
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.spv-lightbox__close:hover,
.spv-lightbox__close:focus-visible {
	transform: scale( 1.06 );
	background: #fff;
	outline: none;
}

@media ( prefers-reduced-motion: reduce ) {
	.spv-lightbox,
	.spv-lightbox__dialog,
	.spv-play-badge__icon,
	.spv-lightbox__close {
		transition: none;
	}
	.spv-lightbox__dialog {
		transform: none;
	}
}
