.ita-120-container {
    display: flex;
    width: 100%;
    height: 500px; /* Default desktop height */
    overflow: hidden;
    gap: 0;
    border-radius: 10px;
}

.ita-120-item {
    flex: 1;
    display: flex;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-right: 2px solid #fff;
}

.ita-120-item:last-child {
    border-right: none;
}

/* Image styling */
.ita-120-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    transition: width 0.6s ease;
}

.ita-120-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

/* Content styling (hidden by default) */
.ita-120-content {
    width: 50%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: 2;
    position: relative;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
    display: flex;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.ita-120-content-inner {
    width: 100%;
    min-width: 200px;
}

.ita-120-name {
    margin: 0 0 5px;
    font-size: 24px;
}

.ita-120-job {
    margin: 0 0 15px;
    font-size: 16px;
    color: #666;
}

.ita-120-bio {
    font-size: 14px;
    line-height: 1.6;
}

.ita-120-socials a {
    display: inline-block;
    margin-right: 10px;
    color: #333;
    font-size: 18px;
}

/* Active State */
.ita-120-item.ita-120-item-active {
    flex: 5; /* Expand width significantly */
    cursor: default;
}

.ita-120-item.ita-120-item-active .ita-120-image-wrapper {
    width: 50%; /* Image takes half of expanded area */
}

.ita-120-item.ita-120-item-active .ita-120-image-wrapper img {
    filter: grayscale(0%);
}

.ita-120-item.ita-120-item-active .ita-120-content {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .ita-120-container {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .ita-120-item {
        border-right: none;
        border-bottom: 2px solid #fff;
        min-height: 80px; /* Small strip height */
    }

    .ita-120-item:last-child {
        border-bottom: none;
    }
    
    .ita-120-content {
        width: 100%;
        height: 50%;
        padding: 20px;
        transform: translateY(-100%);
    }

    .ita-120-item.ita-120-item-active .ita-120-image-wrapper {
        width: 100%;
        height: 50%;
        top: 50%; /* Image moves to bottom half */
    }
    
    .ita-120-item.ita-120-item-active .ita-120-content {
        transform: translateY(0);
    }
}
