* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 7px;
}

.before-after-slider {
  position: relative;
  width: 100%;
  /*max-width: 600px;*/
  aspect-ratio: 16/9;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.before-layer, .after-layer {
  position: absolute;
  inset: 0;
}

.before-image, .after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
}

.before-label, .after-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 10px;
  /*background: rgba(255,255,255,0.34);*/
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
  font-family: 'Roboto';
}

.after-label {
  z-index: 20;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 20;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: ew-resize;
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

@media (max-width:768px) {
  .before-after-slider {
    max-width: 100%;
  }
}

@media (max-width:768px) {
  .before-label, .after-label {
    font-size: 16px;
    padding: 8px 14px;
  }
}

@media (max-width:768px) {
  .slider-handle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

div {
}

