/* ==================================================================
   DYNAMIC LIGHTBOX - overlay, image, nav, caption
   Modeled after TimeLine v26 lightbox styling
   ================================================================== */

/* Make gallery images show pointer cursor */
.photo-card img { cursor: pointer; }

/* Overlay */
.lb-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  padding: 22px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Decorative inner border frame */
.lb-overlay::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px solid #515357;
  background-color: rgba(141, 211, 236, 0.08);
  border-radius: 15px;
  pointer-events: none;
  z-index: 0;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 30px;
  right: 38px;
  color: #aaa;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 50;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 6px;
}
.lb-close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Decade label above image */
.lb-above {
  color: hsl(345, 55%, 55%);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  z-index: 10;
}

/* Main image */
.lb-img {
  opacity: 0;
  transition: opacity 0.35s ease-in;
  max-width: calc(100% - 160px);
  max-height: calc(100vh - 200px);
  display: block;
  margin: 0 auto;
  min-height: 150px;
  min-width: 200px;
  object-fit: contain;
  z-index: 10;
  border-radius: 4px;
}
.lb-img.lb-visible {
  opacity: 1;
}

/* Caption - filename */
.lb-caption {
  color: #999;
  font-size: 0.78rem;
  margin-top: 8px;
  z-index: 10;
  max-width: 80%;
  text-align: center;
  word-break: break-all;
}

/* Counter - e.g. "3 / 12" */
.lb-counter {
  color: #666;
  font-size: 0.75rem;
  margin-top: 4px;
  z-index: 10;
}

/* Prev / Next arrows */
.lb-prev, .lb-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  color: hsla(345, 55%, 55%, 0.4);
  user-select: none;
  width: 60px;
  padding: 14px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  z-index: 50;
  text-decoration: none;
}
.lb-prev { left: 28px; }
.lb-next { right: 28px; }

.lb-prev:hover, .lb-next:hover {
  color: hsla(345, 55%, 55%, 0.85);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Responsive: tighten on small screens */
@media (max-width: 768px) {
  .lb-img {
    max-width: calc(100% - 40px);
    max-height: calc(100vh - 160px);
  }
  .lb-prev, .lb-next {
    font-size: 40px;
    width: 36px;
    padding: 10px 0;
  }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-overlay { padding: 10px; }
  .lb-overlay::before { inset: 10px; }
  .lb-close { top: 16px; right: 18px; font-size: 26px; }
}
