/**
 * OneEach fixes on top of the team's theme (commit 1aae1c9), added on the move to k8s.
 * Backlog fix 8: pages scrolled sideways on phones (/contact-us, /start-campaign-0,
 * /campaign-materials-0, /born-learning-trails). Embedded maps/videos had fixed widths
 * (600/560px), form fields and content images were wider than the screen, and long
 * links did not wrap. Nothing changes on screens wide enough for the original sizes.
 */
.main-content iframe,
.region-content iframe,
.paragraph iframe,
.node__content iframe,
.region-content video,
.paragraph video,
.node__content video {
  max-width: 100%;
}
.region-content video,
.paragraph video,
.node__content video {
  height: auto;
}
.region-content img,
.paragraph img,
.node__content img {
  max-width: 100%;
  box-sizing: border-box;
}
.region-content form .form-control,
.region-content form textarea,
.region-content form select {
  max-width: 100%;
  box-sizing: border-box;
}
.region-content a,
.paragraph a,
.node__content a {
  overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
  /* A Bootstrap .row placed outside a .container sticks out 15px on each side (e.g.
   * /united-acts-kindness). Clip sideways overflow of the page wrapper on phones; clip (not hidden)
   * keeps sticky headers working. */
  .dialog-off-canvas-main-canvas {
    overflow-x: clip;
  }
  /* Phones only: keep the picture's proportions once max-width narrows it. Not on wider screens:
   * some pages size their images by the height attribute alone (with width: auto), and height: auto
   * there would show them at full original size (found on /campaign-materials-0, 11-21). */
  .region-content img,
  .paragraph img,
  .node__content img {
    height: auto;
  }
  .region-content img.align-left,
  .region-content img.align-right,
  .paragraph img.align-left,
  .paragraph img.align-right {
    float: none;
    display: block;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Backlog fix 10: the home page now has an H1 ("Lakes Area United Way") for search engines and
 * screen readers. The theme removes the title banner (.bImage) on the home page with display:none,
 * which hides it from screen readers too; keep it hidden on screen but readable. */
.path-frontpage .bImage {
  display: block !important;
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
