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

/* 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;
}

/* 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: transparent;
  height: calc(100% + 40px);
  width: 1px;
  z-index: 4;
  left: 0;
  top: -20px;
  border-left: 1px dashed var(--primary);
}

/* Drag handle (circle) */
.images-compare-handle {
    height: 70px;
    width: 70px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -35px;
    margin-top: -35px;
    z-index: 3;
    background: url(../images/poignee.svg) no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Drag handle arrows */
.images-compare-left-arrow, .images-compare-right-arrow {
    display: none;
}

.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;
}

/* Label */
.images-compare-label {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    position: absolute;
    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;
    width: 50%;
    text-align: center;
    color: var(--primary);
    top: initial;
    bottom: -60px;
}

.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;
}

.images-compare-bottom{
  margin-top: -15px;
  text-align: center;
  color: var(--primary);
  font-family: 'Nexa';
  font-size: 25px;
  font-weight: 500;
}

@media (max-width:767px){
  .images-compare-bottom { font-size: 18px; }
}
