/* Layout fixes on top of the Elementor styles, loaded after them on every page. Each one corrects something
   the WordPress site also gets wrong; nothing here changes how the site looks at 1360px and wider, at 1024px
   and narrower, or anywhere else it already worked. */

/* Between the tablet layout (1024px) and the 1280px content width, boxed sections had no side margin:
   headings, paragraphs and the contact form ran to the very edge of the screen, and just under 1280px the
   footer email was cut off. Here the content width leaves 40px a side until the screen is wide enough. */
@media (min-width: 1025px) and (max-width: 1359px) {
  .e-con { --container-max-width: calc(100vw - 80px); }
  .elementor-section.elementor-section-boxed > .elementor-container { max-width: calc(100vw - 80px); }

  /* The footer's Visit column was narrower than the email address in it. The three link columns now take
     the room their words need, the brand column takes what is left, and the gaps tighten a little. */
  footer .elementor-element.elementor-element-af00004.e-con { column-gap: 32px; --gap: 32px; --column-gap: 32px; }
  footer .elementor-element.elementor-element-af00005.e-con { flex: 1 1 0; min-width: 0; --flex-grow: 1; --flex-shrink: 1; --flex-basis: 0; }
  footer .elementor-element.elementor-element-af00010.e-con,
  footer .elementor-element.elementor-element-af00020.e-con,
  footer .elementor-element.elementor-element-af00030.e-con { flex: 0 0 auto; width: auto; --width: auto; --flex-grow: 0; --flex-shrink: 0; --flex-basis: auto; }
}

/* Previous / next post titles were cut to one line on phones ("Do You Need ..."). They wrap to three. */
@media (max-width: 767px) {
  .elementor-post-navigation .post-navigation__prev--title,
  .elementor-post-navigation .post-navigation__next--title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}
