/* ===========================
   Slider Container Styles
=========================== */
.slider-container {
  position: relative;
  width: 100%;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  padding-top: 56.25%; /* Default 16:9 aspect ratio */
}

/* ===========================
   Slides Wrapper
=========================== */
.slides {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===========================
   Slider Images
=========================== */
.slides img {
  position: absolute;
  inset: 0; /* replaces top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ Shows entire image fully, black bars may appear if aspect ratio differs */
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(192, 132, 252, 0.8));
  opacity: 0;
  z-index: 0;
  cursor: zoom-in;
  transition: opacity 0.6s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 0; /* ✅ Keeps rectangular shape */
}


.slides img.active {
  opacity: 1;
  z-index: 5;
}

/* ===========================
   Navigation Buttons
=========================== */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

button.prev:hover,
button.next:hover {
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  transform: translateY(-50%) scale(1.1);
}

button.prev {
  left: 12px;
}

button.next {
  right: 12px;
}

/* ===========================
   Modal Zoom Styles
=========================== */
#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

#imageModal.show {
  display: flex;
}

#imageModal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  cursor: zoom-out;
  border-radius: 8px;
}

/* ===========================
   Mobile Responsiveness
=========================== */
@media (max-width: 768px) {
  .slider-container {
    padding-top: 75%; /* 4:3 ratio for tablets */
  }
}

@media (max-width: 480px) {
  .slider-container {
    padding-top: 100%; /* square for mobile */
  }

  button.prev,
  button.next {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}
