/* ═══════════════════════════════════════════════════
   Before/After Comparison Slider
   ═══════════════════════════════════════════════════ */

.ba-card__comparison.is-active {
    cursor: ew-resize;
}

.ba-card__comparison.is-active .ba-card__slider-handle {
    transform: translate(-50%, -50%) scale(0.9);
}

/* Fullscreen lightbox for B/A */
.ba-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--bj-z-modal);
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--bj-duration-base) var(--bj-ease);
}

.ba-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.ba-lightbox__content {
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.ba-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
}
