.acp-team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 500px) {
	.acp-team-grid .acp-team-card {
		width: 100% !important;
		max-width: 329px;
	}
}

.acp-team-card {
	perspective: 1500px;
	height: 400px;
	width: 329px;
	flex-grow: 0;
	flex-shrink: 0;
}

.acp-team-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.6s;
	transform-style: preserve-3d;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
	border-radius: 10px;
}

.acp-team-card:hover .acp-team-card-inner,
.acp-team-card:focus-within .acp-team-card-inner,
.acp-team-card.is-flipped .acp-team-card-inner {
	transform: rotateY(180deg);
}

.acp-team-card-front,
.acp-team-card-back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 10px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px 25px;
	box-sizing: border-box;
}

.acp-team-card-back {
	transform: rotateY(180deg);
	justify-content: center;
}

.acp-team-photo {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 20px;
}

.acp-team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.acp-team-name {
	color: #050476;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 auto 10px;
	max-width: 280px;
}

.acp-team-card-back .acp-team-name {
    font-size: 20px;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.acp-team-position {
	color: #535e69;
	font-size: 16px;
	margin: 0;
}

.acp-team-email {
	margin: 0 0 15px;
}

.acp-team-card-back .acp-team-email {
	color: #04294d;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2em;
	text-align: center;
	padding-bottom: 0;
}

.acp-team-email a {
	color: #04294d;
	font-size: 16px;
	text-decoration: none;
	font-weight: 500;
}

.acp-team-email a:hover {
	text-decoration: underline;
}

.acp-team-excerpt {
	color: #535e69;
	font-size: 14px;
	line-height: 1.5em;
	margin: 0 0 20px;
	text-align: center;
}

.acp-team-full-bio-btn {
	display: block;
	background-color: #04294d;
	color: #ffffff;
	text-align: center;
	width: fit-content;
	padding: 15px 40px;
	border: 1px solid transparent;
	font-size: 16px;
	text-transform: uppercase;
	-webkit-transition: all 0.5s ease-in-out 0s;
	-moz-transition: all 0.5s ease-in-out 0s;
	transition: all 0.5s ease-in-out 0s;
	margin: 30px auto 0;
	position: relative;
	cursor: pointer;
}

.acp-team-full-bio-btn:hover {
	background-color: #04294d;
	border-color: #04294d;
	color: #ffffff;
}

.acp-team-full-bio-btn::after {
	content: "";
	border: 1px solid #04294d;
	width: 144px;
	height: 43px;
	position: absolute;
	left: 0;
	bottom: 0;
	text-transform: uppercase;
	-webkit-transition: all 0.5s ease-in-out 0s;
	-moz-transition: all 0.5s ease-in-out 0s;
	transition: all 0.5s ease-in-out 0s;
}

.acp-team-full-bio-btn:hover::after {
	left: 6px;
	bottom: -8px;
}

/* Modal */
.acp-team-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.acp-team-modal.is-open {
	display: flex;
}

.acp-team-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(20, 20, 20, 0.7);
}

.acp-team-modal-content {
	position: relative;
	background: #ffffff;
	max-width: 650px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 6px;
	padding: 45px 45px 40px;
	box-sizing: border-box;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.acp-team-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 4px;
}

.acp-team-modal-name {
	color: #050476;
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 0 6px;
	padding-bottom: 0;
}

.acp-team-modal-position {
	color: #535e69;
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 20px;
}

.acp-team-modal-bio {
	color: #535e69;
	font-size: 14px;
	line-height: 1.7em;
}

.acp-team-modal-bio p:last-child {
	margin-bottom: 0;
}

body.acp-team-modal-open {
	overflow: hidden;
}
