.comparison-image-section {
    background: rgba(var(--color-background));
}

.comparison-image {
    display: flex;
    align-items: center;
    gap: 60px;
}

.comparison-image .content {
    width: 45%;
    padding: 0 8vw;
}

.comparison-image .container {
    width: 55%;
    object-fit: cover;
}

.comparison-image .content .button {
    margin-top: 80px;
}

.comparison-image .content .block-heading {
    margin-bottom: 20px;
}

/* .container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
} */


.comparison-image .image-comparison {
    position: relative;
    width: 50vw;
    height: auto;
    /* max-width: 800px;
    min-height: 500px; */
    aspect-ratio: 800 / 500;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.comparison-image .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-image .before-image {
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.comparison-image .after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.comparison-image .after-image {
    width: 50vw;
    aspect-ratio: 800 / 500;
    height: auto;
    object-fit: cover;
    -webkit-user-select: none;
    -ms-user-select: none;
    object-fit: cover;
}

.comparison-image .slider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0px;
    height: 100%;
    background: white;
    z-index: 3;
    cursor: col-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-image .slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.comparison-image .slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}



.comparison-image .slider-handle::before {
    transform: translateX(-3px);
}

.comparison-image .slider-handle::after {
    transform: translateX(3px);
}

.comparison-image .arrow-left,
.comparison-image .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.comparison-image .arrow-left {
    left: 12px;
    border-right: 12px solid #3498db;
}

.comparison-image .arrow-right {
    right: 12px;
    border-left: 12px solid #3498db;
}

.comparison-image .label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    color: #ffffff;
    z-index: 4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-image .label-before {
    left: 20px;
}

.comparison-image .label-after {
    right: 20px;
}

@media (max-width: 1024px) {
}

@media (max-width: 768px) {


    .comparison-image {
        display: flex;
        flex-direction: column;
        gap: 8vw;
    }

    .comparison-image .content,
    .comparison-image .container {
        width: 100%;
    }

    .comparison-image .content {
        padding: 0;
    }

    .comparison-image .content .button {
        margin-top: 8vw;
    }

    .comparison-image .after-image {
        width: auto;
        max-width: 85vw;
    } 

    .comparison-image .image-comparison {
        width: auto;
        max-width: 85vw;
    }
}