#slider .home__slider {
  position: relative;
  overflow: hidden;
}

/* each slide covers the slider */
#slider .home__slider .slide__h {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* active slide visible */
#slider .home__slider .slide__h.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* make sure background fills */
/* #slider .home__slider .slide__h .img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */

#slider .home__slider .slide__h .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* IMPORTANT: give slider a height (or it can collapse) */
/* #slider {
  height: 650px;

} */
 #slider {
  position: relative;
}
/* 
#slider .home__slider {
  height: 100%;
} */
 #slider .home__slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 6; /* desktop ratio */
  height: auto;
}


/* ===== Slider controls (ARROWS + PAUSE) ===== */
#slider {
  position: relative;
}

#slider .slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  z-index: 9999;
  pointer-events: none;
}

#slider .slider-btn {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#slider .slider-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

#slider .slider-btn.pause {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% + 80px);
  z-index: 10000;
}

#slider .slide__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;        /* adjust */
  z-index: 9998;
  pointer-events: none;
}

/* Progress overlay (if you use it) */
#slider .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;           /* very bottom */
  z-index: 9997;
  pointer-events: none;
}

@media (max-width: 768px) {
  #slider .home__slider {
    aspect-ratio: 16 / 12;
  }
}

@media (max-width: 768px) {
  
   #slider .slider-btn.pause {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto !important;     /* ✅ cancel desktop top */
    bottom: 80px !important;  /* ✅ move above progress bar */
    z-index: 10000;
    pointer-events: auto;
  }


  #slider .slider-controls {
    top: 45%;
    padding: 0 12px;
  }

  #slider .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

   #slider .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;   /* arrow/pause icon size */
  }

  /* (optional) shrink the touch/circle look a bit more */
  #slider .slider-btn.pause {
    width: 38px;       /* pause can be slightly larger if you want */
    height: 38px;
    font-size: 18px;
  }
    #slider .slide__info {
    bottom: 40px;
  }
}
