/* Shared phone layout fixes for the existing site. */
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; }

@media (max-width: 800px) {
  .nav { min-height: 64px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav-actions { flex-shrink: 0; }
  .nav-live { white-space: nowrap; }
  .nav.is-open nav { top: 64px; left: 4vw; right: 4vw; }
  .section-head h2, .schedule-grid h2, .contact-card h2, .final-cta h2 { max-width: 100%; overflow-wrap: anywhere; }
  .section-head p { white-space: normal; max-width: 28rem; line-height: 1.5; }
  .gallery-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .gallery-filters .gallery-filter, .gallery-filters .gallery-more { width: 100%; min-height: 42px; text-align: center; }
  .gallery-view-tools { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 10px; }
  .gallery-card-large, .gallery-card-tall { grid-row: span 2; }
  .gallery-meta { padding: 10px; }
  .gallery-meta strong { font-size: 22px; }
  .live-band .hero-actions { width: 100%; }
  .live-band .btn { width: 100%; text-align: center; }
  .days div { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 14px 0; min-height: 96px; }
  .days div .add-cal { grid-column: 2; width: max-content; max-width: 100%; margin: 0; padding: 10px 12px; white-space: normal; }
  .days strong { font-size: 17px; overflow-wrap: anywhere; }
  .contact-form input, .contact-form textarea, .contact-form button { max-width: 100%; }
  .footer { align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand { font-size: 22px; }
  .nav-live { display: none; }
  .nav-toggle { min-height: 40px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(68px, 21vw, 90px); letter-spacing: -1px; }
  .hero-photo { height: 360px; }
  .hero-stamp { right: 0; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .section-head h2, .schedule-grid h2, .contact-card h2, .final-cta h2 { font-size: clamp(46px, 15vw, 72px); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-card-large, .gallery-card-tall { grid-row: auto; }
  .gallery-meta strong { font-size: 25px; }
  .platform { min-height: 250px; padding: 24px 20px; }
  .platform h3 { font-size: clamp(44px, 15vw, 60px); }
  .schedule-grid { gap: 28px; }
  .days div { grid-template-columns: 44px minmax(0, 1fr); }
  .days div .add-cal { grid-column: 2; width: 100%; }
  .contact-card { padding: 24px 20px; }
  .contact-form { width: 100%; }

  .gallery-archive-page { padding: 92px 6vw 44px !important; }
  .gallery-archive-header { align-items: flex-start !important; gap: 16px !important; }
  .gallery-archive-header h1 { font-size: clamp(42px, 13vw, 64px) !important; letter-spacing: -1px !important; }
  .gallery-archive-subtitle { max-width: 100% !important; }
  .gallery-header-actions { display: flex; flex-wrap: wrap; width: 100%; gap: 8px; }
  .gallery-header-actions a, .gallery-header-actions button { flex: 1 1 calc(50% - 8px); min-height: 42px; padding: 11px 10px; text-align: center; }
  .gallery-header-actions .instagram-icon-link { display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; min-width: 42px; padding: 10px; color: #f2f0ea; border: 1px solid rgba(255,255,255,0.12); background: #111519; }
  .instagram-icon-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .instagram-icon-link svg circle:last-child { fill: currentColor; stroke: none; }
  .gallery-header-actions button { border: 1px solid rgba(255,255,255,0.12); background: #111519; color: #f2f0ea; font: 700 9px Inter, sans-serif; letter-spacing: 1.3px; }
  .gallery-header-actions button[hidden] { display: none; }
  .gallery-tools { align-items: stretch !important; gap: 12px !important; }
  .gallery-view-tools { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 8px; }
  .gallery-tool-label { color: #8d9197; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
  .gallery-view-button { min-height: 42px; border: 1px solid rgba(255,255,255,0.12); background: #111519; color: #8d9197; font: 700 9px Inter, sans-serif; letter-spacing: 1.4px; cursor: pointer; }
  .gallery-view-button.is-active { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb),0.16); }
  .gallery-tool { flex: 1 1 100%; }
  .gallery-tool select { width: 100%; min-width: 0 !important; min-height: 44px; }
  .gallery-count { margin-left: 0 !important; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .archive-grid.is-focus-view { grid-template-columns: 1fr !important; gap: 14px !important; }
  .archive-card img { aspect-ratio: 16 / 9 !important; }
  .archive-card-meta { align-items: flex-start !important; flex-wrap: wrap; }
}
