/* Image Gallery — thumbnail grid and lightbox */

.bv-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.bv-gallery__thumb {
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  flex-shrink: 0;
  transition: border-color var(--transition-speed, 0.2s),
              transform     var(--transition-speed, 0.2s);
}

.bv-gallery__thumb:hover {
  border-color: var(--gold, #d8b36a);
  transform: scale(1.04);
}

.bv-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Lightbox overlay ── */

.bv-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
}

.bv-lightbox.is-open {
  display: flex;
}

.bv-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  user-select: none;
  display: block;
}

/* ── Controls (close, prev, next) ── */

.bv-lightbox__close,
.bv-lightbox__prev,
.bv-lightbox__next {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
  padding: 0;
}

.bv-lightbox__close:hover,
.bv-lightbox__prev:hover,
.bv-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.30);
}

.bv-lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
}

.bv-lightbox__prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.bv-lightbox__next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* hide nav arrows when there is only one image */
.bv-lightbox.single .bv-lightbox__prev,
.bv-lightbox.single .bv-lightbox__next {
  display: none;
}
