/**
 * Videos archive and single.
 *
 * Cards reuse the gallery teaser's poster and play icon. A video with no
 * featured image gets a night-and-green poster and the gold star. The player
 * is a 16:9 frame. Logical properties only.
 */

.videos-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.videos-grid > * {
	min-width: 0;
	margin: 0;
}

.vcard {
	height: 100%;
	margin: 0;
}

.vcard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.vcard__link:hover {
	color: inherit;
}

.vcard__title {
	margin-block: 0.75rem 0;
	margin-inline: 0;
	font: 600 1rem / 1.6 var(--font-display);
	color: var(--ink);
}

.vcard__link:hover .vcard__title {
	color: var(--hya-green-ink);
}

.vcard__duration {
	position: absolute;
	z-index: 1;
	inset-block-end: 0.75rem;
	inset-inline-start: 0.75rem;
	padding-block: 0.15rem;
	padding-inline: 0.55rem;
	border-radius: var(--r-sm);
	background: var(--night);
	color: var(--white);
	font: 600 0.75rem / 1.4 var(--font-display);
}

.video__poster--mark {
	background: linear-gradient(135deg, var(--night) 0%, var(--hya-green-ink) 140%);
}

.video__poster--mark .star {
	position: absolute;
	inset-inline-end: 0.9rem;
	inset-block-start: 0.9rem;
	width: 2.25rem;
	height: 2.25rem;
}

.video-single {
	padding-block: var(--section-y);
}

.video-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--night);
	border-radius: var(--r-lg);
	overflow: hidden;
}

.video-player iframe,
.video-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--night);
}

.video-player video {
	object-fit: contain;
}

.video-single__text {
	margin-block-start: 2rem;
}

@media (min-width: 768px) {
	.videos-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.videos-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
