/**
 * Video Channel. Cards keep the design's red play mark and duration; choosing one opens the
 * shared viewer (assets/js/lightbox.js) rather than a stage above the grid.
 */

.as-videos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-video {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.as-video__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1152 / 648;
	border-radius: 4px;
	background: #e3e3e3;
}

.as-video__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.as-video__shade {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 22, 0.12);
}

.as-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--as-red);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
}

.as-video__play svg {
	margin-left: 3px;
}

.as-video.is-unavailable .as-video__play {
	opacity: 0.55;
}

.as-video__info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.as-video__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	line-height: 1.25;
	color: var(--as-page-ink);
}

.as-video__title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.as-video__duration {
	font-size: 14px;
}

.as-video:focus-visible {
	outline: 2px solid var(--as-page-marker);
	outline-offset: 4px;
}

/* The link to the YouTube channel, under the grid. */
.as-videos__more {
	margin: 48px 0 0;
}
