.teams-member-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 28px;
}

.teams-member-card {
	position: relative;
	width: 100%;
	background: transparent;
}

.teams-member-image-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.teams-member-image-wrap {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	background: transparent;
}

.teams-member-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease, filter 0.45s ease;
}

.teams-member-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	text-align: center;
	background: rgba(18, 52, 135, 0.82);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.teams-member-image-wrap:hover .teams-member-overlay,
.teams-member-image-trigger:focus .teams-member-overlay,
.teams-member-image-trigger:focus-within .teams-member-overlay {
	opacity: 1;
	transform: translateY(0);
}

.teams-member-image-wrap:hover .teams-member-image,
.teams-member-image-trigger:focus .teams-member-image,
.teams-member-image-trigger:focus-within .teams-member-image {
	transform: scale(1.05);
	filter: brightness(0.48);
}

.teams-member-overlay-content {
	width: 100%;
	max-width: 320px;
}

.teams-member-content {
	padding: 22px 16px;
	background: #ffffff;
	text-align: center;
}

.teams-member-name {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #232323;
}

.teams-member-position {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 600;
	color: #232323;
	text-transform: uppercase;
}

.teams-member-overlay-name {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #ffffff;
}

.teams-member-overlay-position {
	margin: 0 0 16px;
	font-size: 1.08rem;
	font-weight: 600;
	color: #f1f1f1;
	text-transform: uppercase;
}

.teams-member-description {
	margin: 0 auto 18px;
	font-size: 1rem;
	line-height: 1.65;
	color: #ffffff;
}

.teams-member-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.teams-member-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #ffffff;
	color: #111111;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
	transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.teams-member-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.teams-member-social-link i {
	font-size: 18px;
}

.teams-member-social-link--rounded {
	border-radius: 14px;
}

.teams-member-social-link--square {
	border-radius: 0;
}

.teams-member-social-link:hover,
.teams-member-social-link:focus {
	background: #111111;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.teams-member-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.teams-member-modal.is-open {
	display: block;
}

.teams-member-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 15, 35, 0.62);
	backdrop-filter: blur(3px);
}

.teams-member-modal-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
}

.teams-member-modal-dialog {
	--teams-member-modal-max-width: 920px;
	--teams-member-modal-image-width: 300px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, min(100%, var(--teams-member-modal-image-width))) minmax(0, 1fr);
	gap: 32px;
	width: 100%;
	max-width: min(100%, var(--teams-member-modal-max-width));
	max-height: calc(100vh - 48px);
	padding: 32px;
	overflow: auto;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.teams-member-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f5f5f5;
	color: #222222;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.teams-member-modal-close:hover,
.teams-member-modal-close:focus {
	background: #111111;
	color: #ffffff;
	transform: rotate(90deg);
}

.teams-member-modal-close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.teams-member-modal-close i {
	font-size: 18px;
	line-height: 1;
}

.teams-member-modal-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 18px;
}

.teams-member-modal-content {
	color: #555555;
	min-width: 0;
}

.teams-member-modal-name {
	margin: 0 0 8px;
	padding-right: 56px;
	font-size: 2.2rem;
	line-height: 1.08;
	color: #111111;
}

.teams-member-modal-position {
	margin: 0 0 22px;
	font-size: 1.12rem;
	color: #8c8c8c;
}

.teams-member-modal-bio {
	padding-bottom: 20px;
	border-bottom: 1px solid #ececec;
	font-size: 1.02rem;
	line-height: 1.75;
}

.teams-member-modal-meta {
	padding: 18px 0 22px;
	border-bottom: 1px solid #ececec;
}

.teams-member-modal-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 10px 0;
}

.teams-member-modal-meta-row span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.teams-member-modal-meta-label {
	min-width: 64px;
	font-weight: 700;
	color: #111111;
}

.teams-member-social--modal {
	justify-content: flex-start;
	padding-top: 22px;
}

body.teams-member-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.teams-member-image-wrap {
		min-height: 380px;
	}

	.teams-member-modal-dialog {
		grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
		gap: 24px;
		padding: 26px;
	}

	.teams-member-modal-name {
		font-size: 1.9rem;
	}
}

@media (max-width: 767px) {
	.teams-member-grid {
		grid-template-columns: 1fr;
	}

	.teams-member-image-wrap {
		min-height: 340px;
	}

	.teams-member-overlay {
		padding: 20px;
	}

	.teams-member-name {
		font-size: 1.65rem;
	}

	.teams-member-position {
		font-size: 0.95rem;
	}

	.teams-member-overlay-name {
		font-size: 1.65rem;
	}

	.teams-member-overlay-position {
		font-size: 0.95rem;
	}

	.teams-member-description {
		font-size: 0.95rem;
		line-height: 1.55;
	}

	.teams-member-modal-shell {
		align-items: flex-start;
		min-height: 100dvh;
		padding: 12px;
	}

	.teams-member-modal-dialog {
		grid-template-columns: 1fr;
		gap: 18px;
		max-height: calc(100dvh - 24px);
		padding: 18px 16px;
		border-radius: 18px;
	}

	.teams-member-modal-close {
		top: 12px;
		right: 12px;
	}

	.teams-member-modal-media img {
		max-height: min(320px, 42dvh);
	}

	.teams-member-modal-name {
		padding-right: 46px;
		font-size: 1.6rem;
	}

	.teams-member-modal-position {
		font-size: 1rem;
	}

	.teams-member-modal-bio {
		font-size: 0.95rem;
		line-height: 1.65;
	}

	.teams-member-social--modal {
		justify-content: center;
	}
}
