/* Custom styles for the home swiper to maintain aspect ratio */
#home_swiper {
  width: 100%;
  height: auto !important; /* Override fixed height */
  aspect-ratio: 1.95/1; /* Match image dimensions of 2841×1460 */
}

#home_swiper .swiper-slide {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  font-weight: bold;
}

/* Style for the swiper text to appear at bottom */
#home_swiper .swiper-slide .swiper-txt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 15px;
  background: rgba(0,0,0,0.5);
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#preview_container{
  padding:2rem;
}
/* Responsive text size */
@media (max-width: 768px) {
  #home_swiper {
      aspect-ratio: 1.95/1; /* Keep consistent with desktop */
  }
  #home_swiper .swiper-slide {
      font-size: 1.2rem;
  }
  #home_swiper .swiper-slide .swiper-txt {
      font-size: 1.1rem;
      padding: 10px;
  }
  #preview_container{
    padding:1rem;
  }
}

.swiper {
  width: 100%;
  /* height: 100%; */
  height: 650px;
}
.swiper .swiper-slide {
  padding: 2rem 0;
  text-align: center;
  font-size: 1.5rem;
  background-color: #ecebed;
  background-position: center;
  background-size: cover;
}

/* Home swiper specific styles - will be overridden by inline styles */
#home_swiper {
  height: auto;
}

#home_swiper .swiper-slide {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#swiper-multiple-slides,
#swiper-3d-coverflow-effect {
  height: 300px;
}

#swiper-3d-coverflow-effect .swiper-slide {
  max-width: 300px;
}

#swiper-3d-cube-effect {
  max-width: 400px;
}

#swiper-3d-flip-effect {
  padding: 50px;
}

#swiper-gallery {
  height: 500px;
}
#swiper-gallery .gallery-top {
  height: 80%;
  width: 100%;
}
#swiper-gallery .gallery-thumbs {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}
#swiper-gallery .gallery-thumbs .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
}
#swiper-gallery .gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

