/*
 * Video rows (Figma: Discover - Leisure craft "Frame 39", Discover - Education "Frame 540").
 * The poster card itself is styled by the Videos section (.vid-card in sections/video/section.css).
 */

.vrows {
	display: grid;
	gap: 40px;
}

.vrows__head {
	display: grid;
	gap: 16px;
	max-width: 656px;
}

.vrows__heading {
	text-transform: uppercase;
}

.vrows__intro {
	max-width: 560px;
	color: var(--c-text-2);
}

.vrows__intro p + p {
	margin-top: var(--lh-body);
}

.vrows__list {
	display: grid;
	gap: 60px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vrows__row {
	display: grid;
	gap: 32px;
}

/* Tall posters carry their title on one line, cut short with an ellipsis. */
.vrows .vrows__label {
	-webkit-line-clamp: 1;
}

/* A poster without a title keeps its colours: only a light veil under the play button. */
.vrows__card--plain::before {
	background: rgb(0 0 0 / 0.15);
}

.vrows--tall .vrows__card {
	aspect-ratio: 328 / 400;
}

.vrows__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0;
}

.vrows__play .icon {
	width: 24px;
	height: 24px;
	transition: transform 0.2s;
}

.vrows__play:hover .icon {
	transform: scale(1.2);
}

.vrows__text {
	display: grid;
	justify-items: start;
	gap: 8px;
}

.vrows__lead--l {
	font-family: var(--f-display);
	font-size: var(--t-title-s);
	line-height: var(--lh-title-s);
	font-weight: 500;
}

.vrows__lead--m {
	color: var(--c-text-2);
}

@media (min-width: 768px) {
	.vrows {
		gap: 60px;
	}

	/* Poster and text side by side, the text at the foot of the poster. */
	.vrows__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: end;
		gap: 16px;
	}

	.vrows--wide .vrows__list {
		gap: 40px;
	}

	.vrows--tall .vrows__card {
		aspect-ratio: 560 / 640;
	}

	.vrows__lead--l {
		font-size: var(--t-title);
		line-height: var(--lh-title);
	}
}
