<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">.img-container {
  position: relative;
  /* border: 2px solid white; */
}

.img-container .img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-position: left;
  background-size: auto 100%;
  background-repeat: no-repeat;
}


.img-container .foreground-img {  
  width: 50%;
}

.img-container:first-of-type .background-img {
  background-image: url("../images/before-1.jpg");
}
.img-container:first-of-type  .foreground-img {
  background-image: url("../images/after-1.jpg");  
}

.img-container:nth-of-type(2) .background-img {
  background-image: url("../images/before-2.jpg");
}
.img-container:nth-of-type(2) .foreground-img {
  background-image: url("../images/after-2.jpg");
  width: 50%;
}

.img-container .slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: rgba(242, 242, 242, 0);
  outline: none;
  margin: 0;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-container .slider:hover {
  background: rgba(242, 242, 242, 0);
}
.img-container .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 100%;
  background: white;
  cursor: pointer;
}
.img-container .slider::-moz-range-thumb {
  width: 6px;
  height: 100%;
  background: white;
  cursor: pointer;
}
.img-container .slider-button {
  pointer-events: none;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  left: calc(50% - 18px);
  top: calc(50% - 18px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-container .slider-button:after {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.img-container .slider-button:before {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
}</pre></body></html>