/*
 * Building project (slug "building"). One 850px column (88vw on narrow screens) of title, photos and text,
 * 32px apart; the three images sit in 16:9 frames. Type comes from the inner-page scale in site.css (h1, h2 and
 * large text shrink with the viewport). Sizes match eaglesnestmn.org at 1920, 1440, 1280, 1024, 768, 390 and 360px.
 */
.enc-p-building .enc-building { box-sizing: border-box; margin: 0; padding: 48px 0; }
.enc-p-building .enc-building__column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: calc(100% - 12vw);
  max-width: 850px;
  margin: 0 auto;
}
.enc-p-building .enc-building__column > * { position: relative; width: 100%; margin: 0; }
.enc-p-building .enc-building h1 { text-wrap: wrap; }
.enc-p-building .enc-building h2 { margin: 32px 0; text-wrap: wrap; }
.enc-p-building .enc-building__text > :first-child { margin-top: 0; }
.enc-p-building .enc-building p { margin: 16px 0; color: inherit; font-size: inherit; line-height: inherit; }
.enc-p-building .enc-building__text > p:last-child { margin-bottom: 0; }
.enc-p-building .enc-building .enc-large,
.enc-p-building .enc-building li { font-size: var(--enc-page-large); line-height: 1.5em; }
.enc-p-building .enc-building ul {
  /* The original list was followed by two empty large-text lines. */
  margin: 1em 0 calc(1em + 3 * var(--enc-page-large) + 16px);
  padding-left: 40px;
}
.enc-p-building .enc-building li { margin: 0.5em 0; }
.enc-p-building .enc-building li::marker { font-size: var(--enc-fs); }
.enc-p-building .enc-building__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
/* Building Fund Giving: the original site's blue button. */
.enc-p-building .enc-building__give { display: block; width: min(100%, 360px); padding: 40px 0; margin: 0 auto; text-align: center; }
.enc-p-building .enc-building__give .wp-block-button { display: inline-block; }
.enc-p-building .enc-give .wp-block-button__link {
  display: inline-block;
  min-height: 0;
  padding: 20px 40px;
  border: 1px solid #005078;
  border-radius: 8px;
  background: #007ab8;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: calc(var(--enc-fs) * 1.5);
  text-decoration: none;
}
.enc-p-building .enc-give .wp-block-button__link:hover { filter: none; }
@media (max-width: 767px) {
  .enc-p-building .enc-building { padding-top: 32px; }
}
