.ita-51e23ed8-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 12px;
}

.ita-51e23ed8-item {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    cursor: pointer;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), flex-grow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ita-51e23ed8-item.active {
    flex: 4;
    cursor: default;
    display: grid !important;
    grid-template-columns: 55% 45% !important;
}

/* Vertical Label on collapsed state */
.ita-51e23ed8-strip-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.ita-51e23ed8-item.active .ita-51e23ed8-strip-overlay {
    opacity: 0;
    pointer-events: none;
}

.ita-51e23ed8-vertical-label {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Panel on Left (revealed when active) */
.ita-51e23ed8-content {
    grid-column: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    background-color: #fafafa;
    transition: opacity 0.4s ease, padding 0.6s ease;
}

.ita-51e23ed8-item.active .ita-51e23ed8-content {
    opacity: 1;
    padding: 40px;
    overflow-y: auto;
}

.ita-51e23ed8-content-inner {
    width: 100%;
    padding-right: 15px; /* Half size gap (15px instead of 30px) between text and image */
}

.ita-51e23ed8-name {
    margin: 0 0 8px 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.ita-51e23ed8-title {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ita-51e23ed8-bio {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* Image styling - 100% grayscale by default */
.ita-51e23ed8-image-wrap {
    grid-column: 2 !important;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease;
}

.ita-51e23ed8-item:not(.active) .ita-51e23ed8-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ita-51e23ed8-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.ita-51e23ed8-item.active .ita-51e23ed8-image-wrap img {
    filter: grayscale(0%);
}

/* Socials */
.ita-51e23ed8-socials {
    display: flex;
    gap: 12px;
}

.ita-51e23ed8-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ita-51e23ed8-social-icon:hover {
    background-color: #111;
    color: #fff;
}

/* Responsive Styles - Stacks vertically on mobile */
@media (max-width: 767px) {
    .ita-51e23ed8-container {
        flex-direction: column;
        height: auto !important;
        gap: 16px;
    }

    .ita-51e23ed8-item {
        flex-direction: column;
        min-height: 120px;
    }

    .ita-51e23ed8-item.active {
        display: flex !important; /* fallback to flex on mobile */
        flex-direction: column !important;
        min-height: 520px;
    }

    .ita-51e23ed8-strip-overlay {
        background: rgba(0,0,0,0.3);
    }

    .ita-51e23ed8-vertical-label {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.1rem;
    }

    .ita-51e23ed8-item.active .ita-51e23ed8-content {
        flex: none;
        width: 100%;
        padding: 24px;
        order: 2;
    }

    .ita-51e23ed8-item.active .ita-51e23ed8-image-wrap {
        height: 250px;
        flex: none;
        order: 1;
    }

    /* Mobile image positions: preview 30% higher, selected 20% higher */
    .ita-51e23ed8-item:not(.active) .ita-51e23ed8-image-wrap img {
        object-position: center 30%;
    }

    .ita-51e23ed8-item.active .ita-51e23ed8-image-wrap img {
        object-position: center 30%;
    }
}
