.mobile-menu-toggle { display: none; }

@media (max-width: 700px) {
  body {
    --mobile-edge: 6%;
    --mobile-header-height: 68px;
    --mobile-rule: #452f3940;
    --portfolio-intro-space: 32px;
    --portfolio-section-space: 48px;
  }

  body.editorial > .site-nav {
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);
    padding: 0 var(--mobile-edge);
    flex-wrap: nowrap;
    border-bottom: 0;
  }

  body.editorial > .site-nav::after {
    content: '';
    position: absolute;
    inset: auto var(--mobile-edge) 0;
    background: var(--mobile-rule);
    height: 1px;
  }

  body.editorial > .site-nav { position: relative; }
  body.editorial :is(.site-nav, .mobile-navigation-bar) .brand-name { font-size: 25px; }

  .has-mobile-navigation > nav { display: none; }

  .mobile-menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-menu-toggle span {
    width: 23px;
    height: 1px;
    display: block;
    background: currentColor;
  }

  .mobile-menu-close span { grid-area: 1 / 1; }
  .mobile-menu-close span:first-child { transform: rotate(45deg); }
  .mobile-menu-close span:last-child { transform: rotate(-45deg); }

  html.has-open-mobile-menu { overflow: hidden; }

  body.editorial > .mobile-navigation {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0 var(--mobile-edge) max(40px, env(safe-area-inset-bottom));
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    color: #452f39;
    background: #fff;
    background-image: var(--portfolio-paper-wash), var(--portfolio-paper-texture);
    background-size: 627px;
    overscroll-behavior: contain;
  }

  body.editorial > .mobile-navigation[open] { animation: mobile-menu-fade .25s ease-out; }
  body.editorial > .mobile-navigation.closing { animation: none; }
  .mobile-navigation::backdrop { background: transparent; }
  @keyframes mobile-menu-fade { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    body.editorial > .mobile-navigation[open] { animation: none; }
  }

  .mobile-navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--mobile-header-height);
    border-bottom: 1px solid var(--mobile-rule);
  }

  body.editorial > .mobile-navigation nav {
    width: 100%;
    max-width: none;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    display: grid;
    gap: 0;
    margin: clamp(40px, 10vh, 100px) 0 0;
  }

  body.editorial > .mobile-navigation nav a {
    width: 100%;
    min-width: 0;
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid var(--mobile-rule);
    font: 400 clamp(24px, 8vw, 44px)/1.13 'Source Serif 4', Georgia, serif;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-navigation nav a span[aria-hidden="true"] { display: none; }

  body.editorial :is(.footer-discovery, a[href$="Angela-Claudo-CV.pdf"]) { display: none; }
  body.editorial > footer { padding-inline: var(--mobile-edge); }
  body.editorial > footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 12px;
  }

  body.editorial :is(main, .collection-link) .outline-link {
    min-height: 44px;
    padding: 12px 16px;
    gap: 24px;
    font-size: 13px;
  }

  body.contact-page > main { width: calc(100% - 2 * var(--mobile-edge)); }
  body.editorial .project-arrow { display: none; }

  body.voyages-page .pagination {
    width: 100%;
    max-width: none;
    margin: 32px 0 0;
    gap: 10px;
  }

  body.voyages-page .pagination a {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    padding: 0 11px;
  }

  .pagination .page-previous, .pagination .page-next { font-size: 0; }
  .pagination .page-previous::before { content: '←'; font-size: 18px; }
  .pagination .page-next::before { content: '→'; font-size: 18px; }
  body.voyages-page .pagination-status { margin-top: 14px; }

  body.adventure-article .article-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    margin-top: 4px;
    padding-top: 20px;
  }

  .adventure-article .article-navigation > :first-child { grid-area: 1 / 1; }
  .adventure-article .article-navigation > :nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  .adventure-article .article-navigation > :last-child { grid-area: 1 / 2; }
  .adventure-article .article-navigation > a:not(:nth-child(2)) {
    min-height: 44px;
    padding: 6px 0;
    border-bottom: 1px solid var(--mobile-rule);
  }

  .adventure-article .article-navigation strong {
    font-size: clamp(16px, 4.4vw, 22px);
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .adventure-article #adventure-lightbox .lightbox-controls button {
    min-width: 44px;
    min-height: 44px;
  }
}
