/* Images compare main container */
.images-compare-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Images compare front element */
.images-compare-before {
    will-change: clip;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* Images compare back element */
.images-compare-after {
  pointer-events: none;
  will-change: clip;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Responsive image settings */
.images-compare-before img, .images-compare-after img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Separator (thin vertical blank line) */
.images-compare-separator {
    position: absolute;
    background: #0032aa;
    height: 670px;
    width: 8px;
    margin-left: -4px;
    z-index: 4;
    left: 0;
    top: -100px;
    cursor: ew-resize;
    cursor: -moz-ew-resize;
    cursor: -webkit-ew-resize;
}

.images-compare-separator:active {
  cursor: ew-resize;
  cursor: -moz-ew-resize;
  cursor: -webkit-ew-resize;
}

/* Drag handle (circle) */
.images-compare-handle {
    height: 50px;
    width: 50px;
    position: absolute;
    left: 50%;
    bottom: -50px;
    margin-left: -25px;
    margin-top: -25px;
    border: none;
    -webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px;
    -webkit-box-shadow: 0 0 26px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 26px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 26px rgba(0, 0, 0, 0.3);
    z-index: 9;
    background: #fff;
    cursor: ew-resize;
    cursor: -moz-ew-resize;
    cursor: -webkit-ew-resize;
}

.images-compare-handle:active {
    cursor: ew-resize;
    cursor: -moz-ew-resize;
    cursor: -webkit-ew-resize;
}

/* Drag handle arrows */
.images-compare-left-arrow, .images-compare-right-arrow {
    width: 0;
    height: 0;
    position: absolute;
    top: 50%;
    border: solid #0032aa;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5.5px;
    margin-top: -5.5px;
}

.images-compare-left-arrow {
    left: 50%;
    margin-left: -11px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.images-compare-right-arrow {
    right: 50%;
    margin-right: -11px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

/* Label */
.images-compare-label {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    color: rgb(0, 0, 0);
    color: rgba(0, 0, 0, 0.4);
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    display: none;
}

.images-compare-container .images-compare-label {
    display: inherit;
}

.images-compare-before .images-compare-label {
    left: 10px;
}

.images-compare-after .images-compare-label {
    left: auto;
    right: 10px;
}
