/* -- Lightbox --------------------------------------------------------------- */

.bn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bn-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.bn-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}

.bn-lightbox__close {
  position: absolute;
  top: var(--bn-space-4, 1rem);
  right: var(--bn-space-4, 1rem);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.bn-lightbox__close:hover {
  opacity: 1;
}

.bn-lightbox__prev,
.bn-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.bn-lightbox__prev:hover,
.bn-lightbox__next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.bn-lightbox__prev {
  left: var(--bn-space-4, 1rem);
}

.bn-lightbox__next {
  right: var(--bn-space-4, 1rem);
}

.bn-lightbox__counter {
  position: absolute;
  bottom: var(--bn-space-4, 1rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Make gallery images look clickable */
.wp-block-gallery img,
.gallery img,
.wp-block-image img {
  cursor: zoom-in;
}
