/*
 * YT Funnel: Content to Start With — mobile-first.
 * Mobile: single column of short cards. Desktop: 3-column grid.
 * Cards are an image with a left-lightening gradient and an overlaid label.
 */

.yt-cards__title {
	margin-bottom: 3rem;
	color: var(--ytf-black, #141414);
	font-family: Inter, sans-serif;
	font-size: 30px;
	line-height: 34px;
	letter-spacing: -0.9px;
	text-align: left;
}

.yt-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.yt-cards__card {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	height: 7.8rem;
	border-radius: 1.6rem;
	text-decoration: none;
	color: var(--ytf-black, #141414);
	transition: transform 250ms ease, box-shadow 250ms ease;
}

.yt-cards__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Lighten the label side for legibility. */
.yt-cards__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0.92) 16%, rgba(255, 255, 255, 0) 68%);
	pointer-events: none;
}

.yt-cards__label {
	position: relative;
	z-index: 2;
	max-width: 60%;
	padding-left: 1.8rem;
	font-weight: 500;
	font-size: 2rem;
	line-height: 2.4rem;
	letter-spacing: -0.04rem;
}

.yt-cards__card:hover,
.yt-cards__card:focus-visible {
	transform: scale(1.02);
	box-shadow: 0 1rem 2.4rem rgba(20, 20, 20, 0.12);
}

@media screen and (min-width: 600px) {
	.yt-cards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.yt-cards__title {
		margin-bottom: 3.8rem;
		font-size: 4.2rem;
		line-height: 4.8rem;
		letter-spacing: -0.126rem;
	}

	.yt-cards__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 4.3rem 4.3rem;
	}

	.yt-cards__card {
		height: 13rem;
		border-radius: 2rem;
	}

	.yt-cards__label {
		padding-left: 2.5rem;
		font-size: 3rem;
		line-height: 3.6rem;
		letter-spacing: -0.06rem;
	}
}
