#image-comparison {
  position: relative;
  background-color: #DDDDDD;
  font-family: 'helvetica', sans-serif;
  font-weight: lighter;
  font-size: 14px;
  color: #555;
  min-width: 320px;
  z-index: 1;
}

#image-comparison .comparison-slider-wrapper {
  width: 604px;
  height: 604px;
  max-width: 100%;
  margin: 20px auto;
  background-color: white;
}

#image-comparison .comparison-slider {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  border: 5px white solid;
  box-sizing: border-box;
  overflow: hidden;
}

#image-comparison .comparison-slider > img,
#image-comparison .comparison-slider .resize > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  display: block;
  z-index: 1;
}

#image-comparison .overlay {
  display: none;
  position: absolute;
  width: 250px;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  box-sizing: border-box;
  color: #DDD;
  text-align: right;
}

@media screen and (min-width: 767px) {
  #image-comparison .overlay {
    display: block;
  }
}

#image-comparison .resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

#image-comparison .resize > img {
  display: block;
}

#image-comparison .resize .overlay {
  right: auto;
  left: 20px;
  text-align: left;
}

#image-comparison .divider {
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: rgba(256, 256, 256, 0.2);
  left: 50%;
  top: 0;
  bottom: 0;
  margin-left: -1px;
  cursor: ew-resize;
  z-index: 1;
}

#image-comparison .divider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: -9px;
  top: 50%;
  margin-top: -10px;
  background-color: white;
  transform: rotate(45deg);
  transition: all 0.1s ease-in-out;
}

#image-comparison .divider:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: -5px;
  top: 50%;
  margin-top: -6px;
  background-color: white;
  transform: rotate(45deg);
  transition: all 0.1s ease-in-out;
}

#image-comparison .divider.draggable:before {
  width: 30px;
  height: 30px;
  left: -14px;
  margin-top: -15px;
}

#image-comparison .divider.draggable:after {
  width: 20px;
  height: 20px;
  left: -9px;
  margin-top: -10px;
  background-color: #555;
}

#image-comparison .caption {
  position: relative;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
  font-style: italic;
}

#image-comparison .suppoprt-me {
  display: inline-block;
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 20vw;
  max-width: 250px;
  min-width: 200px;
  z-index: 9;
}

#image-comparison .suppoprt-me img {
  width: 100%;
  height: auto;
}

.draggable,
.resizable,
.comparison-slider * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}