.comparison-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(17, 40, 114, 1);
}

.comparison-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.comparison-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.comparison-after {
    clip-path: inset(0 50% 0 0);
}

.comparison-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 50px;
    background: transparent;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-handle::before{
    content: '';
    width: 25px;
    height: 100%;
    position: absolute;
    right: 50%;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0.25) 100%);
}

.handle-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 1px 1px 2px);
}

.handle-buttons .gap {
    width: 4px;
    background-color: var(--e-global-color-accent);
}

.handle-buttons button {
    background-color: var(--e-global-color-accent);
    border: none;
    padding: 0;
    width: 30px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.handle-buttons button:hover {
    background: #f0f0f0;
    color: var(--e-global-color-accent);
    outline: none;
    border: none;
}

.handle-buttons .snap-left{
    border-bottom-left-radius: 32px;
    border-top-left-radius: 32px;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

.handle-buttons .snap-right{
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 32px;
    border-top-right-radius: 32px;
}
