/* Responsive layer for The Grey Room Tattoos.
   Media queries cannot be expressed inline. Every declaration needs !important
   because the pages style elements with inline attributes, which otherwise win. */

@media (max-width: 900px) {
  .text-col { padding-right: 0 !important; }
  .event-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  header { padding: 12px 16px !important; gap: 10px !important; }
  header nav { gap: 4px !important; }
  header nav a { font-size: 10px !important; padding: 6px 8px !important; }
  header nav a.btn { margin-left: 0 !important; }

  section { padding-left: 16px !important; padding-right: 16px !important; }
  footer { padding-left: 16px !important; padding-right: 16px !important; }

  /* hero: wordmark reads horizontally, stacked above the copy */
  .hero { min-height: 0 !important; }
  .hero-title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 40px !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  .hero-mark {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .hero > div:last-child { flex-direction: column !important; align-items: flex-start !important; }

  /* every multi-column card collapses */
  .span-wide { grid-column: 1 / -1 !important; }
  .span-tall { grid-row: auto !important; }
  .gallery-note { grid-column: 1 / -1 !important; }

  /* tiles: no fixed ratios or tall minimums on a phone */
  .tile-ratio { aspect-ratio: auto !important; min-height: 240px !important; }
  .tile-logo { position: static !important; width: 100% !important; max-width: 220px !important; height: 120px !important; max-height: none !important; margin-top: 14px !important; }

  h1 { font-size: 34px !important; }
  h2 { font-size: 26px !important; }
  h3 { font-size: 22px !important; }

  a.btn { white-space: normal !important; text-align: center !important; }

  img[alt="The Grey Room Tattoos"] {
    position: static !important;
    width: 110px !important;
    margin: 0 0 14px !important;
  }
}

@media (max-width: 480px) {
  header nav { width: 100% !important; justify-content: flex-start !important; }
  h1 { font-size: 28px !important; }
  .hero-title { font-size: 30px !important; }
  .hero-mark img { width: 30px !important; }
}
