.image-compare {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: ew-resize;
    display: block;
    width: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.image-compare__img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
}

.image-compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--compare-position, 50%)) 0 0);
}

.image-compare__before .image-compare__img--before {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.image-compare__after-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.image-compare__tag {
    position: absolute;
    top: 16px;
    background: #ffffff;
    color: #0A0A0A;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 100px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.14);
    white-space: nowrap;
}

.image-compare__tag--before { left: 16px; }
.image-compare__tag--after  { right: 16px; }

.image-compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position, 50%);
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-compare__handle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.20);
    flex-shrink: 0;
    color: #0A0A0A;
}

.image-compare__chevrons { display: block; }
