/*--------------------------------------------------------------
# Video Highlights — Video thumbnail gallery with play buttons
# Figma node 1:38 — 3 video cards (16:9) with overlay play icon and caption
--------------------------------------------------------------*/

.video-highlights__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media screen and (min-width: 640px) {
	.video-highlights__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Video card — works as <div> or <a> */
.video-card {
	position: relative;
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: var(--color-surface-dark);
	text-decoration: none;
	color: inherit;
}

.video-card__thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Play button overlay */
.video-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-surface-overlay);
	transition: background-color 0.2s ease;
}

.video-card:hover .video-card__overlay {
	background-color: rgba(0, 0, 0, 0.55);
}

.video-card__play-icon {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--color-text-white);
	transition: transform 0.2s ease;
}

.video-card:hover .video-card__play-icon {
	transform: scale(1.1);
}

/* Caption bar at bottom */
.video-card__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.75rem;
	background: linear-gradient(to top, #000 0%, transparent 100%);
}

.video-card__title {
	font-size: 0.75rem;
	font-weight: var(--font-weight-thin);
	line-height: 1.333;
	color: var(--color-text-white);
	margin: 0;
}
