/**
 * Team Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Screen reader text for accessibility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* Team Container */
.team {
	width: 100%;
	padding: 70px 70px;
}

.team-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0;
}

/* Team Member */
.team-member {
	display: flex;
	align-items: flex-start;
	gap: 100px;
	margin-bottom: 0;
	padding: 2rem 0;
}

/* Text Left, Image Right (Even Items) */
.team-member-text-left {
	flex-direction: row;
}

/* Image Left, Text Right (Odd Items) */
.team-member-image-left {
	flex-direction: row;
	gap: 96px;
}

/* Team Member Content */
.team-member-content {
	flex: 1;
	min-width: 0;
	display: table;
	height: 100%;
	min-height: 472px;
}

.team-member-content .in {
	    display: table-cell;
    vertical-align: middle;
}
/* Team Member Name */
.team-member-name {
	font-size: 64px;
	line-height: 67px;
	font-weight: 100;
	margin: 0 0 25px;
	color: inherit;
}

/* Team Member About */
.team-member-about {
	font-size: 17px;
	line-height: 27px;
	margin: 0;
	color: inherit;
}

.team-member-about p {
	margin: 0 0 1rem 0;
}

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

/* Team Member Image Wrapper */
.team-member-image-wrapper {
	flex: 0 0 44%;
	max-width: 44%;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Team Member Image */
.team-member-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 0;
	margin-bottom: -17px;
	aspect-ratio: 1/1;
}

/* Team Member Signature */
.team-member-signature {
	font-family: 'Beach Bound Script', 'Times New Roman', serif;
	font-size: 44px;
	line-height: 33px;
	margin: 0;
	color: inherit;
	text-align: right;
	font-style: normal;
	white-space: nowrap;
	display: block;
	width: 100%;
	padding: 0 25px;
}
.team-member-image-left .team-member-signature {
	text-align:left;
}

/* Team Member Divider */
.team-member-divider {
    width: 100%;
    height: 1px;
    background-color: black;
    opacity: 1;
    margin: 55px 0 60px;
    border: none;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
	.team-member {
		gap: 2rem;
		padding: 1.5rem 0;
	}

	.team-member-name {
	}

	.team-member-image-wrapper {
		flex: 0 0 45%;
		max-width: 45%;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.team-member-divider {
		margin:40px auto 30px;
	}
	.team {
		padding: 2rem 0;
	}

	.team-container {
		padding: 0 30px;
	}

	.team-member {
		flex-direction: column !important;
		gap: 1.5rem;
		padding: 1.5rem 0;
	}

	.team-member-content {
		order: 1;
		width: 100%;
		min-height: auto;
		margin-bottom: 20px;
	}

	.team-member-image-wrapper {
		order: 2;
		flex: 0 0 100%;
		max-width: 100%;
	}

	.team-member-name {
	}

	.team-member-about {
		font-size: 0.9375rem;
	}

	.team-member-signature {
	}
}

@media (max-width: 500px) {


	.team-member-name {
		font-size: 50px;
		line-height:60px;
	}


	.team-member-signature {
		font-size: 44px;
	}
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.team-member {
		transition: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.team-member-divider {
		opacity: 1;
		height: 2px;
	}

	.team-member-image {
		border: 2px solid currentColor;
	}
}

/* Print Styles */
@media print {
	.team {
		padding: 1rem 0;
	}

	.team-member {
		page-break-inside: avoid;
		margin-bottom: 1.5rem;
	}

	.team-member-divider {
		display: none;
	}

	.team-member-image {
		max-width: 200px;
	}

	.team-member-signature {
		font-size: 1rem;
	}
}

/* Focus States for Accessibility */
.team-member:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Ensure text color inheritance from block settings */
.team,
.team * {
	color: inherit;
}

