/* Add or update in your CSS file for the lightbox */

/* Center the lightbox and blur the background */
.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(4px); /* This will blur the background */
}

.gallery-lightbox-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: transparent;
}

.gallery-lightbox-content {
  position: relative;
  background: #00000091;
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(184,134,11,0.18);
  padding: 1.5rem;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.gallery-lightbox-content img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.gallery-lightbox-close {
  position: absolute;
  top: 10px; right: 18px;
  background: #b8860b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #b8860b33;
  z-index: 2;
}

#lightboxCaption {
  color: #b8860b;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1.5rem;
  word-break: break-word;
}

/* Add or update in your CSS file for the lightbox pagination */
.lightbox-pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.lightbox-pagination button {
  background: #fffbe6;
  border: 2px solid #b8860b;
  color: #b8860b;
  border-radius: 8px;
  padding: 0.4rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px #b8860b22;
}

.lightbox-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5e7b8;
  color: #b8860b;
  border: 2px solid #e0c97a;
}

.lightbox-pagination button:hover:not(:disabled),
.lightbox-pagination button:focus-visible:not(:disabled) {
  background: #b8860b;
  color: #fffbe6;
  border: 2px solid #b8860b;
}

@media (max-width: 700px) {
  .gallery-lightbox-content {
    padding: 0.5rem;
    max-width: 98vw;
    max-height: 98vh;
  }
  .gallery-lightbox-content img {
    max-width: 96vw;
    max-height: 50vh;
  }
  #lightboxCaption {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .lightbox-pagination {
    gap: 0.5rem;
  }
  .lightbox-pagination button {
    font-size: 0.98rem;
    padding: 0.3rem 1rem;
  }
}