/* Footer layout between the mobile (<=768px) and wide desktop (>=1700px) designs.
   The page bundles give .footer-right-columns fixed 340px + 220px tracks, a 132px gap and
   translateX(100px), and the newsletter column translate(120px,-12px) / translateX(-120px);
   that only fits very wide screens and pushed "Explore" off-screen below ~1700px.
   Loaded after every page bundle, with selectors at least as specific as theirs. */

@media screen and (min-width: 769px) and (max-width: 1699px) {
  /* !important: the element also carries an inline grid-template-columns style. */
  footer.site-footer .inside-footer .coconut-footer-widgets {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .widget-col.widget-col-1,
  footer.site-footer .inside-footer .coconut-footer-widgets > .widget-col.widget-col-1 {
    min-width: 0;
    transform: none !important;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 80px);
    width: 100%;
    max-width: 692px;
    min-width: 0;
    justify-self: center;
    margin-inline: auto;
    transform: none;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns > .widget-col {
    min-width: 0;
    max-width: 100%;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns p,
  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns li,
  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns a {
    overflow-wrap: anywhere;
  }
}

@media screen and (min-width: 769px) and (max-width: 1099px) {
  /* Stack: newsletter first, then the Contact / Explore pair centred below it. */
  footer.site-footer .inside-footer .coconut-footer-widgets {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .widget-col.widget-col-1,
  footer.site-footer .inside-footer .coconut-footer-widgets > .widget-col.widget-col-1 {
    width: 100%;
    max-width: 620px;
    min-height: 0;
    justify-self: center;
  }

  footer.site-footer .inside-footer .coconut-footer-widgets .footer-right-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 620px;
    justify-self: center;
  }
}
