/**
 * PROM video lightbox (markup built by assets/js/lightbox.js).
 * Figma is the look and feel; sizes here are fluid so it stays consistent at every width.
 */

.prom-lb {
	--lb-bg: #3F3831;
	--lb-yellow: #E8D475;
	--lb-brown: #474038;
	--lb-pad: clamp(16px, 1.8vw, 28px);
	/* The site header's edges (nav.css --prom-nav-pad, 26px) and its buttons' top (27px), so CLOSE / MENU sit exactly
	   where CONTACT / MENU are on the page, and the details line up with the page's left edge (PROM-12). */
	--lb-edge: 1.4444444444444444rem;
	--lb-top: 27px;
	--lb-cream: #FAF6E3;
	/* Video width: as wide as the design wants, but always leaving room for the arrows and details. */
	--lb-frame-w: min(990px, 68vw, calc((100vh - 260px) * 16 / 9));
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto 1fr;
	color: var(--lb-yellow);
	/* Semplice's own link colours (Customize › Typography): its global "a" and "a:hover" rules use these, and the
	   site-wide hover colour is black, which turned the director link black on hover. Scoped to the lightbox. */
	--smp-link-color: var(--lb-yellow);
	--smp-hover-color: var(--lb-yellow);
	font-family: "NeulisAlt-Medium-1", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.prom-lb[hidden] { display: none; }
/* Scroll lock while open that keeps the page's scrollbar (dev review, 2026-11-12). `overflow: hidden` removed the
   scrollbar, so the page behind got 15px wider on open and narrower on close (with "always show scroll bars").
   Instead the window keeps its scrollbar (`overflow-y: scroll` on html, which also stops Semplice's
   `body { overflow-y: scroll }` from applying to the window), and the body is pinned where it was scrolled to
   (lightbox.js sets --prom-lb-lock-top and scrolls back on close). Also the lock that works on iPhone. */
html.prom-lb-open { overflow-y: scroll; }
html.prom-lb-open body {
	position: fixed;
	top: var(--prom-lb-lock-top, 0px);
	left: 0;
	right: 0;
	overflow: visible; /* the body must not become a scroll box with its own scrollbar */
}

.prom-lb__bg {
	position: absolute;
	inset: 0;
	background: var(--lb-bg);
}

/* Top bar: same pills as the site header. */
.prom-lb__top {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: flex-end;
	gap: 12px; /* Figma "Navigation" */
	padding: var(--lb-top) var(--lb-edge) var(--lb-pad);
}
.prom-lb__btn {
	appearance: none;
	border: 0;
	/* The header's buttons (PROM-12, Figma "Navigation"): 100 × 32, radius 4, 16px, cream on hover. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 100px;
	height: 32px;
	border-radius: 4px;
	padding: 0 12px;
	background: var(--lb-yellow);
	color: var(--lb-brown);
	font: inherit;
	font-size: 16px;
	line-height: 1;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 160ms ease-out, background-color 200ms ease;
}
.prom-lb__btn:hover { background: var(--lb-cream); }
.prom-lb__btn:active { transform: scale(0.97); }

/* Stage: the video in the middle, arrows either side. */
.prom-lb__stage {
	position: relative;
	z-index: 2; /* above the details, so a peek panel slides over them; the top bar (3) stays on top */
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding-bottom: clamp(110px, 17vh, 170px); /* room for the details, whatever their height */
}
.prom-lb__frame {
	position: relative;
	z-index: 1;
	width: var(--lb-frame-w);
	pointer-events: auto;
	will-change: transform;
}
.prom-lb__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}
.prom-lb__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	cursor: pointer;
}
.prom-lb.is-idle .prom-lb__media,
.prom-lb.is-idle .prom-lb__video { cursor: none; }

/* Big PLAY button: same yellow circle as the grid's PLAY cursor. Shown when sound needs a click. */
.prom-lb__bigplay {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border: 0;
	border-radius: 50%;
	background: var(--lb-yellow);
	color: var(--lb-brown);
	font: inherit;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.8);
	visibility: hidden; /* also out of the tab order while hidden */
	transition: opacity 200ms ease, transform 300ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 200ms;
}
.prom-lb.is-waiting .prom-lb__bigplay {
	opacity: 1;
	transform: scale(1);
	visibility: visible;
	transition-delay: 0s;
}
.prom-lb__bigplay:active { transform: scale(0.95); }

/* Controls along the bottom of the video; they fade away while the film plays. */
.prom-lb__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 28px 16px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
	font-size: 12px;
	transition: opacity 300ms ease;
}
.prom-lb.is-idle .prom-lb__controls:not(:focus-within) { opacity: 0; } /* keyboard focus keeps them visible */
.prom-lb.is-waiting .prom-lb__controls { opacity: 0; visibility: hidden; }
.prom-lb__ctl {
	appearance: none;
	border: 0;
	background: none;
	padding: 4px;
	color: inherit;
	font: inherit;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.prom-lb__play { width: 26px; height: 26px; display: grid; place-items: center; }
.prom-lb__icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px; /* play triangle */
	border-color: transparent transparent transparent currentColor;
}
.prom-lb.is-playing .prom-lb__icon {
	width: 11px;
	height: 14px;
	border: 0;
	border-left: 3.5px solid currentColor;
	border-right: 3.5px solid currentColor; /* pause bars */
}
.prom-lb__scrub {
	position: relative;
	flex: 1;
	height: 22px;
	cursor: pointer;
	touch-action: none;
	outline-offset: 4px;
}
.prom-lb__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	background: rgba(232, 212, 117, 0.25);
	transition: transform 200ms ease-out;
}
.prom-lb__scrub:hover .prom-lb__track { transform: scaleY(2); }
.prom-lb__buffered,
.prom-lb__progress {
	position: absolute;
	inset: 0;
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.prom-lb__buffered { background: rgba(232, 212, 117, 0.4); }
.prom-lb__progress { background: var(--lb-yellow); }
.prom-lb__time { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Arrows: a small hit area around the chevron only (like fela.tv), not the whole strip beside the video,
   so the cursor resting beside the video doesn't open a preview. Centred on the video, about 70px from
   its edge; on very wide screens kept inside the preview panel, so moving from the arrow onto the panel
   never leaves the hover area. */
.prom-lb__nav {
	--lb-nav-size: 72px;
	--lb-strip: calc((100vw - var(--lb-frame-w)) / 2);  /* screen edge to video edge */
	--lb-peek-w: min(460px, 34vw);                      /* preview panel width */
	--lb-nav-x: max(0px, min(
		calc(var(--lb-strip) - min(70px, var(--lb-strip) * 0.3) - 7px - var(--lb-nav-size) / 2),
		calc(var(--lb-peek-w) - var(--lb-nav-size) - 16px)
	));
	position: absolute;
	top: calc(50% - clamp(110px, 17vh, 170px) / 2 - var(--lb-nav-size) / 2); /* the video's middle (stage minus the details' room) */
	z-index: 2;
	pointer-events: auto;
	display: grid;
	place-items: center;
	width: var(--lb-nav-size);
	height: var(--lb-nav-size);
	appearance: none;
	border: 0;
	padding: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.prom-lb__nav--prev { left: var(--lb-nav-x); }
.prom-lb__nav--next { right: var(--lb-nav-x); }
.prom-lb__chev {
	position: relative; /* above the panel, which comes first in the markup */
	display: block;
	line-height: 0;
}
.prom-lb__nav--prev .prom-lb__chev svg { transform: scaleX(-1); } /* mirror the svg, so GSAP can own .prom-lb__chev's transform */
.prom-lb__chev svg { transition: translate 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.prom-lb__nav--prev:hover .prom-lb__chev svg { translate: -4px 0; }
.prom-lb__nav--next:hover .prom-lb__chev svg { translate: 4px 0; }
.prom-lb--single .prom-lb__nav,
.prom-lb--single .prom-lb__mnav { display: none; }

/* Peek panel (fela.tv-style): slides in from the screen edge over the video, previewing that film. */
.prom-lb__peek-panel {
	/* Full screen height, same colour as the lightbox (like fela.tv): it reads as the page
	   sliding over the video, not as a card. Fixed, so it spans the whole viewport. */
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(460px, 34vw);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lb-bg);
	pointer-events: none;
	will-change: transform;
}
.prom-lb__nav--prev .prom-lb__peek-panel { left: 0; transform: translateX(-100%); }
.prom-lb__nav--next .prom-lb__peek-panel { right: 0; transform: translateX(100%); }
.prom-lb__nav.is-peeking .prom-lb__peek-panel { pointer-events: auto; }
.prom-lb__peek-card {
	display: block;
	width: 78%;
	opacity: 0;
}
/* The homepage tile treatment (PROM-12): title centred over the picture, client near its bottom, both inside it.
   Sizes follow the tile's width (the homepage's 40px title and 16px client on a ~630px tile). */
.prom-lb__peek-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	container-type: inline-size;
}
.prom-lb__peek-media img,
.prom-lb__peek-media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.prom-lb__peek-title {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6%;
	font-family: "NeulisAlt-SemiBold-1", sans-serif;
	font-size: clamp(16px, 6.4cqw, 40px);
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
}
.prom-lb__peek-client {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8.5%;
	z-index: 1;
	font-size: clamp(11px, 2.55cqw, 16px);
	text-align: center;
}

/* Details, bottom left; full screen, bottom right. */
.prom-lb__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	/* Figma /lightbox (1440 × 868): the title's bottom 69px above the window's bottom. */
	padding: 0 200px min(69px, 8vh) var(--lb-edge);
	pointer-events: none;
}
.prom-lb__meta a,
.prom-lb__meta button { pointer-events: auto; }
.prom-lb__text { min-width: 0; }
.prom-lb__director {
	/* Figma: director 16px, 9px, client 16px, 11px, title 37px (each text box 18px tall at 16px). */
	display: inline-block;
	margin-bottom: 9px;
	color: inherit;
	font-size: 16px;
	line-height: 18px;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.prom-lb__director:hover { text-decoration-thickness: 2px; }
.prom-lb__director[hidden] { display: none; }
.prom-lb__client {
	margin: 0 0 11px;
	font-size: 16px;
	line-height: 18px;
}
.prom-lb__title {
	margin: 0;
	color: inherit;
	font-family: "NeulisAlt-SemiBold-1", sans-serif;
	font-size: clamp(26px, 2.57vw, 37px);
	font-weight: normal;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	max-width: 22ch;
}
.prom-lb__mnav { display: none; }
.prom-lb__fs {
	position: absolute;
	right: var(--lb-pad);
	bottom: var(--lb-pad);
	z-index: 1; /* under a peek panel */
	display: inline-flex;
	align-items: center;
	gap: 6px;
	appearance: none;
	border: 0;
	padding: 4px 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
}

/* Full screen: the media box fills the screen with its own controls (native full screen: iPhone's player only). */
.prom-lb__media:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }

/* Expanded view (PROM-12, florence.co reference): "Full screen" grows the video to fill the window, with an ✕ at
   the top right that brings it back into the lightbox. It's the same video element, so playback carries on.
   The frame becomes a fixed, black, window-sized layer; the media box is the largest 16:9 that fits, centred.
   lightbox.js animates the media box from its old place to the new one with a transform (both are 16:9, so it's
   one uniform scale). Everything else fades out and is inert meanwhile. */
.prom-lb__frame::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 450ms ease;
}
.prom-lb.is-expanded .prom-lb__frame {
	position: fixed;
	inset: 0;
	z-index: 5;
	width: auto;
	display: grid;
	place-items: center;
}
.prom-lb.is-expanded .prom-lb__frame::before { opacity: 1; }
.prom-lb.is-expanded .prom-lb__media {
	width: min(100%, 100dvh * 16 / 9); /* 100%: the window minus the page scrollbar the lock keeps */
	transform-origin: 0 0;
}
/* lightbox.js fades these out (GSAP owns their opacity); once faded they're hidden and inert. */
.prom-lb.is-expanded :is(.prom-lb__top, .prom-lb__meta, .prom-lb__fs, .prom-lb__nav) {
	visibility: hidden;
	transition: visibility 0s linear 250ms;
}
.prom-lb__exit {
	position: fixed;
	top: var(--lb-top);
	right: var(--lb-edge);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	appearance: none;
	border: 0;
	padding: 0;
	background: none;
	color: var(--lb-yellow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease, visibility 0s linear 250ms, transform 160ms ease-out;
}
.prom-lb__exit svg { width: 18px; height: 18px; }
.prom-lb.is-expanded .prom-lb__exit {
	opacity: 1;
	visibility: visible;
	transition: opacity 300ms ease 250ms, visibility 0s, transform 160ms ease-out;
}
.prom-lb__exit:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) {
	.prom-lb__frame::before,
	.prom-lb.is-expanded .prom-lb__exit { transition: none; }
}

.prom-lb button:focus-visible,
.prom-lb a:focus-visible,
.prom-lb [tabindex]:focus-visible { outline: 1px solid var(--lb-yellow); outline-offset: 3px; }

/* Tablet: a touch narrower video. */
@media (max-width: 1169.98px) {
	.prom-lb { --lb-frame-w: min(72vw, calc((100vh - 280px) * 16 / 9)); }
}

/* Mobile: video edge to edge, details centred underneath with the arrows beside them. */
@media (max-width: 799.98px) {
	.prom-lb { --lb-frame-w: calc(100vw - 32px); }
	/* The stage fills the screen so the video sits in the exact middle. */
	.prom-lb__stage { position: absolute; inset: 0; }
	.prom-lb__top { grid-row: 1; }
	.prom-lb__nav { display: none; }
	.prom-lb__fs {
		top: calc(50% + (100vw - 32px) * 9 / 32 + 8px); /* just under the video */
		bottom: auto;
		right: 16px;
		font-size: 11px;
	}
	.prom-lb__stage { padding-bottom: 0; }
	.prom-lb__meta {
		top: calc(50% + (100vw - 32px) * 9 / 32 + 56px); /* under the video and the full screen button */
		bottom: auto;
		align-items: center;
		justify-content: space-between;
		padding: 0 12px;
		text-align: center;
	}
	.prom-lb__text { flex: 1; display: flex; flex-direction: column; align-items: center; }
	.prom-lb__text .prom-lb__director { order: 3; margin: 6px 0 0; font-size: 12px; }
	.prom-lb__client { order: 2; font-size: 12px; margin: 2px 0 0; }
	.prom-lb__title { order: 1; font-size: 20px; max-width: 18ch; }
	.prom-lb__mnav {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		appearance: none;
		border: 0;
		background: none;
		color: inherit;
		cursor: pointer;
	}
	.prom-lb__mnav svg { width: 9px; height: 17px; }
	.prom-lb__mnav--prev svg { transform: scaleX(-1); }
	.prom-lb__controls { gap: 10px; padding: 22px 10px 6px; }
	.prom-lb__mute { display: none; }
}
