/* custom-gallery.css */

/* =====  CONTAINER  =============================================== */
.swiper {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

/* Slides styled like cards */
.swiper-slide {
  aspect-ratio: 16/9;   /* rectangle shape */
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px; /* force rectangle height */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  max-width: 100%;
  max-height: 100%;
}

/* Hover effect */
.swiper-slide:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 24px rgba(0,0,0,0.2); 
}

/* Swiper navigation + pagination */
.swiper-pagination-bullet { 
  background: #000 !important; 
  opacity: 0.4; 
}
.swiper-pagination-bullet-active { 
  background: #000 !important; 
  opacity: 1; 
}
.swiper-button-next, 
.swiper-button-prev { 
  color: #ffffff; 
  width: 10px; 
  height: 10px; 
}
.swiper-button-next::after, 
.swiper-button-prev::after { 
  font-size: 16px; 
}

/* ---- force Swiper layout ---- */
.csg-swiper.swiper {
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}
.csg-swiper .swiper-wrapper {
  display: flex !important;
  box-sizing: content-box !important;
}

/* prevent FOUC while Tailwind loads */
.csg-tailwind-slider img,
.csg-slide img {
  max-width: 100%;
  height: auto;
  display: block;
}
