/**
 * Team Member Modal Styles
 *
 * Modal design based on Figma: About pop-up (132:864)
 * Uses theme.json tokens where possible
 */

.team-member-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 1920px;
	height: auto;
	max-height: 788px;
	margin: auto;
	padding: 0;
	border: none;
	background-color: var(--wp--preset--color--theme-01);
}

.team-member-modal::backdrop {
	background-color: color-mix(in srgb, var(--wp--preset--color--theme-02) 70%, transparent);
}

.team-member-modal[open] {
	display: flex;
}

.team-member-modal__content {
	display: flex;
	width: 100%;
	height: 100%;
	position: relative;
}

/* Close button - outlined X at top-right per Figma */
.team-member-modal__close {
	position: absolute;
	top: 42px;
	right: 67px;
	width: 67px;
	height: 67px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--theme-03);
	cursor: pointer;
	color: var(--wp--preset--color--theme-03);
	transition: color 0.2s ease, border-color 0.2s ease;
	z-index: 10;
}

.team-member-modal__close:hover {
	color: var(--wp--preset--color--theme-04);
	border-color: var(--wp--preset--color--theme-04);
}

.team-member-modal__close svg {
	width: 24px;
	height: 24px;
}

/* Photo - left column */
.team-member-modal__photo {
	width: 648px;
	height: 572px;
	object-fit: cover;
	margin: 108px 0 0 160px;
	flex-shrink: 0;
	background-color: #e1e1e1;
}

/* Info - right column */
.team-member-modal__info {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 165px 160px 108px 121px;
	max-width: 716px;
}

.team-member-modal__name {
	font-family: var(--wp--preset--font-family--butler);
	font-size: 63px;
	font-weight: 300;
	line-height: 70px;
	color: var(--wp--preset--color--theme-04);
	margin: 0 0 10px 0;
}

.team-member-modal__role {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 23px;
	font-weight: 500;
	line-height: 32px;
	letter-spacing: var(--wp--custom--letter-spacing--extra-wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-03);
	margin: 0 0 78px 0;
}

.team-member-modal__bio {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 20px;
	font-weight: 300;
	line-height: 31px;
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	color: var(--wp--preset--color--theme-02);
}

.team-member-modal__bio p {
	margin: 0 0 1em 0;
}

.team-member-modal__bio p:last-child {
	margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	.team-member-modal {
		max-width: 100%;
		max-height: 100vh;
		height: 100vh;
	}

	.team-member-modal__content {
		flex-direction: column;
		overflow-y: auto;
	}

	.team-member-modal__photo {
		width: 100%;
		height: 400px;
		margin: 0;
	}

	.team-member-modal__info {
		padding: 40px;
		max-width: 100%;
	}

	.team-member-modal__close {
		top: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
		background-color: var(--wp--preset--color--theme-01);
	}

	.team-member-modal__name {
		font-size: 40px;
		line-height: 1.1;
	}

	.team-member-modal__role {
		font-size: 18px;
		letter-spacing: 3px;
		margin-bottom: 40px;
	}

	.team-member-modal__bio {
		font-size: 18px;
		line-height: 1.6;
	}
}
