.ba-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    aspect-ratio: 16 / 7;
    cursor: col-resize;
    user-select: none;
    touch-action: pan-y;
    background: #2C1810;
}

.ba-panel {
    position: absolute;
    inset: 0;
}

.ba-panel svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    clip-path: inset(0 0 0 70%);
    z-index: 2;
}

.ba-label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    border-radius: 99px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.ba-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ba-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3.5rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    pointer-events: none;
    z-index: 2;
}

/* Handle / divider */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);
    width: 3px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
    z-index: 10;
}

.ba-handle:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.85);
}

.ba-handle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--global-palette1, #40798C);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    color: #fff;
}

.ba-handle-btn svg {
    width: 18px;
    height: 18px;
}

/* Below-slider captions: desktop hidden, mobile shown */
.ba-captions-below {
    display: none;
}

@media (max-width: 980px) {
    .ba-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 1.25rem;
    }

    /* Hide captions inside panels on mobile */
    .ba-caption {
        display: none;
    }

    .ba-label {
        font-size: 0.62rem;
        padding: 0.4rem 0.7rem 0.4rem 0.55rem;
    }

    .ba-handle-btn {
        width: 40px;
        height: 40px;
    }

    /* Show captions below the slider */
    .ba-captions-below {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .ba-caption-block {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .ba-caption-block__label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #fff;
    }

    .ba-caption-block__label svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .ba-caption-block p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.5;
        color: #fff;
    }
}
