/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Darker background tint */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border: 8px solid #fff;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  top: 0;
  right: 0;
  padding: 6px;
  cursor: pointer;
  color: #333;
  font-size: 24px;
  border-radius: 0 8px 0 5px;
}

.lightbox-navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
}

.lightbox-navigation .prev-image,
.lightbox-navigation .next-image {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 5px 11px 5px;
  border-radius: 5px;
  color: #333;
  font-weight: 600;
  font-size: 26px;
  transition: background-color 0.3s ease;
  position: absolute;
}

.lightbox-navigation .prev-image {
  left: 5px;
}

.lightbox-navigation .next-image {
  right: 5px;
}

.lightbox-navigation .prev-image:hover,
.lightbox-navigation .next-image:hover {
  background-color: rgba(255, 255, 255, 0.6); /* Lighter background on hover */
}

/* Navigation Arrow Active State */
.lightbox-navigation .prev-image.active,
.lightbox-navigation .next-image.active {
  background-color: rgba(255, 255, 255, 0.6); /* Background on active state */
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 100%;
  }
  
  .lightbox-content img {
    border: none; /* Remove image border on mobile */
  }
  
  .lightbox-navigation .prev-image,
  .lightbox-navigation .next-image {
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .lightbox-navigation .prev-image {
    left: 0px; /* Adjust positioning for better mobile display */
    padding: 2px 3px 6px 1px;
    border-radius:0 3px 3px 0;
  }
  
  .lightbox-navigation .next-image {
    right: 0px;
    padding: 2px 1px 6px 3px;
    border-radius:3px 0 0 3px
  }
