.images-compare-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: var(--pt-border-radius);
    width: 100%;
    max-width: 100% !important;
}

.images-compare-before {
    will-change: clip;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    width: 100% !important;
}

.images-compare-after {
    pointer-events: none;
    width: 100% !important;
}
.images-compare-before img,
.images-compare-after img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.images-compare-separator {
    position: absolute;
    background: var(--secondary-color);
    height: 100%;
    width: 1px;
    z-index: 4;
    left: 0;
    top: 0;
}

.images-compare-handle {
    height: 60px;
    width: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -30px;
    margin-top: -22px;
    -webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px;
    z-index: 9;
    background: var(--primary-color);
    cursor: pointer;
}

/* Drag handle arrows */
.images-compare-left-arrow,
.images-compare-right-arrow {
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
}

.images-compare-left-arrow {
    border-right: 6px solid white;
    left: 50%;
    margin-left: -17px;
}

.images-compare-right-arrow {
    border-left: 6px solid white;
    right: 50%;
    margin-right: -17px;
}

.pt-images-label {
    text-transform: capitalize;
    font-family: var(--title-fonts);
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    color: var(--dark-color);
    pointer-events: none;
    display: none;
    font-size: 22px;
    line-height: 30px;
}

.images-compare-container .pt-images-label {
    display: inherit;
}

.images-compare-before .pt-images-label {
    left: 20px;
}

.images-compare-after .pt-images-label {
    left: auto;
    right: 20px;
}

