.ida-1b7980ab-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Top Labels */
.ida-1b7980ab-top-labels {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    gap: 10px;
    min-height: 60px;
}

.ida-1b7980ab-label-item {
    flex: 1 1 0;
    text-align: left;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    opacity: 0.5;
    overflow: hidden;
}

.ida-1b7980ab-container.has-hover .ida-1b7980ab-label-item {
    opacity: 0.3;
}

.ida-1b7980ab-container:not(.has-hover) .ida-1b7980ab-label-item,
.ida-1b7980ab-label-item.is-active {
    opacity: 1;
}

.ida-1b7980ab-label-item.is-active {
    flex: 5 1 0;
}

.ida-1b7980ab-title {
    font-size: 1.25rem;
    font-weight: normal;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ida-1b7980ab-desc {
    font-size: 1rem;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Items Wrapper */
.ida-1b7980ab-items-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
    height: 450px;
}

.ida-1b7980ab-item {
    flex: 1 1 0;
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    background: #f0f0f0;
}

.ida-1b7980ab-item.is-expanded {
    flex: 5 1 0;
}

/* Background image styling - dynamically scale down via 'contain' or 'cover' */
.ida-1b7980ab-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.ida-1b7980ab-item.is-expanded .ida-1b7980ab-bg-wrapper {
    width: 40%;
}

.ida-1b7980ab-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    width: 100%;
    height: 100%;
}

.ida-1b7980ab-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.6s;
    opacity: 0;
}

.ida-1b7980ab-container.has-hover .ida-1b7980ab-glass {
    opacity: 1;
}
.ida-1b7980ab-item.is-expanded .ida-1b7980ab-glass {
    opacity: 0 !important;
}

/* Expanded Content Area */
.ida-1b7980ab-expanded-content {
    position: absolute;
    top: 0;
    left: 40%;
    width: 60%;
    height: 100%;
    background: #fff;
    color: #333;
    padding: 2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.1s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.ida-1b7980ab-item.is-expanded .ida-1b7980ab-expanded-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ida-1b7980ab-expanded-inner {
    text-align: left;
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
}

.ida-1b7980ab-name {
    font-size: 2rem;
    margin: 0 0 5px;
    color: #111;
}

.ida-1b7980ab-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.ida-1b7980ab-bio {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #1d1d1d;
}

/* Link Styling */
.ida-1b7980ab-link {
    display: inline-flex;
    align-items: center;
    color: #1D1D1D;
    text-decoration: none;
    align-self: flex-end;
    margin-top: 10px;
    cursor: pointer;
}

.ida-1b7980ab-link-inner {
    display: inline-block;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.ida-1b7980ab-link-icon {
    width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: width 0.3s ease;
    margin-left: 0;
}

.ida-1b7980ab-link-svg {
    flex-shrink: 0;
    display: block;
}

.ida-1b7980ab-link:hover .ida-1b7980ab-link-inner {
    transform: translateX(-5px);
}

.ida-1b7980ab-link:hover .ida-1b7980ab-link-icon {
    width: 33px;
    margin-left: 10px;
}

/* Mobile Side Scroll Styling */
@media (max-width: 767px) {
    .ida-1b7980ab-top-labels {
        display: none; /* Hide labels on mobile to keep horizontal swiping focused */
    }

    .ida-1b7980ab-items-wrapper {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        height: auto;
        min-height: 500px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .ida-1b7980ab-items-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .ida-1b7980ab-items-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .ida-1b7980ab-item {
        flex: 0 0 85%; /* Shows a peek of the next slide */
        scroll-snap-align: center;
        flex-direction: column;
        height: 480px !important;
        min-height: 480px !important;
        background: #fff;
        border: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }

    /* Override Desktop expanded flex on mobile */
    .ida-1b7980ab-item.is-expanded,
    .ida-1b7980ab-item {
        flex: 0 0 85% !important;
    }

    .ida-1b7980ab-bg-wrapper {
        position: relative;
        width: 100% !important;
        height: 50% !important;
        flex: 0 0 50% !important;
    }

    .ida-1b7980ab-bg {
        background-size: cover; /* Keeps beautiful cropped preview per item */
    }

    .ida-1b7980ab-expanded-content {
        position: relative;
        width: 100% !important;
        height: 50% !important;
        flex: 0 0 50% !important;
        left: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .ida-1b7980ab-expanded-inner {
        overflow-y: auto;
        padding-right: 5px;
        flex-grow: 1;
    }

    .ida-1b7980ab-link {
        align-self: flex-start;
        margin-top: 10px;
    }
}