/* ===== Simple gallery (Oct 2026) ===== */
.gs-wrap { margin-top: 8px; }
.gs-jump { position: sticky; top: 0; z-index: 20; margin: 0 -20px 36px; padding: 12px 20px; background: rgba(243,242,239,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(16,23,32,.08); }
.gs-jump-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.gs-jump-track::-webkit-scrollbar { display: none; }
.gs-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(16,23,32,.16); border-radius: 999px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; scroll-snap-align: start; transition: background .2s, color .2s, border-color .2s; }
.gs-chip:hover, .gs-chip:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff; }
.gs-chip-star { color: #e0a100; font-size: 12px; }
.gs-chip:hover .gs-chip-star { color: #ffd34d; }

.gs-group + .gs-group { margin-top: 88px; }
.gs-group-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 28px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.gs-group-title span { color: #e0a100; }
.gs-group-title small { color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.gs-client { padding: 30px 0 36px; border-top: 1px solid rgba(16,23,32,.12); scroll-margin-top: 150px; }
.gs-client-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.gs-client-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: .005em; text-transform: uppercase; }
.gs-client-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gs-star { color: #9a6b00; font-weight: 700; }
.gs-dot { color: rgba(16,23,32,.3); }
.gs-count { flex: 0 0 auto; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.gs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
.gs-photo { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--paper-deep); aspect-ratio: 1 / 1; cursor: zoom-in; }
.gs-photo[hidden] { display: none; }
.gs-photo-feature { grid-column: span 2; grid-row: span 2; }
.gs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gs-photo:hover img, .gs-photo:focus-visible img { transform: scale(1.04); }
.gs-photo:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.gs-more { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(11,17,26,.62); font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .02em; cursor: pointer; }

/* Lightbox */
.gs-lightbox { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; color: #fff; background: rgba(5,10,18,.96); }
.gs-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gs-lightbox::backdrop { background: rgba(5,10,18,.9); }
.gs-lightbox figure { margin: 0; max-width: min(1200px, 88vw); text-align: center; }
.gs-lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; border-radius: 4px; }
.gs-lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .04em; }
.gs-lb-close, .gs-lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); font-size: 28px; line-height: 1; cursor: pointer; }
.gs-lb-close { top: 18px; right: 18px; }
.gs-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gs-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.gs-lb-close:hover, .gs-lb-nav:hover { background: rgba(21,149,158,.45); border-color: #8fe3dc; }


/* Small sets: no gaps */
.gs-grid.gs-n1 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.gs-grid.gs-n1 .gs-photo-feature { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.gs-grid.gs-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-grid.gs-n2 .gs-photo-feature, .gs-grid.gs-n4 .gs-photo-feature { grid-column: auto; grid-row: auto; }
.gs-grid.gs-n2 .gs-photo { aspect-ratio: 4 / 3; }
.gs-grid.gs-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .gs-grid.gs-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-grid.gs-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .gs-grid { gap: 8px; }
  .gs-client { padding: 26px 0 30px; }
}
@media (max-width: 640px) {
  .gs-jump { margin: 0 -20px 26px; padding: 10px 20px; }
  .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gs-client-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gs-group + .gs-group { margin-top: 60px; }
  .gs-lb-nav { top: auto; bottom: 22px; transform: none; }
  .gs-lb-prev { left: calc(50% - 64px); }
  .gs-lb-next { right: calc(50% - 64px); }
  .gs-lightbox img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { .gs-photo img { transition: none; } }
