/* Mobile-only layout fixes (phones and small tablets). Desktop is unaffected. */
@media (max-width: 781px) {
  /* Less side padding so text gets more room */
  main.wp-block-group.alignfull.has-global-padding { padding-left: 12px !important; padding-right: 12px !important; }
  main .wp-block-column.has-background { padding-left: 20px !important; padding-right: 20px !important; }

  /* Floated images stack above the text instead of squeezing it */
  .entry-content img.alignleft, .entry-content img.alignright,
  .entry-content img[style*="float"], .entry-content .wp-caption.alignleft,
  .entry-content .wp-caption.alignright, .entry-content figure.alignleft,
  .entry-content figure.alignright, .entry-content .wp-block-image .alignleft,
  .entry-content .wp-block-image .alignright {
    float: none !important; display: block; margin: 0 auto 16px !important;
    max-width: 100% !important; height: auto !important;
  }

  /* Keep wide content inside the screen */
  .entry-content img, .entry-content iframe, .entry-content embed,
  .entry-content video, .entry-content object { max-width: 100% !important; }
  .entry-content img { height: auto; }
  .entry-content table { display: block; overflow-x: auto; }
  .entry-content, .wp-block-post-title { overflow-wrap: break-word; }

  /* Podcast & Books: drop the blank lines used to clear the book covers on desktop */
  .page-id-7845 .entry-content p:has(> strong > br:only-child) br { display: none; }
  .entry-content .ic-desktop-spacer { display: none; }

  /* Header banner: taller on phones, focused on the title so the text is readable */
  header .wp-block-image.alignfull img, footer .wp-block-image.alignfull img {
    height: 100px !important; width: 100% !important; object-fit: cover; object-position: 95% 50%;
  }

  /* Menu button sits at the top left on phones */
  header .wp-block-group.is-content-justification-center:has(> .wp-block-navigation) { justify-content: flex-start !important; }
  header .wp-block-navigation { justify-content: flex-start !important; }
}