.ita-878-container {
	display: flex;
	width: 100%;
	overflow: hidden;
	gap: 10px;
}

.ita-878-item {
	flex: 1;
	display: flex;
	transition: flex 0.5s ease;
	cursor: pointer;
	overflow: hidden;
	position: relative;
	border-radius: 10px;
}

.ita-878-item.ita-878-active {
	flex: 5;
	cursor: default;
}

.ita-878-image {
	flex-basis: 100%;
	background-size: cover;
	background-position: center;
	transition: filter 0.5s ease, flex-basis 0.5s ease;
	filter: grayscale(100%);
}

.ita-878-item.ita-878-active .ita-878-image {
	flex-basis: 50%;
	filter: grayscale(0%);
}

.ita-878-content {
	flex-basis: 0;
	background: #f4f4f4;
	overflow: hidden;
	display: flex;
	align-items: center;
	transition: flex-basis 0.5s ease;
	opacity: 0;
}

.ita-878-item.ita-878-active .ita-878-content {
	flex-basis: 50%;
	opacity: 1;
	transition: flex-basis 0.5s ease, opacity 0.5s ease 0.2s;
}

.ita-878-content-inner {
	padding: 30px;
	min-width: 250px;
}

.ita-878-name {
	margin: 0 0 5px 0;
	font-size: 1.5em;
}

.ita-878-job {
	margin: 0 0 15px 0;
	font-weight: bold;
	color: #666;
}

.ita-878-bio {
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.ita-878-container {
		flex-direction: column;
		height: 800px !important; /* Override inline height on mobile for stacking */
	}

	.ita-878-item {
		flex-direction: column-reverse;
	}

	.ita-878-item.ita-878-active .ita-878-image,
	.ita-878-item.ita-878-active .ita-878-content {
		flex-basis: auto;
		height: 50%;
	}
	
	.ita-878-content-inner {
		min-width: auto;
	}
}
