.team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-36);
	padding: 80px;
	overflow: clip;
	background: var(--color-cream);

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 40px;
	}

	@media (max-width: 809.98px) {
		padding: 25px;
	}
}

.team__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-16);
	width: 100%;
	overflow: clip;
}

.team__heading {
	width: 100%;
	max-width: 800px;
	font-family: var(--font-questrial);
	font-size: var(--fs-40);
	font-weight: var(--fw-regular);
	line-height: var(--lh-120);
	letter-spacing: var(--ls-wide);
	color: var(--color-olive);
	text-align: center;

	& em {
		font-family: var(--font-cormorant);
		font-size: var(--fs-50);
		font-style: italic;
		font-weight: var(--fw-semibold);
		color: var(--color-sage);
	}
}

.team__text {
	width: 100%;
	max-width: 800px;
	color: var(--color-olive);
	text-align: center;
}

.team__row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 50px 10px;
	width: 100%;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex-direction: column;
	}
}

.member {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-10);
	min-width: 1px;
	padding-bottom: var(--space-20);
	overflow: clip;

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}
}

.member__image {
	position: relative;
	width: 100%;
	height: 390px;
	overflow: clip;
	border-radius: var(--radius-12);
}

.member__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

/* Fixed widths from the Framer component; max-width stops the role line being clipped on tablet. */
.member__name {
	width: 171px;
	max-width: 100%;
}

.member__role {
	width: 320px;
	max-width: 100%;
}

.member__bio {
	width: 100%;
}
