/*
 * About executive team (patterns/about-team.php). Values from the old
 * about-team-section.tsx, team-card.tsx, team-modal.tsx and the
 * .team-card-clip rules in globals.css.
 */
.sp-about-team {
	background: var(--wp--preset--color--white);
	padding-block: 40px;
}
@media (min-width: 1024px) {
	.sp-about-team { padding-block: 112px; }
}
.sp-about-team .sp-about-team__head.sp-about-team__head { margin-bottom: 40px; }
@media (min-width: 1024px) {
	.sp-about-team .sp-about-team__head.sp-about-team__head { margin-bottom: 48px; }
}
.sp-about-team .sp-about-team__label.sp-about-team__label {
	margin-bottom: 20px;
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.6;
}
.sp-about-team .sp-about-team__title {
	font-size: var(--wp--preset--font-size--heading-2);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.025em;
}
@media (min-width: 1024px) {
	/* The old title sat in a flex row, so it is as wide as its words. */
	.sp-about-team .sp-about-team__title { width: fit-content; }
}

/* ---------- Slider: 1 card, 2 from md, 3 from 1224px (old Swiper breakpoints) ---------- */
.sp-about-team .sp-about-team__slider { --sp-slide-width: 100%; }
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__slider { --sp-slide-width: 50%; }
}
@media (min-width: 1224px) {
	.sp-about-team .sp-about-team__slider { --sp-slide-width: calc(100% / 3); }
}
.sp-about-team .sp-about-team__track { cursor: grab; }
.sp-about-team .sp-about-team__card { cursor: pointer; }

/* ---------- Card ---------- */
.sp-about-team .sp-about-team__photo {
	--team-card-cut: 84px;
	position: relative;
	height: 260px;
	margin: 0;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
}
@media (min-width: 1024px) {
	.sp-about-team .sp-about-team__photo { height: 300px; }
}
.sp-about-team .sp-about-team__photo::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 85%;
	background: var(--wp--preset--color--primary);
}
.sp-about-team .sp-about-team__photo img {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
}
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__photo {
		clip-path: polygon(0 0, 100% 0, calc(100% - var(--team-card-cut)) 100%, 0 100%);
	}
	.sp-about-team .is-active .sp-about-team__photo,
	.sp-about-team .is-next .sp-about-team__photo,
	.sp-about-team .is-next + * .sp-about-team__photo {
		position: relative;
		z-index: 1;
	}
	.sp-about-team .is-active .sp-about-team__photo {
		width: calc(100% + 32px);
		margin-right: -32px;
		clip-path: polygon(0 0, 100% 0, calc(100% - var(--team-card-cut)) 100%, 0 100%);
	}
	.sp-about-team .is-next .sp-about-team__photo {
		width: calc(100% + 64px);
		margin-left: -32px;
		margin-right: -32px;
		clip-path: polygon(var(--team-card-cut) 0, 100% 0, calc(100% - var(--team-card-cut)) 100%, 0 100%);
	}
	.sp-about-team .is-next + * .sp-about-team__photo {
		width: calc(100% + 32px);
		margin-left: -32px;
		clip-path: polygon(var(--team-card-cut) 0, 100% 0, 100% 100%, 0 100%);
	}
}

.sp-about-team .sp-about-team__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 60px 0 12px;
}
@media (min-width: 1536px) {
	.sp-about-team .sp-about-team__info { padding-right: 80px; }
}
.sp-about-team .sp-about-team__name {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 32px;
	font-weight: 500;
	letter-spacing: -0.025em;
}
.sp-about-team .sp-about-team__role {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 24px;
	color: color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent);
}
.sp-about-team .sp-about-team__expand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	background: var(--wp--preset--color--primary);
	transition: background-color 0.2s;
}
.sp-about-team .sp-about-team__expand img { transition: transform 0.2s, filter 0.2s; }
.sp-about-team .sp-about-team__card:hover .sp-about-team__expand { background: var(--wp--preset--color--black-light); }
.sp-about-team .sp-about-team__card:hover .sp-about-team__expand img { transform: scale(1.1); filter: invert(1); }
.sp-about-team .sp-about-team__card:focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 2px; }

/* ---------- Bio: under the card in the editor, in the pop-up on the site ---------- */
.sp-about-team .sp-about-team__bio {
	padding: 12px;
}
html.sp-js .sp-about-team .sp-about-team__slide .sp-about-team__bio { display: none; }
.sp-about-team .sp-about-team__bio-text {
	margin-bottom: 32px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.625;
	color: color-mix(in srgb, var(--wp--preset--color--black) 60%, transparent);
}
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__bio-text { font-size: var(--wp--preset--font-size--medium); }
}
.sp-about-team .sp-about-team__socials {
	display: flex;
	gap: 8px;
}
.sp-about-team .sp-about-team__social { margin: 0; }
.sp-about-team .sp-about-team__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--wp--preset--color--primary);
	transition: opacity 0.2s;
}
.sp-about-team .sp-about-team__social a:hover { opacity: 0.8; }

/* ---------- Pop-up (built by about-team.js) ---------- */
.sp-about-team .sp-about-team__modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8px;
	overflow-y: auto;
	scrollbar-width: none;
	background: color-mix(in srgb, var(--wp--preset--color--black) 35%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.2s ease-out;
}
.sp-about-team .sp-about-team__modal::-webkit-scrollbar { display: none; }
.sp-about-team .sp-about-team__modal.is-open { opacity: 1; }
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__modal { align-items: center; padding: 16px; }
}
.sp-about-team .sp-about-team__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1080px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.sp-about-team .sp-about-team__modal.is-open .sp-about-team__dialog { transform: scale(1); opacity: 1; }
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__dialog { flex-direction: row; }
}
.sp-about-team .sp-about-team__dialog-media {
	position: relative;
	flex-shrink: 0;
	height: 380px;
}
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__dialog-media { width: 42%; height: auto; }
}
.sp-about-team .sp-about-team__dialog-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--primary);
	clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.sp-about-team .sp-about-team__dialog-media img {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 0 100%;
}
.sp-about-team .sp-about-team__dialog-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
}
@media (min-width: 768px) {
	.sp-about-team .sp-about-team__dialog-body { padding: 60px 36px; }
}
.sp-about-team .sp-about-team__dialog-body .sp-about-team__bio { padding: 0; }
.sp-about-team .sp-about-team__dialog-name {
	margin: 0 0 4px;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: -0.025em;
}
.sp-about-team .sp-about-team__dialog-role {
	margin: 0 0 32px;
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--black) 30%, transparent);
}
.sp-about-team .sp-about-team__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--black);
	cursor: pointer;
	transition: opacity 0.2s;
}
.sp-about-team .sp-about-team__close:hover { opacity: 0.5; }
