
.home_slider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
  flex-direction: row;
}

.home_slider-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide {
  flex-shrink: 0;
  background: #444;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0.7;
  transition: 0.6s all;
  width: 220px;
  height: 300px;
  margin-right: 20px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.active {
  box-shadow: 0 0 20px #b80f4c;
  box-shadow: #b80f4c 0px 1px 2px 0px, #b80f4c 0px 1px 3px 1px;
  opacity: 1;
}

.slide::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff135d8f;
  color: #000000;
  text-align: center;
  font-size: 18px;
  padding: 10px;
}

.home_slider_nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff135d8f;
  border: none;
  padding: 12px 18px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  color: #111;
  font-weight: bold;
  border-radius: 8px;
}

.home_slider_prev-button {
  left: 10px;
}

.home_slider_next-button {
  right: 10px;
}

/* ======= Mobile: One Image View Only ======= */
@media screen and (max-width: 768px) {
  .home_slider {
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .home_slider-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    width: 100%;

    /* ✅ Hide scrollbar */
    scrollbar-width: none; /* Firefox */
  }

  .home_slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .slide {
    width: 100vw !important;
    height: auto;
    scroll-snap-align: start;
    margin: 0;
    border-radius: 0;
  }

  .slide img {
    width: 100%;
    height: auto;
  }

  .home_slider_nav-button {
    display: none;
  }
}
.touch-scroll {
  -webkit-overflow-scrolling: touch;
}
