.our-team-section {
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: #173f35;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top {
    background-color: black;
    color: white;
    text-align: center;
	padding: 10px 20px;
}

.team-image1 {
	position: relative;
	width: 100vh;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	overflow: hidden;
}

.team-image1 img {
	display: block;
	width: 100%;
	height: 400px;
	margin: 0;
	padding: 0;
	object-fit: cover;
}

.team-image1::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.our-team-section {
	padding: 88px 10%;
	background-color: #e8f0eb;
}

.our-team-section h1 {
	margin: 0 auto 18px;
	color: #173f35;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.2rem;
	font-weight: 500;
	text-align: center;
}

.our-team-section h1::after {
	display: block;
	width: 64px;
	height: 3px;
	margin: 16px auto 0;
	background-color: #bf1e2e;
	content: "";
}

.team-introduction {
	max-width: 720px;
	margin: 0 auto 48px;
	color: #42564d;
	font-size: 1.05rem;
	line-height: 1.75;
	text-align: center;
}

.team-members {
	display: flex;
	flex-wrap: wrap;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
	max-width: 1280px;
	margin: 0 auto;
	gap: 28px;
}

.team-member {
	display: flex;
	flex-direction: column;
	position: relative;
	margin-top: 56px;
	overflow: visible;
	border: 1px solid #dce5df;
	background-color: #ffffff;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 12px 28px rgba(23, 63, 53, 0.08);
	width: calc(25% - 21px);
	-webkit-transition: -webkit-transform 180ms ease, box-shadow 180ms ease;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-member.is-ready {
	opacity: 0;
	-webkit-transform: translateY(24px);
	transform: translateY(24px);
}

.team-member.is-ready.is-visible {
	opacity: 1;
	-webkit-transform: translateY(0);
	transform: translateY(0);
	transition: opacity 500ms ease calc(var(--member-index) * 90ms), transform 500ms ease calc(var(--member-index) * 90ms), box-shadow 180ms ease;
}

.team-member:hover,
.team-member:focus-within {
	-webkit-transform: translateY(-6px);
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(23, 63, 53, 0.15);
}

.team-member.profile-is-open {
	border-color: #bf1e2e;
	box-shadow: 0 18px 34px rgba(23, 63, 53, 0.15);
}

.team-member img {
	display: block;
	position: relative;
	z-index: 1;
	width: 180px;
	height: 180px;
	margin: -66px auto 0;
	border: 8px solid #e8f0eb;
	border-radius: 10%;
	background-color: #dce5df;
	box-shadow: 0 8px 18px rgba(23, 63, 53, 0.18);
	cursor: zoom-in;
	align-items: center;
	object-fit: cover;
}

.team-member img:focus-visible {
	outline: 3px solid #bf1e2e;
	outline-offset: -3px;
}

.team-member-name {
	margin: 20px 0 0;
	padding: 0 16px 5px;
	color: #173f35;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 500;
}

.team-member-role {
	margin: 0;
	padding: 0 16px 20px;
	color: #bf1e2e;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.team-member > p:not(.team-member-name):not(.team-member-role) {
	margin: 0;
	padding: 0 24px 24px;
	color: #42564d;
	font-size: 0.95rem;
	line-height: 1.75;
	text-align: left;
}

.team-member > p strong {
	color: #173f35;
}

.team-profile {
	margin: 0 24px 24px;
	color: #42564d;
	text-align: left;
}

.team-profile summary {
	position: relative;
	padding: 12px 14px;
	padding-right: 38px;
	border-top: 1px solid #dce5df;
	border-bottom: 1px solid #dce5df;
	color: #bf1e2e;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.team-profile summary::after {
	position: absolute;
	right: 14px;
	content: "+";
	font-size: 1.1rem;
	line-height: 1;
}

.team-profile[open] summary::after {
	content: "-";
}

.team-profile summary::marker {
	color: #efd08e;
}

.team-profile summary:focus-visible {
	outline: 2px solid #bf1e2e;
	outline-offset: 2px;
}

.team-profile p {
	margin: 18px 0 0;
	font-size: 0.95rem;
	line-height: 1.75;
	text-align: justify;
}

.team-profile p strong {
	color: #173f35;
}

@media (prefers-reduced-motion: reduce) {
	.team-member.is-ready,
	.team-member.is-ready.is-visible {
		-webkit-transform: none;
		transform: none;
		-webkit-transition: box-shadow 180ms ease;
		transition: box-shadow 180ms ease;
	}
}

@media (max-width: 900px) {
	.team-members {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-member {
		width: calc(50% - 14px);
	}
}

@media (max-width: 600px) {
	.our-team-section {
		padding: 52px 6%;
	}

	.our-team-section h1 {
		margin-bottom: 14px;
		font-size: 2.2rem;
	}

	.team-introduction {
		margin-bottom: 32px;
		font-size: 0.95rem;
	}

	.team-members {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.team-member {
		width: 100%;
	}
}

@supports (display: grid) {
	.team-members {
		display: grid;
	}

	.team-member {
		width: 100%;
	}
}
