.page {
    position: relative;
    display: block;
    width: 90%;
    height: 100%;
}

.beforeAfterbox {
    width: 100%;
    height: 240px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    border-style: solid;
    border-width: 3px;
    border-image-source: linear-gradient(123.8deg, #8C4794 -2.11%, #4472E9 97.7%);
    border-image-slice: 3;
}

.beforeImg,
.afterImg {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.beforeImg img,
.afterImg img {
    max-width: inherit;
}

.content-image {
    height: 100%;
}

.afterImg {
    width: 125px;
}

.scroller {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: transparent;
    opacity: 0.9;
    pointer-events: auto;
    cursor: pointer;
}

.scroller:hover {
    opacity: 1;
}

.scrolling {
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

.scroller__thumb {
    width: 100%;
    height: 100%;
    padding: 3px;
    background: linear-gradient(139.4deg, #D9D9D9 6.59%, rgb(155, 155, 155) 100%);
    border-radius: 100px;
}

.scroller:before,
.scroller:after {
    content: " ";
    display: block;
    width: 5px;
    height: 9999px;
    position: absolute;
    left: 50%;
    margin-left: -3.5px;
    z-index: 30;
    transition: 0.1s;
}

.scroller:before {
    top: 100%;
}

.scroller:after {
    bottom: 100%;
}

/* If you want to cahnge the colors, make sure you change the fill in the svgs to match */
.scroller {
    border: 0px solid rgba(217, 217, 217, 0.5);
}

.scroller:before,
.scroller:after {
    background: rgba(217, 217, 217, 0.5);
}

.beforetxt {
    display: inline-block; padding: 6px 15px;
    font-size: 11px;
    position: absolute;
left: 10px;
bottom: 6px;
color:#fff;
background: linear-gradient(96.43deg, #8C4794 -3.35%, #4472E9 180.62%);
border-radius: 7px;
}
.aftertxt {
    display: inline-block; padding: 6px 15px;
    font-size: 11px;
    position: absolute;
right: 10px;
bottom: 6px;
color:#fff;
background: linear-gradient(96.43deg, #8C4794 -3.35%, #4472E9 180.62%);
border-radius: 7px;
}


@media (max-width:768px) {
    .beforeAfterbox {
        height: 125px;
width: 215px;
    }
    .page {
        height: 135px; width: 100%; margin-top: 20px;
      }

      .twentytwenty-container img {margin: 0;}
    
}