/* Small screens only: stack the original table layout. Desktop rendering is unchanged. */
@media (max-width: 760px) {
  #frame,
  #frame > tbody,
  #frame > tbody > tr,
  #frame > tbody > tr > td {
    display: block;
    width: auto !important;
    box-sizing: border-box;
  }
  #frame { width: 100% !important; border: 0; }
  #frame > tbody > tr > td { margin-bottom: 4px; }

  #frame > tbody > tr#header { display: flex; align-items: center; border: 1px solid #888; margin-bottom: 4px; }
  #header > td { border: 0; padding: 4px; }
  #header img { width: 56px; height: auto; }
  #header font { font-size: 20px !important; }

  #menu { border: 1px solid #888; padding: 4px 6px; }
  #menu p { display: inline-block; margin: 3px 12px 3px 0; }

  #content { border: 1px solid #888; padding: 6px; overflow-x: auto; }
  #content img { max-width: 100%; height: auto; }
  /* % widths collapse inside auto-sized table cells, use the viewport instead */
  #content td img { max-width: 30vw; }
  #content table { max-width: 100%; }
  #content [width] { max-width: 100%; }
}
