.team-section {
	position: relative;
	overflow: hidden;
}

.team-section .container {
	position: relative;
	z-index: 1;
}

.team-section__top {
	margin-bottom: 50px;
}

.team-section__top > *:first-child {
	margin-top: 0;
}

.team-section__top > *:last-child {
	margin-bottom: 0;
}

.team-section__top p:has(.btn + .btn) .btn + .btn {
	margin-left: 0;
}

/* Individual team member */
.team-section__individual {
	display: flex;
	align-items: center;
	gap: 40px;
}

.team-section__individual-media {
	position: relative;
	flex: 0 0 480px;
	width: 480px;
	max-width: 45%;
}

.team-section__individual-image-main {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1 / 1.05;
}

.team-section__individual-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-section__individual-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.team-section__individual-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.team-section__individual-name {
	margin: 0;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 400;
	color: var(--headline);
}

.team-section__individual-position {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--medium);
	text-transform: uppercase;
}

.team-section__individual-bio {
	color: var(--paragraph-text-color);
	font-size: 18px;
	line-height: 28px;
}

.team-section__individual-bio > *:first-child {
	margin-top: 0;
}

.team-section__individual-bio > *:last-child {
	margin-bottom: 0;
}

.team-section__individual .team-section__bio-contacts {
	margin-top: 0;
}

.team-section__individual .team-section__bio-icon {
	background: var(--dark);
	color: #fff;
}

.team-section--individual.bg-medium .team-section__individual-name,
.team-section--individual.bg-dark .team-section__individual-name,
.team-section--individual.bg-medium .team-section__individual-position,
.team-section--individual.bg-dark .team-section__individual-position,
.team-section--individual.bg-medium .team-section__individual-bio,
.team-section--individual.bg-dark .team-section__individual-bio {
	color: var(--body-with-dark-background);
}

.team-section--individual.bg-medium .team-section__bio-contacts a,
.team-section--individual.bg-dark .team-section__bio-contacts a {
	color: var(--white);
}


.team-section--individual.bg-medium .team-section__bio-contacts a:hover,
.team-section--individual.bg-dark .team-section__bio-contacts a:hover {
	color: var(--primary-color);
}


.team-section--individual.bg-medium .team-section__bio-icon,
.team-section--individual.bg-dark .team-section__bio-icon {
	background: var(--white);
	color: var(--medium);
}

.team-section__groups {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.team-section__group-title {
	margin: 0 0 30px;
	text-align: center;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	color: var(--dark);
}

.team-section__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 32px;
}

.team-section__card {
	position: relative;
	display: block;
	flex: 0 0 292px;
	width: 292px;
	max-width: 100%;
	/* Reserve resting hang of card-info below the image so hover growth goes up. */
	padding-bottom: 40px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	border: none;
}

.team-section__card-media {
	display: block;
	width: 100%;
	aspect-ratio: 292 / 340;
	border-radius: 16px;
	overflow: hidden;
}

.team-section__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-section__card-info {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	width: auto;
	margin: 0;
	padding: 22px 20px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(11, 61, 44, 0.12);
}

.team-section__card-name {
	display: block;
	width: 100%;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	color: var(--medium);
	text-transform: uppercase;
}

.team-section__card-position {
	display: block;
	width: 100%;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--muted);
}

.team-section__view-bio {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	color: var(--primary-color);
	border-bottom: solid 1px;
	padding-bottom: 5px;
}

.team-section__view-bio svg {
	display: block;
	width: 16px;
	height: 12px;
}

.team-section__card:hover .team-section__view-bio,
.team-section__card:focus-visible .team-section__view-bio {
	display: inline-flex;
}

.team-section__bios {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.team-section__bio {
	position: relative;
	width: min(1100px, 92vw);
	max-width: 100%;
	padding: 40px;
	background: var(--white);
	border-radius: 16px;
}

.team-section__bio-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #7a7a7a;
	cursor: pointer;
}

.team-section__bio-inner {
	display: flex;
	align-items: stretch;
	gap: 40px;
}

.team-section__bio-media {
	position: relative;
	flex: 0 0 333px;
	width: 333px;
	max-width: 42%;
	padding: 0 20px 20px 0;
}

.team-section__bio-image-shadow,
.team-section__bio-image-main {
	display: block;
	border-radius: 16px;
	overflow: hidden;
}

.team-section__bio-image-shadow {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 0;
	bottom: 0;
	z-index: 0;
	opacity: 0.2;
	pointer-events: none;
}

.team-section__bio-image-shadow .team-section__bio-image {
	filter: blur(8px);
	transform: scale(1.05);
}

.team-section__bio-image-main {
	position: relative;
	z-index: 1;
	aspect-ratio: 313 / 362;
}

.team-section__bio-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-section__bio-content {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 20px;
}

.team-section__bio-name {
	margin: 0 0 8px;
	font-family: var(--font-dm-serif);
	font-size: 42px;
	line-height: 1.1;
	font-weight: 400;
	color: var(--headline);
}

.team-section__bio-position {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--medium);
	text-transform: uppercase;
}

.team-section__bio-text {
	color: var(--paragraph-text-color);
	font-size: 18px;
	line-height: 28px;
}

.team-section__bio-text > *:first-child {
	margin-top: 0;
}

.team-section__bio-text > *:last-child {
	margin-bottom: 0;
}

.team-section__bio-contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 25px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.team-section__bio-contacts li {
	margin: 0;
	padding-left: 0;
}

.team-section__bio-contacts li::before {
	display: none;
}

.team-section__bio-contacts a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	color: var(--dark);
	text-decoration: none;
	border: none;
	transition: color 0.3s ease;
}

.team-section__bio-contacts a > span:last-child {
	display: inline-block;
	position: relative;
	padding-bottom: 4px;
}

.team-section__bio-contacts a > span:last-child::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: scaleX(1);
	transform-origin: left center;
	pointer-events: none;
}

.team-section__bio-contacts a:hover,
.team-section__bio-contacts a:focus-visible {
	color: var(--primary-color);
}

.team-section__bio-contacts a:hover > span:last-child::after,
.team-section__bio-contacts a:focus-visible > span:last-child::after {
	animation: team-section-bio-underline 0.45s ease;
}

.team-section__bio-contacts a:hover .team-section__bio-icon,
.team-section__bio-contacts a:focus-visible .team-section__bio-icon {
	background: var(--primary-color);
	color: var(--white);
	transform: scale(1.08);
}

@keyframes team-section-bio-underline {
	0% {
		transform: scaleX(1);
		transform-origin: right center;
	}
	45% {
		transform: scaleX(0);
		transform-origin: right center;
	}
	55% {
		transform: scaleX(0);
		transform-origin: left center;
	}
	100% {
		transform: scaleX(1);
		transform-origin: left center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.team-section__bio-contacts a:hover > span:last-child::after,
	.team-section__bio-contacts a:focus-visible > span:last-child::after {
		animation: none;
	}

	.team-section__bio-contacts a:hover .team-section__bio-icon,
	.team-section__bio-contacts a:focus-visible .team-section__bio-icon {
		transform: none;
	}
}

.team-section__bio-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dark);
	color: #fff;
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.team-section__bio-icon svg {
	display: block;
	flex: 0 0 auto;
}

.team-section-fancybox .fancybox-bg {
	background: rgba(0, 0, 0, 0.65);
}

.team-section-fancybox .fancybox-content.team-section__bio {
	background: #fff;
	background: var(--white);
	padding: 40px;
}

.team-section-fancybox .fancybox-close-small {
	display: none;
}

.team-section.bg-medium .team-section__group-title,
.team-section.bg-dark .team-section__group-title,
.team-section.bg-medium .team-section__top,
.team-section.bg-dark .team-section__top {
	color: var(--body-with-dark-background);
}

@media (max-width: 1199px) {
	.team-section__individual-media {
		flex-basis: 400px;
		width: 400px;
	}
}

@media (max-width: 991px) {
	.team-section__individual {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.team-section__individual-media {
		flex: none;
		width: min(480px, 100%);
		max-width: none;
		margin: 0 auto;
	}

	.team-section__individual-name {
		font-size: 34px;
	}

	.team-section__bio,
	.team-section-fancybox .fancybox-content.team-section__bio {
		padding: 22px 20px 24px;
	}

	.team-section__bio-inner {
		flex-direction: column;
		gap: 24px;
	}

	.team-section__bio-media {
		flex: none;
		width: min(333px, 100%);
		max-width: none;
		margin: 0 auto;
	}

	.team-section__bio-image-main {
		max-height: 360px;
	}

	.team-section__bio-content {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.team-section__card {
		flex-basis: min(292px, 100%);
		width: min(292px, 100%);
	}

	.team-section__group-title {
		font-size: 28px;
		line-height: 1.2;
	}

	.team-section__individual-name {
		font-size: 30px;
	}

	.team-section__bio-name {
		font-size: 30px;
	}
}
