/* ─────────────────────────────────────────────
   MOKUTAN · galeria.css
   Estilos exclusivos da página galeria.html
   Usa a mesma casca visual de cardapio.css (header, nav, footer)
   ───────────────────────────────────────────── */

/* ── FILTROS ── */
.gal-filters {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 50;
  scrollbar-width: none;
  padding: 0 32px;
}
.gal-filters::-webkit-scrollbar { display: none; }
.gal-filter {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 22px;
  border-right: 0.5px solid var(--rule-lt);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.gal-filter:hover { color: var(--bronze); }
.gal-filter.on {
  color: var(--bronze);
  background: var(--badge-bg);
  border-bottom: 2px solid var(--bronze);
}
.gal-count {
  margin-left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--smoke);
  white-space: nowrap;
}

/* ── INTRO ── */
.gal-intro {
  margin: 44px 0 28px;
}
.gal-intro .section-title { margin-bottom: 4px; }

/* ── GRID ── */
.ggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 240px;
  gap: 4px;
  margin-bottom: 56px;
}
.gitem {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(244,236,217,.04);
}
.gitem[hidden] { display: none; }
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1), filter .6s;
}
.gitem:hover img {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.06);
}
.gitem-lbl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(to top, rgba(14,12,9,.72) 0%, transparent 100%);
  font-family: 'Shippori Mincho', serif;
  font-size: 0.56rem;
  letter-spacing: 2px;
  color: rgba(244,236,217,.8);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.gitem:hover .gitem-lbl { opacity: 1; transform: none; }

/* ── LIGHTBOX ── */
.lb-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8,6,4,.96);
  flex-direction: column;
  padding: 52px 80px 0;
}
.lb-modal.open { display: flex; }
.lb-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(244,236,217,.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  transition: color .2s;
}
.lb-close:hover { color: rgba(244,236,217,.95); }
.lb-nav {
  position: absolute;
  top: calc(50% - 60px);
  background: rgba(14,12,9,.55);
  border: 1px solid rgba(244,236,217,.18);
  color: rgba(244,236,217,.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 2px;
  transition: color .2s, border-color .2s, background .2s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav:hover { color: var(--bronze); border-color: var(--bronze); background: rgba(14,12,9,.85); }
.lb-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lb-strip {
  display: flex;
  gap: 8px;
  padding: 16px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: nowrap;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1.5px solid transparent;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.lb-thumb.active { border-color: var(--bronze); opacity: 1; }
.lb-thumb:hover:not(.active) { opacity: .78; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .gal-filters { padding: 0 18px; }
  .gal-filter { padding: 13px 16px; font-size: 0.6rem; letter-spacing: 2px; }
  .gal-count { display: none; }
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 170px; gap: 3px; }
  .lb-modal { padding: 44px 0 0; }
  .lb-nav { display: none; }
  .lb-strip { padding: 10px 12px 16px; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .ggrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-intro { margin: 32px 0 20px; }
}
