.container{
  position: relative;
  border-radius: 1.5rem;
  width: 20%;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

.img{
  display: block;
  height: auto;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.before {
  top: 0;
  right: 0;
  width: 100%;
}

.after {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: inset(0px 0px 0px 50%);
}

.slider-line {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  border: none;
  margin: 0;
  z-index: 2;
}

.slider-line::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3px;
  height: 848px;
  background: goldenrod;
  cursor: pointer;
}

.slider-line::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3px;
  height: 848px;
  background: goldenrod;
  border: none;
  cursor: pointer;
}

.slider-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: calc(50% - 15px);
  left: 46.5%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: goldenrod;
  user-select: none;
  z-index: 1;
  border: 3px solid gold;
  cursor: pointer;
}

.slider-button::before {
  content: '';
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
  user-select: none;
}

.slider-button::after {
  content: '';
  padding: 3px;
  display: inline-block;
  border: solid #5D5D5D;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  user-select: none;
}



@media only screen and (min-width:320px)and (max-width:920px){
  .container{
    width:50%;
    height:auto;
  }
.slider-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: calc(50% - 15px);
  left: 40.7%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: goldenrod;
  user-select: none;
  z-index: 1;
  border: 3px solid gold;
  cursor: pointer;
}


}

