.ita-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 8px;
}

.ita-item {
    flex: 1 1 0%;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.ita-item.active {
    flex: 3 1 0%;
    cursor: default;
}

.ita-content {
    flex: 0 0 0%;
    width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s;
    background-color: #ffffff;
}

.ita-item.active .ita-content {
    flex: 1 1 50%;
    width: auto;
    opacity: 1;
    visibility: visible;
}

.ita-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

.ita-name {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ita-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 500;
}

.ita-bio {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ita-socials {
    display: flex;
    gap: 12px;
}

.ita-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease, fill 0.3s ease;
}

.ita-image-wrapper {
    flex: 1 1 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ita-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Responsive Grid / Stack for mobile */
@media (max-width: 767px) {
    .ita-container {
        flex-direction: column;
        height: auto !important;
        gap: 12px;
    }

    .ita-item {
        flex-direction: column;
        flex: none !important;
        height: 120px;
        transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .ita-item.active {
        height: auto;
        min-height: 400px;
    }

    .ita-item.active .ita-content {
        flex: none;
        width: 100%;
        order: 2;
    }

    .ita-image-wrapper {
        height: 200px;
        flex: none;
        order: 1;
    }
}
