/* Image Comparison Slider Styles */
.bkdev-image-comparison {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
    height: 100%;
}

.bkdev-image-comparison img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}

.bkdev-comparison-before {
    position: relative;
    width: 100%;
    height: 100%;
}

.bkdev-comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    /* CRITICAL: This makes the slider work */
    display: flex;
}

.bkdev-comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--gray-400, #9CA3AF);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.bkdev-comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 50px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .bkdev-comparison-handle {
        width: 30px;
        height: 42px;
    }
}