/* ============================================
   TWING CAFE — GALLERY PAGE STYLES
   ============================================ */

/* Reuse sticky filter tabs (same pattern as Menu page) */
.menu-tabs {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid rgba(24,62,44,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.menu-tabs__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px var(--container-px);
  scrollbar-width: none;
}
.menu-tabs__row::-webkit-scrollbar { display: none; }
.menu-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #6b7a71;
  padding: 8px 18px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.menu-tab:hover { color: var(--green); }
.menu-tab.is-active { color: var(--green-deep); border-bottom-color: var(--gold); }

/* ── MASONRY ── */
.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-hidden { display: none; }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(8,25,15,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item--placeholder .gallery-item__overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.gallery-item__badge {
  align-self: flex-start;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.gallery-item__overlay p {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}
.gallery-item__overlay p.gallery-item__sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 3px;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(8,25,15,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  max-width: 900px;
  max-height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
}
.lightbox__stage-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.lightbox__stage-placeholder p {
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 560px) {
  .gallery-masonry { columns: 1; }
}
