
/* =====================================
   FINAL LIGHTBOX + CAROUSEL (STABLE)
===================================== */

/* Modal base */
#lightbox-modal {
  z-index: 1055;
}

#lightbox-modal .modal-dialog {
  max-width: 92vw;
  margin: 3rem auto;
}

#lightbox-modal .modal-content {
  background: #111;
  border: none;
  position: relative;
}

/* Image */
#lightbox-modal .carousel-item img {
  max-width: 90%;
  max-height: 82vh;
  margin: 3rem auto 2rem; /* pushes image DOWN */
  display: block;
  object-fit: contain;
}

/* Close button */
#lightbox-modal .btn-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1060;
  filter: invert(1);
  opacity: 1;
}

/* Prev / Next controls */
#lightbox-modal .carousel-control-prev,
#lightbox-modal .carousel-control-next {
  width: 6%;
  opacity: 1;
  z-index: 1060;
}

#lightbox-modal .carousel-control-prev-icon,
#lightbox-modal .carousel-control-next-icon {
  background-color: #fff;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  background-size: 60% 60%;
}

/* Push controls slightly inward */
#lightbox-modal .carousel-control-prev {
  left: 1rem;
}

#lightbox-modal .carousel-control-next {
  right: 1rem;
}

/* Footer (your version – kept intact) */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1040;
}

/* Responsive */
@media (max-width: 768px) {
  #lightbox-modal .carousel-item img {
    max-width: 100%;
    max-height: 65vh;
  }

  #lightbox-modal .carousel-control-prev,
  #lightbox-modal .carousel-control-next {
    width: 10%;
  }
}

/* Restore arrow icons inside white controls */
#lightbox-modal .carousel-control-prev-icon,
#lightbox-modal .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

#lightbox-modal .carousel-control-next-icon {
  transform: rotate(180deg);
}

