.photographs { display: flex; flex-direction: column; gap: 12px; }
.photo-row { display: flex; gap: 12px; align-items: flex-start; }
.photo-tile { flex: 0 0 auto; min-width: 0; }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.photo-open img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.photo-open:hover img { opacity: .82; }
.photo-tile figcaption { margin: 7px 0 3px; font-size: 10px; line-height: 1.5; }
.photo-tile figcaption span:last-child { font-size: 9px; }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery-link { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding: 18px 0; margin-top: 24px; font-size: 13px; }
.gallery-link > span:last-child { margin-left: auto; color: var(--accent); }
.gallery-total { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.gallery-link:hover { color: var(--accent); }
.gallery-shell { max-width: 1480px; padding: 0 64px; margin: 0 auto; }
.gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.gallery-home { font-size: 15px; font-weight: 500; }
.gallery-home span { color: var(--accent); margin-right: 12px; }
.gallery-header .eyebrow { margin: 0; font-size: 9px; }
.gallery-main { padding: 0; }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 70px 0 45px; }
.gallery-heading .eyebrow { margin-bottom: 18px; }
.gallery-heading h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 500; letter-spacing: -3px; }
.gallery-heading > p { margin: 0 0 3px; font-size: 13px; line-height: 1.8; }
.gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); margin-bottom: 10px; }
.photo-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-filters button { background: transparent; border: 1px solid transparent; border-radius: 30px; padding: 7px 14px; font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.photo-filters button:hover { color: var(--text); background: var(--surface); }
.photo-filters button[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-ink); }
.photo-count { margin: 0; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.gallery-end { display: flex; justify-content: space-between; gap: 20px; margin: 52px 0; color: var(--dim); font-size: 12px; }
.photo-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: var(--bg); color: var(--text); }
.photo-dialog::backdrop { background: var(--bg); }
.photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; }
.viewer-top { font-size: 11px; color: var(--muted); }
.viewer-controls { display: flex; gap: 8px; }
.viewer-controls button, .viewer-close { border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); height: 44px; width: 44px; cursor: pointer; font-size: 19px; }
.viewer-controls button:hover, .viewer-close:hover { border-color: var(--accent); color: var(--accent); }
.viewer-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 28px; }
.viewer-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-stage img[hidden] { display: none; }
.viewer-bottom p { margin: 0; }
.viewer-title { font-size: 14px; }
.viewer-category { color: var(--dim); font-size: 11px; }
.viewer-error { color: var(--muted); font-size: 13px; text-align: center; }
html.viewer-is-open { overflow: hidden; }
@media (min-width: 1500px) { .gallery-page .photo-tile figcaption { font-size: 11px; } }
@media (max-width: 1000px) { .gallery-shell { padding: 0 36px; } }
@media (max-width: 700px) {
  .gallery-shell { padding: 0 22px; }
  .gallery-header { padding: 23px 0; }
  .gallery-header .eyebrow { display: none; }
  .gallery-heading { display: block; padding: 46px 0 30px; }
  .gallery-heading h1 { font-size: 46px; letter-spacing: -2px; }
  .gallery-heading > p { margin: 22px 0 0; }
  .photo-filters { gap: 3px; }
  .photo-filters button { padding: 8px 10px; font-size: 11px; }
  .gallery-toolbar { gap: 10px; }
  .photo-count { padding-left: 10px; }
  .photographs { gap: 16px; }
  .photo-tile figcaption { font-size: 10px; }
  .viewer-top, .viewer-bottom { padding: 14px 16px; }
  .viewer-stage { padding: 0 12px; }
  .viewer-title { font-size: 12px; }
  .viewer-top .viewer-hint { display: none; }
}
