html.has-open-team-dialog,
body.has-open-team-dialog {
	overflow: hidden;
	overscroll-behavior: none;
}

.team-dialog__open {
	display: inline-flex;
	width: auto;
	padding: 0;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.team-dialog__open:focus-visible,
.team-dialog__close:focus-visible {
	outline: 0.1875rem solid var(--electric-green);
	outline-offset: 0.25rem;
}

.team-dialog-card__read-more {
	margin-bottom: 0;
}

.team-dialog-card__read-more {
	margin-top: 0.75rem;
	font-weight: 600;
}

.team-dialog {
	position: fixed;
	inset: 0;
	width: min(60rem, calc(100vw - 2rem));
	height: min(40rem, calc(100dvh - 3rem));
	max-width: 60rem;
	max-height: calc(100dvh - 3rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 0.25rem;
	box-sizing: border-box;
	background: var(--white);
	color: var(--green);
	box-shadow: 0 1.5rem 5rem rgba(6, 32, 32, 0.35);
	overflow: hidden;
	z-index: 10000;
}

.team-dialog:not([open]) {
	display: none;
}

.team-dialog::backdrop {
	background: rgba(6, 32, 32, 0.9);
}

.team-dialog.is-dialog-fallback {
	box-shadow: 0 0 0 100vmax rgba(6, 32, 32, 0.9), 0 1.5rem 5rem rgba(6, 32, 32, 0.35);
}

.team-dialog__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(18rem, 45%) minmax(0, 55%);
	width: 100%;
	height: 100%;
	min-height: 0;
}

.team-dialog__inner--text-only {
	grid-template-columns: minmax(0, 1fr);
}

.team-dialog__media {
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.team-dialog__media img,
.team-simple .team-dialog__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	aspect-ratio: auto;
	object-fit: cover;
	filter: grayscale(100%);
}

.team-dialog__content {
	display: flex;
	min-width: 0;
	min-height: 0;
	padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
	box-sizing: border-box;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.team-dialog__content h2 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.team-dialog__role {
	margin-top: 0;
	margin-bottom: 2rem;
}

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

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

.team-dialog__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: var(--green);
	color: var(--white);
	font: inherit;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.team-dialog__close span {
	display: block;
	margin-top: -0.125rem;
}

@media screen and (max-width: 47.9375rem) {
	.team-dialog {
		width: calc(100vw - 1rem);
		height: calc(100dvh - 1rem);
		max-height: calc(100dvh - 1rem);
	}

	.team-dialog__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(9rem, 34dvh) minmax(0, 1fr);
	}

	.team-dialog__inner--text-only {
		grid-template-rows: minmax(0, 1fr);
	}

	.team-dialog__content {
		padding: 2.25rem 1.5rem max(2.25rem, env(safe-area-inset-bottom));
	}

	.team-dialog__close {
		top: max(0.75rem, env(safe-area-inset-top));
		right: max(0.75rem, env(safe-area-inset-right));
	}
}

@media screen and (max-width: 47.9375rem) and (max-height: 35rem) {
	.team-dialog__inner {
		grid-template-rows: minmax(7rem, 27dvh) minmax(0, 1fr);
	}
}
