
/* Phone layout only; the original desktop rules above remain byte-identical. */
@media screen and (max-width: 767px) {
  body { font-size: 100%; }
  #page { width: auto; margin: 8px; background-image: none !important; background-color: #fff !important; }
  #header, #footer { width: 100%; margin-left: 0; }
  #header { height: auto; min-height: 200px; background-size: cover !important; }
  #headerimg { width: auto; height: auto; min-height: 200px; }
  #headerimg h1 { font-size: 2em; padding: 55px 12px 0; }
  #headerimg .description { padding: 8px 12px 24px; }
  #content.narrowcolumn, #content.widecolumn {
    float: none; width: auto; margin: 0; padding: 0 16px 20px; box-sizing: border-box;
  }
  #content { font-size: 1em; }
  #content .post, #content .commentlist { text-align: left; }
  #content .navigation { display: flow-root; clear: both; margin: 1em 0; }
  #content .navigation > .alignleft, #content .navigation > .alignright {
    float: none; width: auto; margin: 0.5em 0; text-align: left;
  }
  #sidebar { width: auto; margin: 0; padding: 0 16px 20px; clear: both; font-size: 1em; }
  #footer p { padding: 20px 16px; }
  #content, #sidebar, #headerimg, #footer { overflow-wrap: break-word; }
  #content img, #sidebar img, #content .wp-caption {
    max-width: 100%; height: auto; box-sizing: border-box;
  }
  #content .wp-caption { margin-left: 0; margin-right: 0; }
  #content .entry .alignleft, #content .entry .alignright { float: none; }
  #content input, #content textarea, #content select, #sidebar input, #sidebar select {
    max-width: 100%; box-sizing: border-box; font-size: 1em;
  }
  #content pre, #content table { max-width: 100%; overflow-x: auto; }
  #content table { display: block; }
}
