/* ── Impact Production — Before/After Slider ─────────── */
.ba-slider-wrap {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    font-family: 'Inter', sans-serif;
}

.ba-slider {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,.45);
}

.ba-slider[data-orientation="vertical"] { cursor: ns-resize; }

.ba-before, .ba-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.ba-after img, .ba-before img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Before layer — clipped to reveal */
.ba-before {
    clip-path: inset(0 calc(100% - var(--ba-offset, 50%)) 0 0);
    transition: clip-path 0.04s ease;
    z-index: 2;
}

.ba-slider[data-orientation="vertical"] .ba-before {
    clip-path: inset(0 0 calc(100% - var(--ba-offset, 50%)) 0);
}

/* After layer sets container height */
.ba-after { z-index: 1; position: relative; }
.ba-after img  { display: block; width: 100%; height: auto; }

/* ── Labels ─────────────────────────────────────────── */
.ba-label {
    position: absolute;
    bottom: 14px;
    background: rgba(13,13,13,.80);
    color: var(--ip-gold, #BFA76F);
    border: 1px solid rgba(191,167,111,.35);
    padding: 5px 14px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.ba-label-before { left: 14px; }
.ba-label-after  { right: 14px; }

/* ── Handle ─────────────────────────────────────────── */
.ba-handle {
    position: absolute;
    top: 0;
    left: var(--ba-offset, 50%);
    transform: translateX(-50%);
    height: 100%;
    width: 44px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.ba-slider[data-orientation="vertical"] .ba-handle {
    top: var(--ba-offset, 50%);
    left: 0;
    width: 100%;
    height: 44px;
    flex-direction: row;
    transform: translateY(-50%);
}

/* Gold divider line */
.ba-handle-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--ip-gold, #BFA76F) 15%,
        var(--ip-gold, #BFA76F) 85%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(191,167,111,.4);
}

.ba-slider[data-orientation="vertical"] .ba-handle-line {
    flex: 1;
    height: 2px;
    width: auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ip-gold, #BFA76F) 15%,
        var(--ip-gold, #BFA76F) 85%,
        transparent 100%
    );
}

/* Dark handle button with gold ring */
.ba-handle-btn {
    width: 44px;
    height: 44px;
    background: var(--ip-black, #0D0D0D);
    border: 2px solid var(--ip-gold, #BFA76F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(13,13,13,.5),
        0 4px 16px rgba(191,167,111,.3);
    flex-shrink: 0;
}

.ba-handle-btn svg { fill: var(--ip-gold, #BFA76F); }

/* ── Video support ──────────────────────────────────── */
.ba-before video,
.ba-after  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-after video {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
}
