/* === EHRC ClubRunner Carousel Fix ===
 *   Purpose: Stop carousel height jumping, maintain image visibility,
 *   and hide duplicate/blank carousel container.
 *   Author: Willett / October 2025
 * ======================================== */

/* Fix carousel height & prevent page jump */
.swiper-container.carousel-scrollable {
  height: 450px !important;           /* Adjust for desktop */
  overflow: hidden;
  position: relative;
}

/* Ensure internal slides fill that fixed height */
.swiper-container.carousel-scrollable .swiper-slide,
.swiper-container.carousel-scrollable .carousel-background {
  height: 100% !important;
  width: 100%;
  background-size: cover !important;  /* Keep full coverage without stretching */
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Responsive tweak for tablets and phones */
@media (max-width: 768px) {
  .swiper-container.carousel-scrollable {
    height: 250px !important;
  }
}

/* Hide any empty or duplicate top carousel widget */
#DAFECC5F-FB40-46C5-81D2-14C8AFA627B2 {
display: none !important;
}

