/**
 * Team Module
 *
 * Styles for template-parts/modules/team_module.php
 */

.team-module {
	padding: 80px 0;
}

.team-module__heading {
	font-family: var(--header);
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	color: var(--black);
	margin-bottom: 20px;
}

.team-module__intro {
	font-family: var(--content);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--black);
	margin-bottom: 56px;
	max-width: 640px;
}

.team-module__intro p:last-child { margin-bottom: 0; }

.team-module__grid {
	row-gap: 40px;
}

/* Equal-height col: stretch the card to fill the Bootstrap column */
.team-module__col {
	display: flex;
}

.team-module__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.team-module__photo {
  overflow: hidden;
  height: 250px;
}

.team-module__photo img {
	width: 100%;
	height:100%;
	object-fit: cover;
	object-position: center;
	transition: var(--transition);
}



.team-module__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1; /* fill remaining card height so button can sit at the bottom */
	min-height: 90px;
}

.team-module__name {
	font-family: var(--header);
	font-size: 1.25rem;
	color: var(--black);
	margin: 0;
}

.team-module__role {
	font-family: var(--content);
	font-size: 1.1rem;
	margin: 0;
  padding-bottom: 20px;
}

.team-module__bio {
	font-family: var(--content);
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--black);
	margin-top: 25px;
}

.team-module__bio p:last-child { margin-bottom: 0; }
.cta-people.cta-btn.btn {
	width: 110px; width: 120px;
	margin-top: auto; /* pin button to the bottom of the info area */ margin-top: 0;
}


@media (max-width: 992px) {
	.team-module { padding: 60px 0; }
	.team-module__intro { margin-bottom: 40px; }
}

@media (max-width: 768px) {
	.team-module { padding: 40px 0; }
	.team-module__grid { row-gap: 28px; }
	.team-module__photo {height: 320px;}
}

@media (max-width: 600px) {
	.team-module__grid { row-gap: 20px; }
}
