.az-ba-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    --az-ba-pos: 50%;
}

.az-ba-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.az-ba-before {
    clip-path: inset(0 calc(100% - var(--az-ba-pos)) 0 0);
}

.az-ba-container[data-orientation="vertical"] .az-ba-before {
    clip-path: inset(0 0 calc(100% - var(--az-ba-pos)) 0);
}

.az-ba-label {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 3;
}

.az-ba-label-before {
    left: 16px;
}

.az-ba-label-after {
    right: 16px;
}

.az-ba-divider {
    position: absolute;
    top: 0;
    left: var(--az-ba-pos);
    width: 2px;
    height: 100%;
    z-index: 4;
    transform: translateX(-50%);
    pointer-events: none;
}

.az-ba-container[data-orientation="vertical"] .az-ba-divider {
    top: var(--az-ba-pos);
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.az-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: ew-resize;
    pointer-events: auto;
}

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

.az-ba-container[data-orientation="vertical"] .az-ba-handle svg {
    transform: rotate(90deg);
}

.az-ba-handle:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.az-ba-caption {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 3;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .az-ba-container {
        height: 320px;
    }
}
