/* style.css */
.comparison-container {
    position: relative;
    width: 80%;
    max-width: 600px;
    /*aspect-ratio: 4 / 3;*/
	aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	margin: 0 auto 20px;
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-img.after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.2s ease;
}

.slider-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ccc;
    border-radius: 3px;
    outline: none;
    position: relative;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}
