/* gallery view */
.gl-hero__title { margin: 18px 0 22px; }
.gl-hero__voice { max-width: 18em; font-size: clamp(1.4rem, 2.6vw, 2.4rem); }

.gl-main { padding-top: clamp(56px, 7vw, 104px); }
.gl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.6vw, 52px); }
.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-chips[hidden], .gl-count[hidden] { display: none; }
.gl-chip {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer;
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-100);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.gl-chip:hover { border-color: var(--bone); background: rgba(237, 231, 217, 0.04); }
.gl-chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--paper-ink); }
.gl-count { margin: 0; flex-basis: 100%; }

/* masonry: columns, mixed shapes */
.gl-grid { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: clamp(12px, 1.6vw, 24px); }
.gl-item { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 24px); }
.gl-item[hidden] { display: none; }
.gl-tile { display: block; width: 100%; padding: 0; border: 0; background: var(--dial-2); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); position: relative; }
.gl-tile img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); filter: var(--photo-lift); }
.gl-tile:hover img { transform: scale(1.03); }
.gl-tile::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color 0.3s var(--ease); pointer-events: none; }
.gl-tile:hover::after { border-color: var(--bone); }

.gl-ig__v { grid-column: 1 / span 7; max-width: 22em; }
.gl-ig__a { grid-column: 9 / span 4; align-self: center; justify-self: end; }


/* lightbox: solid ground, nothing laid over the photo */
.gl-lb { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.gl-lb[hidden] { display: none; }
.gl-lb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.gl-lb__count { margin: 0; color: var(--steel-300); }
.gl-lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding-inline: clamp(0px, 6vw, 88px); }
.gl-lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gl-lb__cap { margin: 0; padding: 14px 4px 4px; color: var(--steel-100); font-size: var(--t-small); text-align: center; }
.gl-lb__btn { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink); color: var(--steel-100); cursor: pointer; }
.gl-lb__btn:hover { border-color: var(--bone); color: var(--bone); }
.gl-lb__btn svg { width: 22px; height: 22px; }
.gl-lb__prev, .gl-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.gl-lb__prev { left: 0; }
.gl-lb__next { right: 0; }

@media (max-width: 960px) {
  .gl-grid { column-count: 2; }
  .gl-ig__v, .gl-ig__a { grid-column: 1 / -1; justify-self: start; }
  .gl-ig__a { margin-top: 20px; }
}
@media (max-width: 560px) {
  .gl-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gl-chip { flex: none; padding: 0 14px; }
  .gl-grid { column-gap: 10px; }
  .gl-item { margin-bottom: 10px; }
  .gl-lb__stage { padding-inline: 0; padding-bottom: 56px; }
  .gl-lb__prev, .gl-lb__next { top: auto; bottom: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .gl-tile img { transition: none; } .gl-tile:hover img { transform: none; } }
