/* ================================================================
   GALLERY — DARK RESTAURANT-STYLE GRID + LIGHTBOX
   Scoped to gallery.html only. A dark, uniform photo-grid layout
   (script "gallery" heading + even tiles) in place of the old
   light masonry look, keeping the existing All / Food / Outlets
   filter tabs and lightbox behaviour untouched.
   ================================================================ */

/* ---- Dark section wrapper ---- */
.gal-dark-sec{
  background:#0b0b0d;
  background:radial-gradient(circle at 50% 0%, #17171b 0%, #0b0b0d 60%);
  position:relative;
}
.gal-dark-sec .gal-script{
  font-family:'Georgia','Times New Roman',serif;
  font-style:italic;
  font-size:clamp(2.4rem,5vw,3.6rem);
  color:#fff;
  letter-spacing:0.02em;
  margin-bottom:0.35rem;
}
.gal-dark-sec .eyebrow{color:rgba(255,255,255,0.68) !important;}
.gal-dark-sec .eyebrow::before,.gal-dark-sec .eyebrow::after{background:var(--aq2) !important;}
.gal-dark-sec .h2{color:#fff !important;margin-top:0.6rem;}
.gal-dark-sec .h2 em{color:var(--aq2) !important;font-style:italic !important;}
.gal-dark-sec .body-t{color:rgba(255,255,255,0.6) !important;}

/* ---- Tabs, restyled for the dark surface (same functionality) ---- */
.g-filter{display:flex;gap:0.7rem;flex-wrap:wrap;justify-content:center;margin-bottom:3rem;}
.g-btn{position:relative;font-family:var(--f-disp);font-size:0.7rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;padding:0.75rem 2rem;cursor:pointer;transition:all 0.35s var(--ease2);border-radius:100px;
  border:1.5px solid rgba(255,255,255,0.25) !important;
  color:rgba(255,255,255,0.75) !important;
  background:transparent !important;
}
.g-btn:hover{border-color:var(--aq2) !important;color:#fff !important;background:transparent !important;transform:translateY(-2px);box-shadow:none !important;}
.g-btn.on{
  background:linear-gradient(135deg,var(--aq2),var(--aq3)) !important;
  border-color:var(--aq3) !important;
  color:#fff !important;
  box-shadow:0 10px 26px rgba(26,155,171,0.35) !important;
}

/* ---- Uniform photo grid (matches the reference collage) ---- */
.g-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
}
.g-item{
  position:relative;
  overflow:hidden;
  border-radius:0;
  cursor:zoom-in;
  aspect-ratio:6/5;
  background:#161618;
  transition:transform 0.5s var(--ease2), box-shadow 0.5s var(--ease2), opacity 0.6s var(--ease2);
  opacity:0;
  transform:translateY(18px);
}
.g-item.gi-show{opacity:1;transform:translateY(0);}
.g-item:hover{z-index:2;}

.g-item img{width:100%;height:100%;display:block;object-fit:cover;transition:transform 0.9s var(--ease2),filter 0.5s;}
.g-item:hover img{transform:scale(1.08);filter:brightness(0.85);}

/* Soft gradient wash on hover — no text, no names */
.g-ov{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 55%) !important;
  opacity:0;transition:opacity 0.4s var(--ease2);
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:0.9rem;
}
.g-item:hover .g-ov{opacity:1;}

/* Category glyph, corner — icon only, never a name/label */
.g-tag{
  position:absolute;top:0.7rem;left:0.7rem;
  width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,0.92) !important;
  display:flex;align-items:center;justify-content:center;
  opacity:0;transform:translateY(-6px);
  transition:opacity 0.35s var(--ease2),transform 0.35s var(--ease2);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.g-item:hover .g-tag{opacity:1;transform:translateY(0);}
.g-tag svg{width:15px;height:15px;stroke:var(--ink) !important;}

/* Expand glyph, bottom-right — invites the click, still no text */
.g-expand{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,0.12);
  border:1.5px solid rgba(255,255,255,0.65);
  backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  opacity:0;transform:scale(0.8);
  transition:opacity 0.4s var(--ease2),transform 0.4s var(--ease2);
}
.g-item:hover .g-expand{opacity:1;transform:scale(1);}
.g-expand svg{width:16px;height:16px;stroke:#fff;}

/* ---- Responsive column counts ---- */
@media(max-width:900px){.g-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:640px){.g-grid{grid-template-columns:repeat(2,1fr);}.g-item{aspect-ratio:1/1;}}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.gal-lb{
  position:fixed;inset:0;z-index:9999;
  background:rgba(10,12,16,0.94);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;
  transition:opacity 0.4s var(--ease2);
}
.gal-lb.open{opacity:1;visibility:visible;}
.gal-lb-stage{
  position:relative;max-width:90vw;max-height:86vh;
  display:flex;align-items:center;justify-content:center;
}
.gal-lb-stage img{
  max-width:90vw;max-height:86vh;object-fit:contain;
  border-radius:10px;
  box-shadow:0 30px 80px rgba(0,0,0,0.55);
  opacity:0;transform:scale(0.96);
  transition:opacity 0.35s var(--ease2),transform 0.35s var(--ease2);
}
.gal-lb-stage img.in{opacity:1;transform:scale(1);}

.gal-lb-close,.gal-lb-prev,.gal-lb-next{
  position:absolute;
  display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1.5px solid rgba(255,255,255,0.25);
  color:#fff;cursor:pointer;
  transition:all 0.3s var(--ease2);
  backdrop-filter:blur(6px);
}
.gal-lb-close:hover,.gal-lb-prev:hover,.gal-lb-next:hover{
  background:var(--aq2);border-color:var(--aq2);transform:scale(1.08);
}
.gal-lb-close{top:1.5rem;right:1.5rem;width:44px;height:44px;}
.gal-lb-prev{left:1.25rem;top:50%;transform:translateY(-50%);}
.gal-lb-next{right:1.25rem;top:50%;transform:translateY(-50%);}
.gal-lb-prev:hover,.gal-lb-next:hover{transform:translateY(-50%) scale(1.08);}
.gal-lb-close svg,.gal-lb-prev svg,.gal-lb-next svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;}

.gal-lb-count{
  position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);
  font-family:var(--f-disp);font-size:0.72rem;letter-spacing:0.12em;
  color:rgba(255,255,255,0.75);
  background:rgba(255,255,255,0.08);
  padding:0.4rem 1rem;border-radius:100px;
  backdrop-filter:blur(6px);
}

@media(max-width:600px){
  .gal-lb-prev{left:0.5rem;width:40px;height:40px;}
  .gal-lb-next{right:0.5rem;width:40px;height:40px;}
  .gal-lb-close{top:0.75rem;right:0.75rem;width:38px;height:38px;}
}
