.gandom-ba-wrapper {
    --gandom-ba-gold: #C7A76A;
    --gandom-ba-charcoal: #202322;
    --gandom-ba-ivory: #F7F4EE;
    --gandom-ba-white: #FFFFFF;
    
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--gandom-ba-ivory);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    user-select: none;
    -webkit-user-select: none;
}

/* Aspect Ratios */
.gandom-ba-ratio-4-3 {
    aspect-ratio: 4 / 3;
}
.gandom-ba-ratio-1-1 {
    aspect-ratio: 1 / 1;
}
.gandom-ba-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.gandom-ba-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: ew-resize;
}

.gandom-ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* After image sits above before image and will be clipped */
.gandom-ba-after-img {
    z-index: 1;
    clip-path: inset(0 0 0 50%);
}

/* Elegant Labels */
.gandom-ba-label {
    position: absolute;
    top: 15px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(32, 35, 34, 0.75);
    color: var(--gandom-ba-white);
    font-size: 13px;
    font-weight: 500;
    border-radius: 30px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.gandom-ba-label-before {
    left: 15px;
}

.gandom-ba-label-after {
    right: 15px;
}

/* Divider Line */
.gandom-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--gandom-ba-gold);
    z-index: 2;
    cursor: ew-resize;
    transform: translateX(-50%);
}

/* Circular Handle */
.gandom-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--gandom-ba-white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    z-index: 4;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.gandom-ba-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.gandom-ba-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 167, 106, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Arrow indicators inside handle */
.gandom-ba-arrow {
    font-size: 12px;
    font-weight: bold;
    color: var(--gandom-ba-charcoal);
    margin: 0 2px;
    transition: color 0.2s ease;
}

.gandom-ba-handle:hover .gandom-ba-arrow {
    color: var(--gandom-ba-gold);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .gandom-ba-handle {
        width: 42px;
        height: 42px;
    }
    .gandom-ba-arrow {
        font-size: 10px;
    }
}
