
.comparison-slider img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.comparison-slider {
  margin-bottom: 2rem;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 15px rgb(0 0 0 / 25%);
}

.comparison-slider .comparison-item {
  overflow: hidden;
}

.comparison-slider .comparison-item.top {
  z-index: 1;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
}

.comparison-slider .comparison-item.top img {
  height: 100%;
  object-fit: cover;
}

.comparison-slider .handle {
  position: absolute;
  width: 3px;
  height: 100%;
  background: white;
  z-index: 3;
  cursor: col-resize;
  top: 0;
}

.comparison-slider .handle svg {
  display: block;
  position: absolute;
  top: calc(50% - 15px);
  right: calc(50% - 15px);
  height: 30px;
  width: 30px;
  background: white;
  border-radius: 8px;
  padding: 2px;
}