/* The gallery shares the existing District logo, Montserrat/Modernline and colors. */
.district-gallery { background: #0a0a0a; color: #fff; }
.district-gallery .site-header { background: #000; }
.district-gallery .site-nav a[aria-current="page"] { color: #e2c578; }
.district-gallery .site-nav { gap: 10px clamp(9px, 1.05vw, 17px); }
.gallery-intro { padding: 48px 0 42px; text-align: center; }
.gallery-back { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.7); border-bottom: 1px solid #c8a44d; padding-bottom: 5px; margin-bottom: 42px; }
.gallery-intro .eyebrow { margin-bottom: 22px; font-size: 10px; letter-spacing: .25em; }
.gallery-intro h1 { font: 500 clamp(28px, 3.8vw, 46px)/1.25 var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.gallery-script { font: 400 clamp(34px, 5vw, 62px)/1.7 'Modernline', cursive; color: #e2c578; margin: 12px 0 16px; }
.gallery-intro-copy { max-width: 60ch; margin: 0 auto; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.72); }
.gallery-section { padding-bottom: 72px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.gallery-card { color: #fff; text-decoration: none; min-width: 0; }
.gallery-card figure { margin: 0; }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #191919; border: 1px solid rgba(255,255,255,.12); transition: filter 160ms ease; }
.gallery-card figcaption { color: rgba(255,255,255,.75); margin-top: 12px; font-size: 11px; line-height: 1.7; }
.gallery-card:hover img { filter: brightness(1.08); }
.gallery-card:hover figcaption { color: #e2c578; }
.gallery-invite { text-align: center; padding: 56px 0 80px; border-top: 1px solid rgba(255,255,255,.15); }
.gallery-invite .eyebrow { margin-bottom: 24px; font-size: 9px; }
.gallery-invite h2 { font: 500 clamp(26px, 3vw, 38px)/1.4 var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 24px; }
.gallery-invite p:not(.eyebrow) { max-width: 60ch; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.7); margin: 0 auto; }
.gallery-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.district-gallery .site-footer .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 24px; }
.district-gallery .footer-links { justify-content: center; }
.photo-lightbox { width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid rgba(200,164,77,.6); background: #0a0a0a; color: #fff; overflow: auto; }
.photo-lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
#lightbox-counter { font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.photo-lightbox button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 10px 14px; min-height: 44px; font: 500 11px/1.5 var(--font-body); cursor: pointer; }
.photo-lightbox button:hover { background: rgba(200,164,77,.15); border-color: #c8a44d; }
.lightbox-figure { margin: 0; }
.lightbox-figure img { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; background: #111; }
.lightbox-figure figcaption { padding: 18px 20px 0; font-size: 13px; line-height: 1.7; }
.lightbox-controls { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px 20px; }
.gallery-modal-open { overflow: hidden; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .gallery-intro { padding-top: 30px; }
  .gallery-back { margin-bottom: 32px; }
  .gallery-intro .eyebrow { font-size: 8px; letter-spacing: .18em; }
  .gallery-script { font-size: 33px; }
  .gallery-intro-copy { font-size: 13px; }
  .gallery-actions .btn { width: 100%; }
  .lightbox-toolbar { padding: 12px; }
  .lightbox-figure figcaption { padding-inline: 12px; font-size: 12px; }
  .lightbox-controls { padding: 16px 12px 12px; gap: 10px; }
  .photo-lightbox button { font-size: 10px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-card img { transition: none; } }
