.before_after_wrap {
  margin-top: 75px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  max-width: 1200px;
  margin-inline: auto;
  aspect-ratio: 2.67 / 1;
}

.before_after_wrap .img-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before_after_wrap .img-wrapper:nth-child(2) {
  clip-path: inset(0px 0px 0px 50%);
}

.before_after_wrap .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before_after_wrap #line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0.2rem;
  height: 100%;
  background-color: #fafafa;
}

.before_after_wrap input {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  position: absolute;
  width: calc(100% + 2.25rem);
  height: 100%;
  left: -1.125rem;
  border: 0;
  border-radius: 0;
}

.before_after_wrap input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 54px;
  height: 74px;
  border: 0;
  border-radius: 60px;
  background-color: var(--color-pure-blue);
  background-image: url('data:image/svg+xml,<svg width="17" height="24" viewBox="0 0 17 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 0L1 24M8.2 0L8.2 24M15.4 0L15.4 24" stroke="white" stroke-width="2"/></svg>');
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: grab;
}

.before_after_wrap input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.before_after_wrap .input:active::-moz-slider-thumb {
  cursor: grabbing;
}

.before_after_text {
  position: absolute;
  bottom: 34px;
  display: inline-block;
  padding: 11px 38px;
  font-size: 24px;
  line-height: 1em;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 500;
  border-radius: 12px;
  background: var(--color-pure-blue);
}

.before_text {
  left: 19.7%;
}

.after_text {
  right: 19.7%;
}
