/* ─── GALLERY SECTION ────────────────────────────────────────── */
.gal-sec { padding: 72px 0; background: var(--cream); }
.gal-hdr { text-align: center; margin-bottom: 22px; padding: 0 32px; }
.gal-hdr p { color: rgba(42,37,32,.46); font-size: .8rem; margin-top: 5px; }

/* Filter buttons */
.gal-filters {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 0 12px;
}
.gf {
  background: none;
  border: 1px solid rgba(42,37,32,.18);
  color: rgba(42,37,32,.56);
  padding: 7px 15px;
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  min-height: 36px;
  -webkit-tap-highlight-color: rgba(201,162,39,.3);
}
.gf:hover { border-color: var(--gold); color: var(--charcoal); }
.gf.on    { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

/* Track */
.gal-wrap   { position: relative; padding: 0 44px; }
.gal-track  {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  cursor: pointer;
}
.gal-track::-webkit-scrollbar { display: none; }

/* Gallery item — <a> tag for iOS tap reliability */
.gi {
  flex: 0 0 220px;
  height: 165px;
  overflow: hidden;
  position: relative;
  background: #2a2520;
  display: block;
  -webkit-tap-highlight-color: rgba(201,162,39,.35);
  touch-action: manipulation;
  cursor: pointer;
}
.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
  pointer-events: none;
  opacity: 1;
}
.gi:hover img,
.gi:active img { -webkit-transform: scale(1.07); transform: scale(1.07); }

/* Caption overlay */
.gi-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,14,6,.8));
  color: var(--cream);
  font-size: .67rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 18px 8px 7px;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.gi:hover .gi-cap { opacity: 1; }
.gi.hi { display: none !important; }

/* Nav arrows */
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: rgba(42,37,32,.75);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--cream);
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 5;
  -webkit-tap-highlight-color: rgba(201,162,39,.4);
}
.gal-arrow:hover,
.gal-arrow:active { background: var(--gold); color: var(--charcoal); }
.gal-prev { left: 3px; }
.gal-next { right: 3px; }
.gal-count { text-align: center; margin-top: 10px; font-size: .7rem; color: rgba(42,37,32,.38); letter-spacing: .1em; }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,6,3,.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb.on { display: flex; }
.lb-body-lock { overflow: hidden !important; }

.lb-x {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: rgba(201,162,39,.4);
}
.lb-x:active { background: var(--gold); color: var(--charcoal); }

.lb-count {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245,240,232,.42);
  font-size: .68rem;
  letter-spacing: .14em;
}
.lb-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 76vh;
  padding: 0 52px;
}
.lb-main img { max-width: 100%; max-height: 76vh; object-fit: contain; display: block; }

.lb-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: rgba(201,162,39,.4);
}
.lb-arr:active,
.lb-arr:hover { background: var(--gold); color: var(--charcoal); }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

.lb-cap {
  margin-top: 10px;
  color: rgba(245,240,232,.48);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
.lb-thumbs {
  display: flex;
  gap: 4px;
  margin-top: 9px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 12px 6px;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-th {
  width: 44px; height: 33px;
  object-fit: cover;
  cursor: pointer;
  opacity: .35;
  flex-shrink: 0;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: rgba(201,162,39,.4);
}
.lb-th.on { opacity: 1; border-color: var(--gold); }
