/* ============================================================
   Team Grid section (layout "team_grid")
   Design ref: About Us.png y3040-4170. Light-grey band, centred
   intro, grid of members (circular ~190px photo / serif name /
   role). 5-up desktop, 3-up tablet, 2-up mobile.
   ============================================================ */

.team-grid {
	background: var(--color-light-grey);
	padding-block: var(--section-padding);
}

.team-grid__intro {
	max-width: 46rem;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.team-grid__heading {
	margin-bottom: var(--space-md);
}

.team-grid__text {
	margin: 0;
	line-height: 1.6;
}

/* ---- Members grid ---- */

.team-grid__members {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 1.5rem;
}

.team-grid__member {
	text-align: center;
}

.team-grid__photo {
	width: 100%;
	max-width: 190px;
	margin: 0 auto 1.25rem;
}

.team-grid__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgb(0 31 38 / 0.06);
}

.team-grid__name {
	margin-bottom: 0.25rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	color: var(--color-heading);
}

.team-grid__role {
	margin: 0;
	color: var(--color-text);
}

@media (min-width: 768px) {
	.team-grid__members {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.team-grid__members {
		grid-template-columns: repeat(5, 1fr);
		gap: 3rem 1.5rem;
	}
}
