﻿

.img-comparison-slider {
    position: relative;
    width: 100%; /* Adjust this percentage or use a specific pixel value like 600px */
    min-width: 150px;
    overflow: hidden;
    user-select: none; /* Prevent user text selection */
    margin: 0 auto; /* Center the slider */
}

.img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none; /* Prevent image selection */
}

.img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0); /* Initially show only half of the top image */
    transition: none; /* Remove transition for better performance */
    pointer-events: none; /* Prevent image selection */
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px; /* Make the slider line thin */
    height: 100%;
    background-color: gray; /* Change to gray or black as needed */
    cursor: ew-resize;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider::before {
        content: '⬌'; /* Use the thick hollow horizontal arrow symbol */
        display: block;
        color: black; /* Adjust text color as needed */
        font-size: 36px; /* Double the font size */
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


