/*
 * The Docket — structural styles for the Interviews Elementor widget.
 *
 * Colors, typography, spacing, and gaps are controlled from the
 * Elementor panel (Content + Style tabs) and are injected by Elementor
 * as widget-scoped CSS. This file only defines the *shape*.
 */

.docket-widget-heading-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 2px solid #201e1a;
	padding-bottom: 10px;
	margin-bottom: 22px;
	gap: 12px;
}

.docket-widget-heading {
	font-family: 'Source Serif 4', serif;
	font-weight: 700;
	font-size: 24px;
}

.docket-widget-see-all {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
	text-decoration: none;
}

.docket-interviews-grid {
	display: grid;
}

.docket-interviews-video-wrap {
	position: relative;
	overflow: hidden;
	background: #dad2c0;
}

.docket-interviews-video-wrap video,
.docket-interviews-video-wrap img,
.docket-interviews-video-wrap iframe {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.docket-interviews-play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.docket-interviews-play-icon-circle {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.docket-interviews-play-icon-triangle {
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 15px solid currentColor;
	margin-left: 3px;
	display: inline-block;
}

.docket-interviews-headline {
	margin: 12px 0 6px;
}

.docket-interviews-headline a {
	color: inherit;
	text-decoration: none;
	font: inherit;
}

.docket-interviews-meta {
	margin: 0;
}

/* ---- YouTube / Vimeo in-card preview ----
 * The API replaces the host <div> with an <iframe>, so target both. */
.docket-interviews-video-wrap { container-type: size; }
.docket-interviews-video-wrap .docket-interviews-embed-poster {
	position: absolute; inset: 0;
}
.docket-interviews-video-wrap > .docket-interviews-embed-host,
.docket-interviews-video-wrap > iframe {
	position: absolute;
	top: 50%; left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none; /* clicks go to the wrapper (lightbox) */
	opacity: 0;
	transition: opacity .4s ease;
}
.docket-interviews-video-wrap.docket-preview-on > iframe { opacity: 1; }
.docket-interviews-video-wrap.is-clickable { cursor: pointer; }

/* ---- Lightbox ---- */
.docket-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; }
.docket-lightbox.is-open { display: flex; }
.docket-lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.docket-lightbox-inner { position: relative; z-index: 1; }
.docket-lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 4px; }
.docket-lightbox-media video,
.docket-lightbox-media iframe { display: block; width: 80vw; max-width: 960px; aspect-ratio: 16/9; height: auto; background: #000; border: 0; }
