/* ── GALLERY PAGE ── */
.gallery-wrap { padding: 4rem 0 5rem; }

/* ── Page content (Upper/Lower Content) ── */
.gallery-content-block { padding: 2rem 0; }
.gallery-content { max-width: 780px; margin: 0 auto; }
.gallery-content p { font-size: 0.97rem; color: var(--text); line-height: 1.85; margin-bottom: 1.2rem; }
.gallery-content h2, .gallery-content h3 { font-family: var(--f-head); font-weight: 800; color: var(--navy); line-height: 1.25; margin: 1.6rem 0 0.9rem; }
.gallery-content img { max-width: 100%; border-radius: 4px; }
.gallery-content a { color: var(--navy); text-decoration: underline; }
.gallery-content a:hover { color: var(--gold); }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--f-head); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55rem 1.2rem;
  border: 2px solid var(--border); border-radius: 3px; background: white;
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: white; }

.gallery-grid { columns: 3; gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 500px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 4px; border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,30,58,0.75) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: white; font-family: var(--f-head); font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

.gallery-hint { color: var(--muted); font-size: 0.95rem; text-align: center; padding: 3rem 0; }

/* Lightbox */
.lb {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.93); align-items: center; justify-content: center; padding: 1rem;
}
.lb.open { display: flex; }
.lb-inner { position: relative; max-width: 1000px; width: 100%; max-height: 90vh; }
.lb img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; border-radius: 3px; }
.lb-caption { text-align: center; color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-top: 0.8rem; font-family: var(--f-head); }
.lb-counter { color: rgba(255,255,255,0.45); font-size: 0.75rem; font-family: var(--f-head); text-align: center; margin-top: 0.3rem; }
.lb-close {
  position: fixed; top: 1.2rem; right: 1.5rem;
  background: rgba(255,255,255,0.12); border: none; color: white;
  font-size: 1.8rem; cursor: pointer; border-radius: 50%;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: white; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.lb-nav:hover { background: rgba(255,255,255,0.28); }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
@media (max-width: 700px) { .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; } }
