.before-after-wrapper {
    position: relative;
    z-index: 5;
    background: #000;
    /* Prevent overlap with anything behind */
}

.isd-slider-container {
    position: relative;
    width: 358px;
    height: 358px;
    margin: 24px auto;
    overflow: hidden;
    border-radius: 24px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.img-before {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid white;
}

.img-after img {
    display: block;
    width: 358px;
    height: 358px;
    object-fit: cover;
}

.isd-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
}

.isd-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ff0000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8L22 12L18 16"/><path d="M6 8L2 12L6 16"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}