/* Before / After Drag Slider — aum-baf */
.aum-baf-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 480px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-sizing: border-box;
}
.aum-baf-wrap.aum-baf-v { cursor: row-resize; }

/* ── Layers ── */
.aum-baf-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.aum-baf-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Before: clipped by JS inline style */
.aum-baf-before {
    /* clip-path set by JS */
}

/* ── Labels ── */
.aum-baf-label {
    position: absolute;
    bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: rgba(0,0,0,0.45);
    padding: 5px 12px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1.4;
}

/* Horizontal: before=left, after=right */
.aum-baf-h .aum-baf-before .aum-baf-label--before { left: 16px; }
.aum-baf-h .aum-baf-after  .aum-baf-label--after  { right: 16px; }

/* Vertical: before=top, after=bottom */
.aum-baf-v .aum-baf-before .aum-baf-label--before { top: 16px; bottom: auto; left: 50%; transform: translateX(-50%); }
.aum-baf-v .aum-baf-after  .aum-baf-label--after  { bottom: 16px; left: 50%; transform: translateX(-50%); }

/* ── Divider ── */
.aum-baf-divider {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Horizontal divider */
.aum-baf-h .aum-baf-divider {
    top: 0;
    bottom: 0;
    width: 2px;
    left: 50%; /* overridden by JS */
    transform: translateX(-50%);
    flex-direction: column;
    background-color: #ffffff;
}

/* Vertical divider */
.aum-baf-v .aum-baf-divider {
    left: 0;
    right: 0;
    height: 2px;
    top: 50%; /* overridden by JS */
    transform: translateY(-50%);
    flex-direction: row;
    background-color: #ffffff;
}

/* ── Handle ── */
.aum-baf-handle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    color: var(--primary, #3b82f6);
    pointer-events: all;
    cursor: inherit;
    flex-shrink: 0;
    outline: none;
    transition: transform 0.15s ease;
}
.aum-baf-handle:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
}
.aum-baf-wrap:active .aum-baf-handle { transform: scale(1.08); }

.aum-baf-icon { width: 20px; height: 20px; display: block; }
.aum-baf-wrap.aum-baf-h .aum-baf-icon--v { display: none; }
.aum-baf-wrap.aum-baf-v .aum-baf-icon--h { display: none; }
