
/* The gallery uses the same 4:3 viewport as the approved guide.
   The two photos keep their original source files. */
html.hashira .guide-environment .curve-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Six weekdays fit without an inner horizontal scroll area. */
html.hashira #guide-hours .source-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}
html.hashira #guide-hours .source-table th:first-child {
  width: 26%;
}
@media (max-width: 540px) {
  html.hashira #guide-hours .source-table :is(th, td) {
    padding-inline: 2px;
  }
}

/* The adopted phone grid belongs to the guide; the TOP has its own layout. */
@media (max-width: 760px) {
  html.hashira #guide-subjects > .curve-inner { width: 100%; }
  html.hashira #guide-subjects #guide-subjects-title { margin-inline: 20px; }
  html.hashira #guide-subjects .mobile-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 95%;
    margin-inline: auto;
  }
  html.hashira #guide-subjects .mobile-subject-grid li { min-width: 0; }
  html.hashira #guide-subjects .mobile-subject-grid a {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 3px 8px;
    line-height: 1.2;
    gap: 8px;
  }
}

@media (max-width: 359px) {
  html.hashira #guide-subjects .mobile-subject-grid a:has(.subject-label-long) {
    padding-inline: 3px;
    gap: 2px;
  }
  html.hashira #guide-subjects .mobile-subject-grid .subject-label-long {
    letter-spacing: normal;
  }
}
@media (min-width: 761px) {
  html.hashira #guide-subjects .mobile-subject-grid a:has(.subject-label-long) {
    padding-inline: 8px;
    gap: 6px;
  }
  html.hashira #guide-subjects .mobile-subject-grid .subject-label-long {
    letter-spacing: normal;
  }
}
