.alma-compare {
    margin: 1.75em 0;
}

.alma-compare__stage {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #0a0a0a;
    user-select: none;
    touch-action: none;
}

.alma-compare__image {
    display: block;
    margin: 0;
    max-width: none;
    border-radius: 0;
    pointer-events: none;
}

.alma-compare__image--after {
    position: relative;
    width: 100%;
    height: auto;
}

.alma-compare__before-clip {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
}

.alma-compare__image--before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
}

.alma-compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 2;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.alma-compare__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;

    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.82);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.alma-compare__handle::before,
.alma-compare__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -5px;
    border-style: solid;
}

.alma-compare__handle::before {
    left: 10px;
    border-width: 5px 6px 5px 0;
    border-color: transparent #fff transparent transparent;
}

.alma-compare__handle::after {
    right: 10px;
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent #fff;
}

.alma-compare__range {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.alma-compare__labels {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.3;
}

.alma-compare__label--before {
    color: #d8ebff;
}

.alma-compare__label--after {
    color: #f2df9b;
    text-align: right;
}

@media (max-width: 768px) {

    .alma-compare__handle {
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
    }
}
