.ba-slider {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
 

.ba-slider .handle:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin: 0 0 0 -1px;
    background: #fff;
}

.ba-slider .handle:after {
    content:'';
    display:block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 64px;
    margin: -32px 0 0 -23px;
    background: url('/media/img/drag.svg') no-repeat 50% 50%;
    background-size: contain;
    transition: transform 150ms ease-out;
}

 
@media (min-width: 320px) {
    .ba-slider img {
        display: block;
        max-height: 57vmin;
    }
    .ba-slider .handle:before {
        width: 1px;
    }
    .ba-slider .handle:after {
        width: 34px;
        margin: -31px 0 0 -17px;
    }

    .image_comparison.vertical.ba-slider img{
        max-height: 100vmin;
    }
    
}

@media (min-width: 481px) {
    .ba-slider img {
        max-height: 528px;
    }
    .ba-slider .handle:before {
        width: 1px;
    }
    .ba-slider .handle:after {
        width: 31px;
        margin: -28px 0 0 -16px;
    }
    .image_comparison.vertical.ba-slider img{
        max-height: 800px;
    }
}

.ba-slider .resize {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    display: inline-flex;
}

.ba-slider:hover .resize {
    will-change: width;
}

.ba-slider .handle { /* Thin line seperator */
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 10px;
    margin-left: -5px;
    cursor: ew-resize;
}

.ba-slider:hover .handle {
    will-change: left;
}


.ba-slider .handle.ba-draggable:after {
    transform: scale(1.15);
}

/*
.ba-slider .handle.ba-draggable:after {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    line-height:50px;
    font-size:30px;
}
*/