/* Base Premium Style for Before After Slider */

.wpba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Or adjust according to preference */
    overflow: hidden;
    user-select: none;
    cursor: col-resize;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: 2rem 0;
    touch-action: pan-y;
}

.wpba-container.is-dragging {
    cursor: grabbing !important;
}


.wpba-image-after, 
.wpba-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.wpba-image-before {
    clip-path: inset(0 50% 0 0); /* Default 50% reveal from left */
    z-index: 5;
}


/* Glassmorphism labels */
.wpba-label {
    position: absolute;
    top: 15px;
    padding: 8px 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    z-index: 10;
    pointer-events: none;
}

.wpba-label-before {
    left: 15px;
}

.wpba-label-after {
    right: 15px;
}

/* The Handle slider line */
.wpba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 4px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Circular handle in the middle */
.wpba-handle-circle {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wpba-handle-circle svg {
    width: 20px;
    height: 20px;
}

.wpba-container:hover .wpba-handle-circle {
    transform: scale(1.1);
}

/* Horizontal line segments inside the handle */
.wpba-handle-line {
    flex: 1;
    width: 2px;
    background: rgba(255,255,255,0.7);
}

/* Invisible interaction layer (Slider input) */
.wpba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0; /* Making it invisible but functional */
    cursor: col-resize;
    z-index: 30;
    pointer-events: none;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.wpba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 100%;
    cursor: col-resize;
}

.wpba-slider::-moz-range-thumb {
    width: 40px;
    height: 100%;
    cursor: col-resize;
}
