/*
 * The Docket — structural styles for the Quotes From Courts 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-quotes-grid {
	display: grid;
}

.docket-quotes-card {
	--docket-quotes-gradient-start: rgba(0, 0, 0, 0.05);
	--docket-quotes-gradient-end: rgba(0, 0, 0, 0.82);
	position: relative;
	overflow: hidden;
	background: #2b2a26;
	transition: transform 0.25s ease;
}

.docket-quotes-grid.docket-quotes-hover-scale .docket-quotes-card:hover,
.docket-quotes-grid.docket-quotes-hover-scale .docket-quotes-card:focus-visible {
	transform: scale(1.02);
}

.docket-quotes-card[role='button'] {
	cursor: pointer;
}

.docket-quotes-card video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* YouTube preview (thumbnail + muted autoplay iframe layered on top) */
.docket-quotes-yt {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #000;
}

.docket-quotes-yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.docket-quotes-yt-frame {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	max-width: none;
	pointer-events: none; /* clicks go to the card (lightbox) */
	opacity: 0;
	transition: opacity 0.3s ease;
}

.docket-quotes-yt-frame.is-ready {
	opacity: 1;
}

.docket-quotes-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(
		to bottom,
		var(--docket-quotes-gradient-start) 45%,
		var(--docket-quotes-gradient-end) 100%
	);
	pointer-events: none;
}

.docket-quotes-quote,
.docket-quotes-court {
	margin: 0;
}

.docket-quotes-quote {
	margin-bottom: 10px;
}

/* Lightbox modal (built dynamically by JS) */
.docket-quotes-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
	background: rgba(10, 10, 8, 0.92);
}

.docket-quotes-modal.is-open {
	display: flex;
}

.docket-quotes-modal-inner {
	position: relative;
	max-height: 90vh;
}

.docket-quotes-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #f6f1e7;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.docket-quotes-modal-video {
	max-height: 90vh;
	max-width: 90vw;
	aspect-ratio: 9 / 16;
	object-fit: contain;
	background: #000;
	display: block;
}

.docket-quotes-modal-yt {
	display: none;
	height: 90vh;
	max-width: 90vw;
	background: #000;
}

.docket-quotes-modal-yt iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
