.slider-wrapper {
  position: relative;
  width: 500px;
  height: 350px;
  max-width: 100%;
}
@keyframes float {
  0% { transform: translateY(0) rotate(var(--rotate)); }
  50% { transform: translateY(10px) rotate(var(--rotate)); }
  100% { transform: translateY(0) rotate(var(--rotate)); }
}
.slide {
  position: absolute;
  width: 50%;
  height: 100%;
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  z-index: 0;
}
.slide img {
  width: 100%;
  height: auto;
  /*border-radius: 20px;*/
  /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);*/
  animation: float 5s ease-in-out infinite;
}
.slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ریسپانسیو */
@media (max-width: 600px) {
  .slider-wrapper {
    height: 280px; 
  }

  .slide {
    width: 80%;       
    left: 10%;         
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  }
 
   .slide.slide-right{
      left:20%!important;
  }
 
   .slide.slide-right.active{
      left:20%!important;
  }

  .slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
