/* The existing Hungarian homepage modules retain their markup and copy. */
.bue--home #mod-custom122 {
  width: 100%;
  max-width: 1224px;
}

.bue--home #mod-custom124 {
  width: 100%;
  max-width: 1166px;
}

.bue--home .bue-kv__cards {
  gap: clamp(1.5rem, 3.55vw, 3rem);
  margin: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.bue--home .bue-kv__card {
  padding: 1.15rem 0 0;
  background: transparent;
  border: 0;
  border-top: 2px solid #17354f;
  border-radius: 0;
  box-shadow: none;
}

.bue--home .bue-kv__card > h2,
.bue--home .bue-kv__card > h3 {
  margin: 0 0 0.9rem;
  color: #17354f;
  font-size: 1.65rem;
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  font-weight: 600;
}

.bue--home .bue-kv__card > p {
  color: #1d3041;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.bue--home .bue-kv__close {
  padding-top: 1.25rem;
  border-top: 1px solid #acbbc7;
  text-align: left;
}

.bue--home .com-content-article__body .bue-kv__quote {
  text-align: left;
}

.bue--home .bue-kv__church {
  text-align: left;
}

.bue--home .bue-kv a:focus {
  outline: 3px solid #0c57a0;
  outline-offset: 3px;
}

.bue--home #mod-custom124 .bue-kv--manifesto {
  margin: clamp(2.4rem, 5vw, 4.4rem) auto;
  background: #17354f;
}

.bue--home #mod-custom124 .bue-kv__manifesto {
  max-width: none;
  margin: 0;
  padding: 1.5rem;
  padding: clamp(1.4rem, 5vw, 4.25rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.bue--home #mod-custom124 .bue-kv__manifesto > h2,
.bue--home #mod-custom124 .bue-kv__manifesto > h3 {
  margin-bottom: 1.15rem;
  color: #fff;
  font-size: 2rem;
  font-size: clamp(1.85rem, 3.45vw, 3rem);
  letter-spacing: normal;
  line-height: 1.15;
}

.bue--home #mod-custom124 .bue-kv__manifesto > p {
  max-width: 43ch;
  color: #f0f4f6;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Keep the copy readable if a browser has no grid or background-image support. */
@supports (display: grid) {
  .bue--home #mod-custom124 .bue-kv--manifesto {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .bue--home #mod-custom124 .bue-kv--manifesto::before {
    content: "";
    min-height: 12rem;
    min-height: clamp(11rem, 60vw, 22rem);
    background: #665849 url("../../../../../images/templom/bue19.jpg") center 56% / cover no-repeat;
  }

  .bue--home #mod-custom124 .bue-kv__manifesto {
    display: grid;
    align-content: center;
  }

  @media (min-width: 48rem) {
    .bue--home #mod-custom124 {
      width: calc(100% - 3rem);
    }

    .bue--home #mod-custom124 .bue-kv--manifesto {
      grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    }

    .bue--home #mod-custom124 .bue-kv--manifesto::before {
      min-height: 30rem;
    }
  }
}

/* Each activity is an independent reading section with its original photo. */
.bue--tevekenysegek .com-content-article__body > ul {
  display: block;
  max-width: 68rem;
  margin: 1.5rem auto 3rem;
}

.bue--tevekenysegek .com-content-article__body > ul > li {
  display: block;
  padding: 1.6rem 0;
  border: 0;
  border-top: 1px solid #acbbc7;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  word-break: normal;
  overflow-wrap: break-word;
}

.bue--tevekenysegek .com-content-article__body > ul > li > img:first-child {
  display: block;
  width: 100%;
  max-width: 23rem;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 0 1rem;
  border-radius: 0.3rem;
}

.bue--tevekenysegek .com-content-article__body > ul > li > h3 {
  margin: 0 0 0.55rem;
  color: #17354f;
  font-size: 1.65rem;
  font-weight: 600;
  word-break: normal;
}

.bue--tevekenysegek .com-content-article__body > ul > li > div {
  max-width: 63ch;
  color: #1d3041;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.bue--tevekenysegek .com-content-article__body > ul > li > div p {
  margin: 0 0 0.75em;
}

.bue--tevekenysegek .com-content-article__body > ul > li > div > :last-child {
  margin-bottom: 0;
}

.bue--tevekenysegek .com-content-article__body > ul > li > div [style*="text-align"] {
  text-align: left !important;
}

.bue--tevekenysegek .com-content-article__body > ul > li > div [style*="font-"] {
  font-family: inherit !important;
  font-size: inherit !important;
}

@supports (display: grid) {
  @media (min-width: 48rem) {
    .bue--tevekenysegek .com-content-article__body > ul > li {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr);
      grid-template-rows: auto 1fr;
      column-gap: clamp(1.5rem, 4vw, 3.5rem);
      align-items: start;
    }

    .bue--tevekenysegek .com-content-article__body > ul > li > img:first-child {
      grid-column: 1;
      grid-row: 1 / span 2;
      margin: 0;
    }

    .bue--tevekenysegek .com-content-article__body > ul > li > h3,
    .bue--tevekenysegek .com-content-article__body > ul > li > div {
      grid-column: 2;
    }
  }
}

/* Match the site's outer width while keeping the introductory text readable. */
.bue--legy-aktiv .bue-component .com-content-article__body {
  width: 100%;
  max-width: none;
}

.bue--legy-aktiv .com-content-article__body > p {
  max-width: 75ch;
}

.bue--legy-aktiv .com-content-article__body > ul {
  align-items: start;
  gap: 1rem;
}

.bue--legy-aktiv .com-content-article__body > ul > li {
  padding: 0.9rem 1rem 1rem;
  border-radius: 0.4rem;
  box-shadow: none;
}

.bue--legy-aktiv .com-content-article__body > ul > li > h3 {
  margin: 0 0 0.6rem;
  color: #17354f;
  font-weight: 600;
}

.bue--legy-aktiv .com-content-article__body > ul > li > :last-child {
  margin-bottom: 0;
}

/* Contact details precede the photo and map in the document and tab order. */
.bue--kapcsolat .com-content-article__body > .bue-contact-overview {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bue-contact-overview .bue-contact-details {
  padding-bottom: 0.9rem;
  overflow-wrap: break-word;
}

.bue-contact-overview .bue-contact-details > div {
  max-width: 65ch;
}

.bue--kapcsolat .bue-contact-overview .bue-place-photo {
  width: 100%;
  max-width: 25rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bue--kapcsolat .bue-contact-overview .bue-place-photo img {
  height: auto;
  object-fit: contain;
}

.bue-contact-overview .bue-map-actions {
  padding: 0 0 0.8rem !important;
}

@supports (display: grid) {
  @media (min-width: 48rem) {
    .bue--kapcsolat .bue-contact-overview {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      align-items: start;
      gap: clamp(1.5rem, 4vw, 3.5rem);
    }

    .bue--kapcsolat .bue-contact-overview .bue-place-photo {
      max-width: none;
    }
  }
}

.bue--tevekenysegek .com-content-article__body h3[id] {
  scroll-margin-top: 6rem;
}
