/* ============================================================
   PorbleyPress Lightbox — single post image gallery overlay
   ============================================================ */

.pb-lightbox-trigger {
  cursor: zoom-in;
}

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

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

/* Stage */
.pb-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem 4.5rem;
  box-sizing: border-box;
}

/* Image */
.pb-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.pb-lightbox__img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Caption — hidden */
.pb-lightbox__caption {
  display: none;
}

/* Buttons — shared */
.pb-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.pb-lightbox__btn:hover,
.pb-lightbox__btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.pb-lightbox__btn:active {
  transform: scale(0.92);
}

/* Close */
.pb-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

/* Prev / Next */
.pb-lightbox__prev,
.pb-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1rem;
}

.pb-lightbox__prev { left: 0.75rem; }
.pb-lightbox__next { right: 0.75rem; }

.pb-lightbox__prev:hover,
.pb-lightbox__prev:focus-visible,
.pb-lightbox__next:hover,
.pb-lightbox__next:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.pb-lightbox__prev:active,
.pb-lightbox__next:active {
  transform: translateY(-50%) scale(0.92);
}

/* Hide nav when only one image */
.pb-lightbox--single .pb-lightbox__prev,
.pb-lightbox--single .pb-lightbox__next {
  display: none;
}

/* Counter */
.pb-lightbox__counter {
  position: absolute;
  top: 1.125rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.pb-lightbox--single .pb-lightbox__counter {
  display: none;
}

/* Thumbnail strip */
.pb-lightbox__thumbs {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 4.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pb-lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.pb-lightbox--single .pb-lightbox__thumbs {
  display: none;
}

.pb-lightbox__thumb {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

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

.pb-lightbox__thumb:hover,
.pb-lightbox__thumb:focus-visible {
  opacity: 0.85;
  outline: none;
}

.pb-lightbox__thumb.is-active {
  opacity: 1;
  border-color: #fff;
}

/* Shrink stage bottom padding to make room for the strip */
.pb-lightbox:not(.pb-lightbox--single) .pb-lightbox__stage {
  padding-bottom: 4.5rem;
}
