.beforeAfter-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.beforeAfter-slider img {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
}

.beforeAfter-text {
  background: #e5f2ff;
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: #0862ee;
  padding: 12px 18px;
  border-radius: 10px;
  position: absolute;
  z-index: 11;
  top: 30px;
  left: 30px;
}

.beforeAfter-text--end{
  left: auto;
  right: 30px
}

.beforeAfter-before {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 2;
  width: 50%;
  height: 100%;
}

.beforeAfter-change {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  width: 3px;
  height: 100%;
  background-color: white;
}

.beforeAfter-change::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 100%;
  min-width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: url("../img/before-after.svg") no-repeat center;
}
