.lightbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.lightbox img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  display: none; /* Initially hidden for animation */
}
.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Enlarging the modal size */
.modal-dialog {
  max-width: 80%;
  width: 100%;
}

/* Align next/prev buttons inline with the image */
#prevImage, #nextImage {
  align-self: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  color: #333;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#prevImage {
  left: 10px;
}

#nextImage {
  right: 10px;
}

#prevImage:hover, #nextImage:hover {
  transform: translateY(-50%) scale(1.1);
  background-color: #007bff;
  color: white;
}

#prevImage i, #nextImage i {
  font-size: 1.5rem;
}

#imageContainer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

#imageContainer img {
  max-width: 100%;
  height: auto;
  position: relative;
}
/* images scroller our sponsors*/
    /* Scrollable Container */
    .scroll-container-wrapper {
      position: relative;
    }

    .scroll-container {
      white-space: nowrap;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding: 10px 0;
    }

    /* Image Styling */
    .scroll-container img {
      width: 100%;
      max-width: 250px;
      height: auto;
      display: inline-block;
      margin-right: 10px;
      border-radius: 8px;
    }

    /* Arrows Styling */
    .arrow {
      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;
      border-radius: 50%;
    }

    .left-arrow {
      left: 0;
    }

    .right-arrow {
      right: 0;
    }

    /* Hide Scrollbar */
    .scroll-container::-webkit-scrollbar {
      display: none;
    }

    .scroll-container {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;     /* Firefox */
    }

    /* Responsive Image Size */
    @media (max-width: 768px) {
      .scroll-container img {
        max-width: 150px;
      }
    }

/* our sponsors */