.chefs {
	background: var(--c-bg);
}

.chefs__more-wrap {
	margin: 0;
}

.chefs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.chef {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 1.25rem;
	overflow: hidden;
	margin-block-start: 0;
}

.chef__photo,
.chef__photo img {
	margin: 0;
	block-size: 100%;
}

.chef__photo img {
	inline-size: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.chef:hover .chef__photo img {
	transform: scale(1.05);
}

.chef__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem;
	background: linear-gradient(
		to top,
		rgb(17 17 17 / 0.95) 0%,
		rgb(17 17 17 / 0.15) 55%,
		transparent 100%
	);
}

.chef__name {
	margin-block-end: 0.3125rem;
	font-family: var(--ff-alt);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--c-white);
}

.chef__name a {
	color: inherit;
	text-decoration: none;
}

/* Stretches the name's link over the whole card — one hit area, one link. */
.chef__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.chef__role {
	margin-block-end: 0.875rem;
	margin-block-start: 0;
	font-size: 0.8125rem;
	color: rgb(255 255 255 / 0.6);
}

.chef__pill {
	align-self: flex-start;
	padding: 0.3125rem 0.875rem;
	margin-block-start: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--c-black);
	background: var(--c-gold);
	border-radius: 6.25rem;
	width: 100%;
}

@media (width <= 68.75rem) {
	.chefs__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (width <= 48rem) {
	.chefs__grid {
		grid-template-columns: 1fr;
	}

	.chef {
		aspect-ratio: 4 / 3;
	}

	.chef__name {
		font-size: 1.25rem;
	}
}

@media (width <= 30rem) {
	.chef {
		aspect-ratio: 3 / 4;
	}
}

@media (width <= 20rem) {
	.chef {
		aspect-ratio: 4 / 3;
	}

	.chef__overlay {
		padding: 1.25rem;
	}

	.chef__name {
		font-size: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chef__photo img {
		transition: none;
	}

	.chef:hover .chef__photo img {
		transform: none;
	}
}