/* ── Gallery card — progressive background zoom on hover ── */
.gallery-item .pbg-stack div {
  transition-property: opacity, transform !important;
  transition-timing-function: ease !important;
}
.gallery-item:hover .pbg-stack div {
  transform: scale(1.06);
}

/* Overlay — stacked vertically for caption label */
.gallery-overlay {
  flex-direction: column;
  gap: 4px;
}
.gallery-caption-label {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 400;
}

/* ── Loading spinner ── */
.gallery-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 60px 0;
}
.gallery-loading span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--navy);
  opacity: .25;
  animation: pbg-pulse 1.2s ease-in-out infinite;
}
.gallery-loading span:nth-child(2) { animation-delay: .2s; }
.gallery-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes pbg-pulse {
  0%, 80%, 100% { transform: scale(.8); opacity: .25; }
  40%            { transform: scale(1);  opacity: 1;   }
}

/* ── Empty / error state ── */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  font-size: .95rem;
  padding: 60px 0;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.90);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  color: #fff; font-size: 2.2rem;
  cursor: pointer; line-height: 1;
  background: none; border: none;
}
.lightbox-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .95rem; font-weight: 600;
  background: rgba(0,0,0,.6); padding: 8px 20px; border-radius: 20px;
  white-space: nowrap;
}
