/* Video Grid block — poster overlays + YouTube lightbox.
 * Layout/spacing/typography use Tailwind utilities in the template; this file
 * holds only what can't be expressed as a single utility. */

.video-grid__card {
	background: var(--color-morton-blue, #002fa7);
}

/* Centered play button — featured video only */
.video-grid__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 9999px;
	/* Morton Blue navy (#00053E) at 80% opacity; the yellow glyph (::before) stays
	   fully opaque because the alpha lives in the background-color, not in element
	   opacity. */
	background: rgba(0, 5, 62, 0.8);
	box-shadow: 0 6px 16px rgba(0, 5, 62, 0.25);
	transition: transform 0.2s ease;
	pointer-events: none;
}
/* Yellow play glyph with rounded corners (SVG so the triangle can be rounded). */
.video-grid__play::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.2 L17.5 12 L9 17.8 Z' fill='%23FFC72C' stroke='%23FFC72C' stroke-width='3.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 55% center;
	background-size: 56%;
}
.video-grid__card:hover .video-grid__play,
.video-grid__card:focus-visible .video-grid__play {
	transform: translate(-50%, -50%) scale(1.08);
}

/* Fallback overlay (only rendered when no branded thumbnail is uploaded) */
.video-grid__brand {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.03em;
	opacity: 0.9;
}
.video-grid__brand strong {
	display: block;
	font-size: 0.9rem;
}

/* Duration badge */
.video-grid__duration {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1;
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
}

/* ── Inline player ────────────────────────────────────────────────────────── */
/* Clicking a card replaces it with .video-grid__player, which reuses the card's
   box classes (aspect-video, rounded-2xl, overflow-hidden, relative); the iframe
   fills that box so the video plays in place instead of in a modal. */
.video-grid__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
