{##########################################}
{#### lichtline GmbH ######################}
{#### it@lichtline.com ####################}
{##########################################}

.hs-image-compare {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 1;
    user-select: none;
    touch-action: none;
    background-color: #f2f2f2;
}

.hs-image-compare__bottom,
.hs-image-compare__top-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.hs-image-compare__top-wrapper {
    width: 100%;
    overflow: hidden;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

.hs-image-compare__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.8s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.hs-image-compare__bottom:hover .hs-image-compare__image,
.hs-image-compare__top-wrapper:hover .hs-image-compare__image {
    filter: blur(1.8px);
}

.hs-image-compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.hs-image-compare__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(32, 32, 32, 0.65);
    color: #fff;
    width: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    z-index: 4;
    cursor: ew-resize;
    transition: background-color 0.25s ease, transform 0.15s ease;
    padding: 0.5rem;
}

.hs-image-compare__handle:hover {
    background: white;
}

.hs-image-compare__handle:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.hs-image-compare__handle:focus-visible {
    outline: 3px solid #0b5cff;
    outline-offset: 3px;
}

.hs-image-compare__handle-icon {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    pointer-events: none;
}

