.slider-wrap {
    width: 100%;
  max-width: var(--text-max); margin-left: auto; margin-right: auto;
    position: relative;
    z-index: 1;

}
.slider-wrap:not(:first-child) {
    margin-top: calc(var(--gutter) * 1.5);
}
.slider-wrap:not(:last-child) { margin-bottom: calc(var(--gutter) * 1.5); }


.comparison-slider {
    position: relative;
    width: 100%;
    /*aspect-ratio: 2048 / 591;*/
    /*overflow: hidden;*/

    user-select: none;
}

.comparison-slider picture {
    border-radius: 8px; overflow: hidden;
}
.comparison-slider :is(img,picture) {
    display: block; width: 100%; height: auto;
}
.comparison-slider :is(picture.after-image img,picture.after-image) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--amarenco_blue);
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.slider-handle::before {
    content: "↔";
    content: "◀ ▶";
    color: var(--amarenco_blue);
    font-size: 16px !important;
    line-height: 1;
    font-weight: 900;
}

.slider-input {
    position: absolute;
    inset: 0;
    z-index: 5;
    margin: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: ew-resize;
}

.slider-input::-moz-range-thumb {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: ew-resize;
}

.labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
}

@media (max-width: 700px) {
    body {
        padding: 16px;
    }

    .slider-handle {
        width: 48px;
        height: 48px;
    }

    .slider-handle::before {
        font-size: 20px;
    }

    .slider-input::-webkit-slider-thumb {
        width: 48px;
        height: 48px;
    }

    .slider-input::-moz-range-thumb {
        width: 48px;
        height: 48px;
    }
}