.team-accordion-wrapper-78978e3d {
	width: 100%;
}

.team-accordion-container-78978e3d {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 500px; /* Overridden by controls */
	overflow: hidden;
	gap: 0;
}

.team-accordion-item-78978e3d {
	flex: 1;
	display: flex;
	flex-direction: row;
	cursor: pointer;
	transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	position: relative;
	overflow: hidden;
	border-right: 1px solid rgba(255,255,255,0.2);
}

.team-accordion-item-78978e3d:last-child {
	border-right: none;
}

.team-accordion-image-78978e3d {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 80px;
	flex-shrink: 0;
	transition: all 0.6s ease;
}

.team-image-bg-78978e3d {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	filter: grayscale(100%);
	transition: filter 0.6s ease;
}

.team-image-title-vertical-78978e3d {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	color: #fff;
	font-weight: bold;
	font-size: 1.2rem;
	text-transform: uppercase;
	transition: opacity 0.4s ease;
	background: rgba(0,0,0,0.5);
	padding: 15px 5px;
	border-radius: 4px;
}

.team-accordion-content-78978e3d {
	width: 0;
	opacity: 0;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.team-accordion-content-inner-78978e3d {
	padding: 40px;
	min-width: 300px; /* Enough space for content */
}

.team-member-name-78978e3d {
	margin: 0 0 10px;
	font-size: 2rem;
	color: #111;
}

.team-member-job-78978e3d {
	margin: 0 0 20px;
	font-size: 1.1rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.team-member-bio-78978e3d {
	font-size: 1rem;
	color: #444;
	line-height: 1.6;
	margin-bottom: 25px;
}

.team-member-social-78978e3d {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #333;
	font-size: 24px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.team-member-social-78978e3d:hover {
	color: #ce1126; /* Brand accent hover */
}

/* Active State */
.team-accordion-item-78978e3d.active {
	flex: 5;
}

.team-accordion-item-78978e3d.active .team-image-bg-78978e3d {
	filter: grayscale(0%);
}

.team-accordion-item-78978e3d.active .team-image-title-vertical-78978e3d {
	opacity: 0;
	pointer-events: none;
}

.team-accordion-item-78978e3d.active .team-accordion-content-78978e3d {
	width: 50%; /* Content takes half of the expanded area */
	opacity: 1;
}

.team-accordion-item-78978e3d.active .team-accordion-image-78978e3d {
	width: 50%;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
	.team-accordion-container-78978e3d {
		flex-direction: column;
		height: 800px; /* Default height for mobile */
	}

	.team-accordion-item-78978e3d {
		flex-direction: column;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.2);
	}

	.team-accordion-item-78978e3d:last-child {
		border-bottom: none;
	}

	.team-image-title-vertical-78978e3d {
		writing-mode: horizontal-tb;
		bottom: auto;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.team-accordion-content-78978e3d {
		width: 100%;
		height: 0;
		flex-direction: column;
		transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
	}

	.team-accordion-content-inner-78978e3d {
		padding: 20px;
		min-width: unset;
		width: 100%;
	}

	.team-accordion-image-78978e3d {
		width: 100%;
		height: 100%;
		min-height: 80px;
	}

	.team-accordion-item-78978e3d.active .team-accordion-content-78978e3d {
		width: 100%;
		height: 50%; /* Takes half height on mobile when active */
	}

	.team-accordion-item-78978e3d.active .team-accordion-image-78978e3d {
		width: 100%;
		height: 50%;
	}
}
