/* Image compare slider styles */

.image-compare-slider {
    width: 100%;
    position: relative;
}

.image-compare-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-compare-img {
    display: block;
    width: 100%;
    height: auto;
}

.image-compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.image-compare-overlay .image-compare-img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0);
}

.image-compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: ew-resize;
    pointer-events: all;
    color: #fff;
}

.image-compare-handle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.image-compare-handle-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.image-compare-handle-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
    z-index: 4;
}

.left-arrow {
    transform: rotate(-135deg);
    left: 12px;
}

.right-arrow {
    transform: rotate(45deg);
    right: 12px;
}

/* Bigapp specific styles */

.bigapp-slider {
    max-width: 840px;
    min-width: 600px;
    width: 50vw;
}

.bigapp-slider .image-compare-container {
    overflow: hidden;
}

.bigapp-slider-mobile {
    display: none;
}

/* Mobile optimizations */

@media (max-width: 767px) {
    .image-compare-handle-circle {
        width: 30px;
        height: 30px;
    }
    .image-compare-handle-arrow {
        width: 6px;
        height: 6px;
    }
    .left-arrow {
        left: 10px;
    }
    .right-arrow {
        right: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .bigapp-slider {
        display: none;
    }
    .bigapp-slider-mobile {
        display: flex;
        justify-content: flex-start;
        padding-right: 6vw;
        margin-bottom: 30px;
    }
}