.endospheres-before-after {
    position: relative;
    display: block;
}

.endospheres-before-after__images {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: ew-resize;
    border-radius: 20px;
}

.endospheres-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.endospheres-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.endospheres-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.endospheres-after img {
    max-width: none;
    object-fit: cover;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.endospheres-before-after__scroller {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 100%;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 1;
    user-select: none;
}

.endospheres-before-after__scroller::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.endospheres-before-after__scroller::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 6px solid #F1ECE9;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.endospheres-before-after__scroller .scroller-icon {
    position: absolute;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    transform: rotate(90deg);
}

.endospheres-before-after__scroller .scroller-icon span {
    width: 10px;
    height: 2px;
    background: #4a90e2;
}

.endospheres-before-after__scroller:active {
    cursor: grabbing;
}