 .carousel {
  background-color: #fff; /* Set the background to white */
  counter-reset: gallery-cell;
   visibility: hidden !important;
   opacity: 0 !important;
 z-index: 1 !important;
  transition: opacity 0.3s ease-in-out;
  height: 100%; /* Match viewport height */

}

.flickity-enabled {
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flickity-viewport {
    min-height: 100%; /* Ensures Flickity always reserves space */
}

.carousel-cell {
  width: 100%; /* Full width for each cell */
  

  background: #fff; /* White background for carousel cells */
  
  /* Center images in cells with flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;  /* Optional padding around the description */
  overflow: hidden; /* Ensure nothing overflows out of the cell */

}

.carousel.is-fullscreen .carousel-cell {
  height: 100%; /* Full screen height on fullscreen mode */
}

.carousel-cell img {
  display: block;
  max-height: 100%; /* Ensures images fit the height without overflowing */
  max-width: 100%;  /* Ensures images are responsive */
  object-fit: cover; /* Maintain aspect ratio while filling the space */
}

.carousel-caption {
  position: absolute;
  bottom: 300px;
  left: 50%;
  
 
  transform: translateX(-50%); /* Center the caption horizontally */
  text-align: center;
  color: white; /* Ensure the text is readable */
  width: 85%;
  padding: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /* Black shadow behind text */
  border-radius: 5px;
  font-weight: bold; /* Makes the text bold */
  font-size: 50px; /* Adjust this to make the text larger */
  box-sizing: border-box;
}


/* Styling for the button */
.carousel-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #b61111; /* Blue background */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: #680b0b; /* Darker blue on hover */
}


/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
  .carousel-cell {
    height: 250px; /* Adjust height for smaller screens */
  }

  .carousel-cell img {
    object-fit: contain; /* Adjust image to fit within its container */
  }
 
  .carousel-caption {
    font-size: 16px; /* Smaller font size on tablets */
  }
}