/* Styles for the image boxes within each section */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 400px; /* Adjust as needed */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-box {
  position: relative;
  width: 100%;
  padding-bottom: 133.33%; /* 4 / 3 aspect ratio */
  overflow: hidden;
  cursor: pointer; /* Indicate clickable */
}
 
.image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.05);
}

.image-box .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.image-box .nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.image-box .prev-btn {
  left: 10px;
}

.image-box .next-btn {
  right: 10px;
}

/* Ensure the overlay styles are consistent with Rimini */
.image-slider-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Dark overlay background */
  z-index: 1000; /* High z-index to cover everything */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden; /* Prevent scrolling of content behind */
}

.image-slider-overlay.active {
  display: flex; /* Show when active */
}

.image-slider-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 110;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.image-slider-overlay .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.image-slider-overlay .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 105;
  font-size: 30px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.image-slider-overlay .nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.image-slider-overlay .prev-btn {
  left: 20px;
}

.image-slider-overlay .next-btn {
  right: 20px;
}

.image-slider-overlay .slider-image-container {
  position: relative;
  width: 80%; /* Adjust max width for the image */
  max-width: 900px; /* Max width for the image */
  height: 70%; /* Adjust max height for the image */
  max-height: 600px; /* Max height for the image */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.image-slider-overlay .slider-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure image fits within container */
  border-radius: 8px;
}

.image-slider-overlay .slider-title-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 110;
}

.image-slider-overlay .slider-title {
  color: white;
  font-size: 24px;
  margin: 0;
  text-align: center;
}

.image-slider-overlay .thumbnail-navigation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  z-index: 100;
}

.image-slider-overlay .thumbnails-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  padding: 10px;
  max-width: 90%;
  margin: 0 auto;
  gap: 10px;
  direction: ltr; /* Force left-to-right scrolling */
}

.image-slider-overlay .thumbnails-container::-webkit-scrollbar {
  height: 8px;
}

.image-slider-overlay .thumbnails-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.image-slider-overlay .thumbnails-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.image-slider-overlay .thumbnail-btn {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.image-slider-overlay .thumbnail-btn.active {
  border-color: white;
}

.image-slider-overlay .thumbnail-btn:hover {
  border-color: #ccc;
}

.image-slider-overlay .thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.image-slider-overlay .image-counter {
  position: absolute;
  bottom: 80px; /* Above thumbnails */
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 110;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-slider-overlay .nav-btn {
    padding: 10px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .image-slider-overlay .prev-btn {
    left: 10px;
  }

  .image-slider-overlay .next-btn {
    right: 10px;
  }

  .image-slider-overlay .slider-title {
    font-size: 20px;
  }

  .image-slider-overlay .thumbnail-btn {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .image-slider-overlay .close-btn {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .image-slider-overlay .slider-title-container {
    top: 10px;
    padding: 5px 10px;
  }

  .image-slider-overlay .slider-title {
    font-size: 18px;
  }

  .image-slider-overlay .image-counter {
    bottom: 60px;
  }
}












/* Fix links in card-16 contact section */
.card-16 a {
  color: var(--text-color) !important;
  text-decoration: none !important;
}

.card-16 a:hover {
  color: #fcd00b !important;
  text-decoration: none !important;
}

/* Dark mode support for card-16 links */
.dark-mode .card-16 a {
  color: var(--text-color) !important;
}

.dark-mode .card-16 a:hover {
  color: #fcd00b !important;
}
/* Override generic 'a' styles for navigation and footer on halls page */

footer .footer-services a,
footer .footer-partners a,
footer a {
    color: var(--text-color) !important;
    text-decoration: none !important;
}


footer .footer-services a:hover {
    color: #1f4088 !important;
}


.dark-mode footer .footer-services a:hover {
    color: #ffd700 !important;
}

