/* ===============================
   BANNER (no-crop, production-safe)
   =============================== */

#banner {
  padding: 0;
}

/* Carousel should NOT dictate height */
#banner .carousel {
  position: relative;
  width: 100%;
  background: #000;
}

/* Let image define height */
#banner .carousel-inner,
#banner .carousel-item,
#banner .banner-item {
  position: relative;
  width: 100%;
}

/* Image: NEVER cropped */
#banner .banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #000;
}

/* Soft readability gradient (visual only) */
#banner .banner-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 2;
}

/* Caption */
#banner .banner-caption {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 960px;
  padding: 0.75rem 1rem;
  text-align: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(120%) blur(4px);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Typography */
#banner .banner-title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.15;
}

#banner .banner-sub {
  margin: 0 auto;
  max-width: 92%;
  color: #fff;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.45;
  opacity: 0.95;
}

/* Controls */
#banner .carousel-control-prev,
#banner .carousel-control-next,
#banner .carousel-indicators {
  z-index: 6;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  #banner .banner-caption {
    bottom: 1.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }

  #banner .banner-title {
    font-size: clamp(20px, 5vw, 26px);
  }

  /* Hide subtitle accessibly */
  #banner .banner-sub {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
