/* ==========================================================================
   Be Team Card
   ========================================================================== */

.be-team-card {
	width: 100%;
    display: flex;
    will-change: transform;
    transform: matrix(1, 0, 0, 1, 0, 0);
}

.be-teams-section.be-space {
    padding-right: 0;
}

.be-team-card__image-wrap {
	width: 28.823529rem;
    height: 28.8235294118rem;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: transparent;
    box-sizing: border-box;
}

.be-team-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: transform 0.5s ease;
}

.be-team-card:hover .be-team-card__photo {
	transform: scale(1.04);
}

/* Bottom gradient + text overlay */
.be-team-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 22px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.4) 35%,
		rgba(0, 0, 0, 0) 68%
	);
}

.be-team-card__info {
	color: var(--wpex-palette-589-color);
    position: absolute;
    text-align: center;
    bottom: 4rem;
    width: calc(100% - 40px);
    font-size: 19px;
    line-height: 1.2105263158;
    font-weight: 600;
    letter-spacing: .012em;
}

.be-team-card__name,
.be-team-card__meta {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
}

.be-team-card__meta {
	font-weight: 400;
	opacity: 0.92;
}

/* "+" toggle button */
.be-team-card__toggle {
	flex: 0 0 auto;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
    
    cursor: pointer;
    position: absolute;
    height: 40px;
    width: 40px;
    bottom: 1.1764705882rem;
    right: 1.1764705882rem;
    background-color: var(--wpex-palette-108-color);
    border-radius: 50%;
}
.be-team-card__toggle .be-team-card__toggle-icon {
    line-height: 1;
}
.be-team-card__toggle svg {
    width: 38px;
    height: 38px;
}

.be-team-card__toggle:hover,
.be-team-card__toggle:focus-visible {
	background-color: #ffffff;
	transform: scale(1.08);
}
/* ==========================================================================

   Be Team Popup
   ========================================================================== */

.be-team-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.be-team-popup.is-open {
	display: flex;
}

.be-team-popup__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(20, 20, 20, 0.75);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

.be-team-popup__dialog {
    display: flex;
    flex-direction: column;
    gap: 120px;
    
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 800px;
	overflow-y: auto;
	background-color: #1c1c1e;
	border-radius: 14px;
	padding: 150px 100px 70px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	text-align: center;
	animation: be-team-popup-in 0.25s ease;
}

@keyframes be-team-popup-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.be-team-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--wpex-palette-589-color);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}
.be-team-popup__close span {
    line-height: 0;
}
.be-team-popup__close svg {
    height: 20px;
    width: 20px;
    fill: #666666;
}

.be-team-popup__close:hover svg,
.be-team-popup__close:focus-visible svg {
	fill: var(--wpex-palette-107-color);
}

.be-team-popup__quote p {
	margin: 0;
    color: #f5f5f5;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: .009em;
    padding: 0;
}

.be-team-popup__author p {
	font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .012em;
    color: var(--wpex-palette-589-color);
    margin: 0;
}

/* Lock background scroll while popup is open */
body.be-team-popup-open {
	overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.be-team-popup__dialog {
		padding: 60px 24px 36px;
	}

	.be-team-popup__quote p {
		font-size: 18px;
	}

	.be-team-card__overlay {
		padding: 16px;
	}

	.be-team-card__name,
	.be-team-card__meta {
		font-size: 14px;
	}
}