/**
 * FSO video lightbox — dialog chrome for assets/js/video-lightbox.js.
 *
 * Replaces the Base44 VideoTestimonialCard modal. The stage uses object-fit:contain
 * rather than Base44's object-cover: the concert-night clip is a vertical phone
 * video, and cover would crop the performers out of frame.
 */

.fso-vlb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 95%, transparent);
	backdrop-filter: blur(4px);
	animation: fso-vlb-in 0.25s ease both;
}

@keyframes fso-vlb-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.fso-vlb__panel {
	position: relative;
	width: 100%;
	max-width: 896px;
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--wp--preset--color--card-navy) 95%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--midnight) 98%, transparent) 100%
	);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 25%, transparent);
}

.fso-vlb__close {
	position: absolute;
	top: -3rem;
	right: 0;
	padding: 0.5rem;
	background: none;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	color: color-mix(in srgb, var(--wp--preset--color--parchment) 60%, transparent);
	transition: color 0.3s ease;
}

.fso-vlb__close:hover,
.fso-vlb__close:focus-visible {
	color: var(--wp--preset--color--gold);
}

.fso-vlb__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--ink);
	overflow: hidden;
}

.fso-vlb__stage video,
.fso-vlb__stage iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Vertical source clips must letterbox, not crop. */
.fso-vlb__stage video {
	object-fit: contain;
}

/* Portrait clip: reshape the dialog to the footage instead of pillarboxing it. */
.fso-vlb--portrait .fso-vlb__panel {
	max-width: min(420px, 100%);
}

.fso-vlb--portrait .fso-vlb__stage {
	aspect-ratio: 9 / 16;
	max-height: 70vh;
}

.fso-vlb__info {
	padding: var(--wp--preset--spacing--40);
}

.fso-vlb__kicker {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--tiny);
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.fso-vlb__title {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--parchment);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

.fso-vlb__name {
	margin: 0;
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--tiny);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.fso-vlb__loc {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: color-mix(in srgb, var(--wp--preset--color--parchment) 40%, transparent);
}

@media (max-width: 600px) {
	.fso-vlb { padding: 1rem; }
	.fso-vlb__close { top: -2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fso-vlb { animation: none; }
}
