
.carousel-inner {
  height: auto;  /* ensures container matches image */
}

#carouselExample .carousel-item {
  height: 650px; 
  position: relative;
  line-height: 0;
}

#carouselExample .carousel-item img {
  height: 80%;
  width: 80%;
  display: block;
  object-fit: cover;
}

#carouselExample .carousel-caption {
  position: absolute;
  top: 60%;  /* vertically center */
  left: 50%;  /* distance from left */
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  max-width: 50%; /* optional: limit width */
}

.caption-bg {
    background: rgba(0, 0, 0, 0.4); /* dark overlay */
    display: inline-block;          /* only wraps the text */
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    max-width: 100%;                /* optional, prevent overflow */
}

#carouselExample .carousel-caption,
#carouselExample .carousel-caption h2,
#carouselExample .carousel-caption p {
    color: #fff !important;   /* force white text */
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);  /* optional for readability */
}

@media (max-width: 802px) {
  #carouselExample .carousel-caption {
    max-width: 80%;
    left: 5%;
  }
}

/* Gallery Image Css */

.gallery-img {
    width: 100%;
    height: 250px;          /* ðŸ‘ˆ fixed height (adjust as needed) */
    object-fit: contain;    /* keep full image, maintain aspect ratio */
    background-color: #f8f8f8; /* optional: adds background for empty space */
    border-radius: 12px;    /* keeps your rounded style */
}

.modal {
  z-index: 2000 !important; /* higher than navbar */
}

.modal-backdrop {
  z-index: 1999 !important;
}

@media (max-width: 768px) {
  .modal-dialog {
    max-width: 95% !important;  /* almost full width */
    margin: 0 auto;
  }

  .modal-content {
    height: auto;
    max-height: 90vh;  /* so it doesn’t overflow screen */
  }

  .modal-body {
    overflow-y: auto;  /* scroll if content is long */
  }
}


.modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;  /* optional: remove extra spacing */
}

.modal-body img {
  max-width: 100%;
  max-height: 90vh;  /* fit within viewport height */
  height: auto;
}

.modal-header h5 {
  flex: 1;
  text-align: center;
}

/* Scroll Notice CSS */
/* Make all TinyMCE/WYSIWYG images responsive */
.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    display: block;     /* removes inline gaps */
}

/* Optional: handle iframes/videos */
.wysiwyg-content iframe {
    max-width: 100%;
}