/* Print gallery page + the teaser block on the home page */

/* the shared nav is transparent on the home page (it sits over the hero); on sub pages it is always solid */
.sub .nav {
  background: rgba(13, 10, 8, .86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line); height: 66px;
}
.links a.current { color: var(--text); }
.links a.current::after { transform: scaleX(1); }

.gx-page { padding: calc(66px + clamp(28px, 5vw, 60px)) 0 clamp(60px, 8vw, 110px); min-height: 70vh; }
.gx-back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.gx-back::before { content: "←"; }
.gx-back:hover { color: var(--accent-2); }
.gx-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; letter-spacing: .01em; margin-top: 14px; }

/* filter chips */
.gx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted);
  font-size: 15px; font-weight: 500; transition: all .2s;
}
.chip em { font-style: normal; font-size: 12px; opacity: .7; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* masonry grid */
.gx-grid { columns: 4 240px; column-gap: 16px; }
.gx-item {
  break-inside: avoid; margin: 0 0 16px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.gx-item button { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.gx-item img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gx-item:hover img { transform: scale(1.05); }
.gx-item figcaption { padding: 12px 16px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gx-item figcaption b { color: var(--text); font-size: 15px; font-weight: 600; }

/* bottom call to action */
.gx-cta {
  margin-top: clamp(40px, 6vw, 80px); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius);
  border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--card-2), var(--card));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.gx-cta h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; }
.gx-cta p { color: var(--muted); margin-top: 8px; max-width: 520px; }
.gx-cta .cta-row { margin-top: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 4, .94); display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(92vw, 900px); display: grid; gap: 12px; justify-items: center; }
.lb img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 14px; }
.lb figcaption { display: grid; gap: 2px; justify-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.lb figcaption b { color: var(--text); font-size: 16px; }
.lb figcaption small { margin-top: 4px; opacity: .6; }
.lb-x, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 28px; line-height: 1;
}
.lb-x { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-x:hover, .lb-nav:hover { border-color: var(--accent); color: var(--accent-2); }
body.lb-open { overflow: hidden; }

/* ---------- home page teaser ---------- */
.gx-teaser { padding-top: 0; }
.gx-tz {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, var(--card-2), var(--card) 60%);
}
.gx-tz h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; margin-top: 14px; }
.gx-tz p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 520px; }
.gx-tz .gx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gx-tz .chip { text-decoration: none; }
.gx-tz .count { margin-top: 20px; font-size: 14px; color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; }
.gx-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 10px; aspect-ratio: 1 / .92; }
.gx-mosaic a { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.gx-mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gx-mosaic a:nth-child(2), .gx-mosaic a:nth-child(3) { grid-column: span 3; }
.gx-mosaic a:nth-child(n+4) { grid-column: span 2; }
.gx-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.gx-mosaic a:hover img { transform: scale(1.06); }
.gx-mosaic .more {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 10, 8, .62);
  color: var(--text); font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px);
}

@media (max-width: 900px) {
  .gx-tz { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .gx-grid { columns: 2 150px; column-gap: 10px; }
  .gx-item { margin-bottom: 10px; border-radius: 14px; }
  .gx-item figcaption { padding: 9px 10px 10px; font-size: 11.5px; }
  .gx-item figcaption b { font-size: 13px; }
  .gx-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .gx-filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 42px; padding: 0 15px; font-size: 14px; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
  .gx-cta .cta-row { width: 100%; }
  .gx-cta .btn { flex: 1 1 auto; }
}
