/**
 * Section: team. Photos sit on white cards (the current portraits have a
 * white background with their own drawn frame) and never grow past their
 * natural size.
 */

.section-team__heading {
	margin-top: 0;
}

.section-team__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-4) var(--space-4) var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	background: var(--color-surface);
	text-align: center;
}

.team-card__photo {
	display: block;
	width: 100%;
	max-width: 12rem;
	height: auto;
	margin-bottom: var(--space-3);
}

.team-card__name {
	margin: 0;
	color: var(--color-navy);
	font-size: var(--step-0);
}

.team-card__role {
	margin: var(--space-1) 0 0;
	color: var(--color-accent);
	font-size: var(--step--1);
	font-weight: 600;
}

.team-card__bio {
	margin: var(--space-2) 0 0;
	color: var(--color-text-muted);
	font-size: var(--step--1);
	text-align: left;
}

@media (min-width: 40rem) {

	.section-team__list {
		grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
		gap: var(--space-5);
	}
}
