/* The phone is the primary experience; desktop keeps the editorial layout. */
.photo-row { display: contents; }
.mobile-save-area { display: none; }
@media (max-width: 900px), (pointer: coarse) {
  html { scroll-padding-top: 90px; }
  body { font-size: 15px; }
  .site-header { height: 72px; padding: 0 18px; padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 10; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand > span { font-size: 16px; letter-spacing: 1.3px; white-space: nowrap; }
  .brand small { font-size: 8px; letter-spacing: 2.8px; margin-top: 3px; }
  .site-header nav { gap: 0; }
  .council-link { display: none; }
  .header-favorites { min-width: 52px; min-height: 44px; padding: 10px; gap: 7px; }
  .header-favorites > span:not(.favorite-count) { display: none; }
  .header-favorites svg { width: 20px; height: 20px; }
  .favorite-count { font-size: 12px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 28px 22px 25px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.8px; gap: 12px; margin-bottom: 19px; }
  .eyebrow span { width: 22px; }
  h1 { font-size: clamp(35px, 9.3vw, 48px); line-height: 1.04; letter-spacing: -1px; margin-bottom: 16px; }
  .tablet-break { display: none; }
  .hero-description { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
  .hero-description br { display: none; }
  .gold-button { font-size: 14px; padding: 14px 20px; min-height: 50px; gap: 28px; }
  .hero-footnote { margin-top: 19px; font-size: 9px; letter-spacing: 1px; line-height: 1.6; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .hero-photo > img { object-fit: contain; object-position: center; animation: none; }
  .photo-caption { padding: 40px 18px 14px; }
  .photo-caption span:first-child { display: none; }
  .photo-caption span:last-child { font-size: 19px; }
  .gallery-section { padding: 30px 16px 0; }
  .gallery-heading { display: block; }
  .section-kicker { font-size: 10px; letter-spacing: 1.4px; line-height: 1.6; margin-bottom: 10px; }
  h2 { font-size: 34px; line-height: 1.05; margin-bottom: 12px; }
  .gallery-intro { padding: 0; border: 0; font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
  .gallery-intro br { display: none; }
  .gallery-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding: 12px 0 15px; position: sticky; top: 72px; z-index: 5; background: var(--paper); }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter { justify-content: center; min-height: 48px; font-size: 13px; padding: 12px 8px; gap: 7px; border: 1px solid var(--line); }
  .filter.active { border-color: var(--navy); }
  .filter span { font-size: 11px; }
  .filter svg { width: 17px; height: 17px; }
  .search { width: 100%; min-height: 50px; padding: 12px 14px; }
  .search input { font-size: 16px; min-height: 24px; }
  .search svg { width: 20px; height: 20px; }
  .gallery-meta { font-size: 12px; padding: 17px 0; gap: 12px; align-items: center; }
  .gallery-meta p:last-child { display: block; font-size: 11px; max-width: 170px; text-align: right; line-height: 1.4; }
  .gallery-meta p:last-child > span { display: none; }
  .gallery-meta svg { display: none; }
  .photo-grid { display: block; }
  .photo-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
  .photo-card { flex: var(--photo-ratio) 1 0; min-width: 0; animation: none; }
  .photo-frame { aspect-ratio: var(--photo-ratio); border-radius: 4px; }
  .photo-open img { object-fit: contain; }
  .photo-open::after { display: none; }
  .favorite-button { top: 6px; right: 6px; width: 44px; height: 44px; }
  .favorite-button svg { width: 19px; height: 19px; }
  .photo-info { padding: 2px 0 0; gap: 1px; min-height: 46px; }
  .photo-name { font-size: 11px; letter-spacing: 0; }
  .quick-download { width: 44px; height: 44px; }
  .quick-download svg { width: 19px; height: 19px; }
  .empty-state { padding: 50px 12px; }
  .empty-state h3 { font-size: 30px; }
  .empty-state p { font-size: 14px; }
  .navy-button { min-height: 48px; font-size: 14px; }
  .gallery-end { padding: 38px 0; }
  .gallery-end p { font-size: 30px; }
  .gallery-end a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  footer { padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 12px; line-height: 1.7; gap: 20px; flex-wrap: wrap; }
  .footer-brand { font-size: 16px; }
  .footer-brand span { font-size: 9px; }
  footer > p:last-child { width: 100%; font-size: 12px; }
  dialog { height: 100dvh; width: 100%; }
  .viewer-header { min-height: 68px; height: auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
  .viewer-identity { font-size: 13px; gap: 9px; }
  .viewer-identity img { display: block; width: 25px; }
  .viewer-actions { gap: 9px; }
  .icon-button { width: 44px; height: 44px; padding: 11px; }
  .icon-button svg { width: 21px; height: 21px; }
  .viewer-header .download-button { display: none; }
  .viewer-stage { padding: 6px 0 52px; gap: 0; position: relative; }
  .viewer-image-wrap { width: 100%; }
  .viewer-image-wrap > img { max-width: 100%; max-height: 100%; }
  .viewer-nav { position: absolute; bottom: 4px; right: 14px; width: 48px; height: 44px; z-index: 1; border: 1px solid #ffffff30; background: #ffffff08; }
  .viewer-nav.previous { left: 14px; right: auto; }
  .viewer-nav svg { width: 22px; height: 22px; }
  .viewer-footer { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ffffff14; max-height: 48dvh; overflow-y: auto; }
  .viewer-footer h2 { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
  .viewer-footer p { font-size: 11px; line-height: 1.5; }
  .viewer-hint { display: none; }
  .mobile-save-area { display: block; margin-top: 14px; }
  .mobile-save-buttons { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
  .save-phone-button, .mobile-download { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 9px; border-radius: 4px; font: 700 13px var(--sans); text-align: center; }
  .save-phone-button { border: 1px solid var(--gold); background: var(--gold); color: var(--navy-deep); }
  .save-phone-button:disabled { opacity: .65; cursor: wait; }
  .mobile-download { border: 1px solid #ffffff40; color: #fff; text-decoration: none; }
  .mobile-download svg { width: 18px; height: 18px; }
  .viewer-footer .save-status { color: #c4ccdc; font-size: 12px; margin: 10px 0 0; }
  .save-help { margin-top: 8px; padding-top: 6px; }
  .save-help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-light); font-size: 14px; text-underline-offset: 4px; }
  .save-help p { margin: 4px 0 0; font-size: 12px; }
  .image-error { padding: 20px; font-size: 14px; }
}
@media (max-width: 350px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .brand > span { font-size: 14px; }
  .hero-copy { padding-left: 18px; padding-right: 18px; }
  .hero-footnote { font-size: 8px; }
  .mobile-save-buttons { grid-template-columns: 1fr 1fr; gap: 7px; }
  .save-phone-button, .mobile-download { font-size: 12px; padding-left: 6px; padding-right: 6px; }
}
