/* Constraints for fixed-width elements imported from the former WordPress site. */
body {
  overflow-x: hidden;
}

body.home {
  background-color: #e7a45f;
  background-image: url("../img/back_w.jpg");
  background-repeat: repeat;
}

.legacy-content {
  overflow: hidden;
}

.legacy-content * {
  max-width: 100%;
}

.facebook-frame {
  min-height: 500px;
  overflow: hidden;
  width: 100%;
}

.facebook-frame iframe {
  display: block;
  max-width: 100%;
  width: 100%;
}

.facebook-link {
  text-align: center;
  width: 100%;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr);
  max-width: var(--max);
}

.footer-brand {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .7rem;
  text-decoration: none;
}

.footer-nav h2 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 .7rem;
}

.footer-nav ul {
  display: grid;
  gap: .35rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, .25);
  margin-top: 1.5rem;
  max-width: none !important;
  padding: 1rem max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem)) !important;
}

.html-sitemap > ul {
  columns: 2;
}

.html-sitemap li {
  break-inside: avoid;
  margin-bottom: .45rem;
}

@media (max-width: 560px) {
  .header-inner {
    gap: .5rem;
    padding-right: 7rem;
    position: relative;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .menu-button {
    flex: none;
    position: absolute;
    right: 1rem;
    top: .65rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav ul,
  .html-sitemap > ul {
    columns: auto;
    grid-template-columns: 1fr;
  }
}
