/* Public Inspiration Gallery (gallery.html). Builds on app.css tokens and buttons; the hero echoes the intake's dark photo panel. */
.gallery-body { background: #fbfaf7; }

/* ---------- Hero ---------- */
/* A short banner: logo on top, the words under it on the darker left side, the fire pit showing on the right. */
.gallery-hero { position: relative; isolation: isolate; color: #fff; background: #14211a url("/img/gallery/hero.jpg") 70% 55% / cover; }
.gallery-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,24,18,.86) 0%, rgba(14,24,18,.6) 50%, rgba(14,24,18,.2) 100%); }
.gallery-hero-inner { max-width: 1280px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 28px; }
.brand.light { align-self: flex-start; max-width: 100%; }
.brand.light img { width: 220px; max-width: 100%; height: auto; }
.gallery-hero-copy { max-width: 560px; }
.gallery-hero h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.9px; font-weight: 700; }
.gallery-hero h1 span { display: block; }
.gallery-hero h1 .accent { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: 0; color: #f3d9a6; font-size: 1.06em; margin-top: 2px; }
.gallery-hero p { margin: 8px 0 18px; font-size: 15px; color: rgba(255,255,255,.88); }

/* ---------- Photos ---------- */
/* Columns keep each photo's own shape instead of cropping it to a square. */
.gallery-page { max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; }
.gallery-grid { columns: 2; column-gap: 10px; }
.gallery-item { display: block; margin-bottom: 10px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.gallery-cta { text-align: center; padding: 40px 0 8px; }
.gallery-cta h2 { font-size: 24px; letter-spacing: -.6px; }
.gallery-cta p { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }
.gallery-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 0 20px 32px; }

/* ---------- Viewer ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,16,13,.94); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 64px 16px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 170px); width: auto; height: auto; border-radius: 8px; }
.lightbox figcaption { max-width: 640px; text-align: center; font-size: 14px; color: rgba(255,255,255,.82); }
.lightbox-btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: 400 28px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255,255,255,.26); }
.lightbox-btn.close { top: 12px; right: 12px; }
.lightbox-btn.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (min-width: 760px) {
  .gallery-hero-inner { padding: 24px clamp(32px, 5vw, 88px) 44px; gap: 40px; }
  .brand.light img { width: 260px; }
  .gallery-hero h1 { font-size: 42px; letter-spacing: -1.3px; }
  .gallery-hero p { font-size: 17px; }
  .gallery-page { padding: 40px clamp(32px, 5vw, 88px) 64px; }
  .gallery-grid { columns: 3; column-gap: 14px; }
  .gallery-item { margin-bottom: 14px; }
  .gallery-cta h2 { font-size: 30px; }
}
@media (min-width: 1100px) { .gallery-grid { columns: 4; } }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } .gallery-item:hover img { transform: none; } }
