.before_after_slider {
  position: relative;
  overflow: hidden;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
}

.box_before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  border-right: 5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 10px 0 15px -13px #000;
}

.box_before img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.box_before::before {
  content: '';
  z-index: 1;
  position: absolute;
  top: 0;
  right: -25px;
  bottom: 0;
  width: 45px;
  height: 45px;
  margin: auto;
  border: 5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 10px 0 15px -13px #000;
}

.slider_range {
  z-index: 4;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: col-resize;
}

.box_before::before {
  z-index: 1;
  position: absolute;
  top: 0;
  right: -25px;
  bottom: 0;
  width: 45px;
  height: 45px;
  margin: auto;
  border: 5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 10px 0 15px -13px #000;
}

.box_before_label {
  bottom: 16px;
  left: 16px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 20px;
  border-radius: 8px;
  font-weight: 700;
  color: #0098D8;
  padding: 4px 16px;
  background: #fff;
}

.box_after_label {
  bottom: 16px;
  right: 16px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 20px;
  border-radius: 8px;
  font-weight: 700;
  color: #e74c3c;
  padding: 4px 16px;
  background: #fff;
}

@media (max-width: 960px) {
  .box_before_label,
  .box_after_label {
    font-size: 12px;
    padding: 2px 8px;
  }
}