/* ============ Full Gallery Page ============ */
.full-gallery-head {
  padding: 150px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, var(--royal), #2a1d55);
}
.full-gallery-head .back-link {
  display: inline-block;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.full-gallery-head .back-link:hover { opacity: 1; }
.full-gallery-head h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 6px;
}
.full-gallery-head .section-sub { display: inline-block; margin-bottom: 14px; }
.full-gallery-head p { color: rgba(255,255,255,0.75); font-size: 0.98rem; }
.full-gallery-head p span { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.full-gallery-section { padding-top: 56px; }
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.full-gallery-item {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(var(--brown-rgb), 0.08);
}
.full-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.full-gallery-item:hover img { transform: scale(1.08); }
.full-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--royal-rgb), 0);
  transition: background 0.25s ease;
}
.full-gallery-item:hover::after { background: rgba(var(--royal-rgb), 0.15); }
.full-gallery-item:focus-visible { outline: 3px solid var(--temple); outline-offset: 2px; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 14, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 1.1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.8rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .full-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .full-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .full-gallery-head { padding: 130px 0 40px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; }
}
