.custom-image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0;
  padding-bottom: 75%; /* Adjust this value according to your image aspect ratio */
}

.slider-before,
.slider-after {
  position: absolute;
  width: 100%;
  display: block;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: contain;
}

.slider-after {
  overflow: hidden;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #fff;
  cursor: ew-resize;
}

.slider-handle::before,
.slider-handle::after {
content: "";
position: absolute;
top: 50%;
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
cursor: ew-resize;
transition: all 0.2s ease-out; /* Add transition property */
}

.slider-handle::before {
left: -24px;
border-right: 16px solid #fff;
}

.slider-handle::after {
right: -24px;
border-left: 16px solid #fff;
}

.btn a {
  text-decoration: none;
  color: inherit; /* Butonun rengini kullanır */
  display: block;
  width: 100%; /* Tüm butonu kaplar, tıklama alanı büyür */
  height: 100%;
  padding: 8px 16px; /* Buton içindeki boşluğu dengeler */
}