.eudiste-theme .boystown-opening {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 58vw, 680px);
  padding: clamp(52px, 8vw, 104px) 0;
  background-image:
    linear-gradient(90deg, rgba(8, 13, 16, .86) 0%, rgba(8, 13, 16, .72) 42%, rgba(8, 13, 16, .28) 100%),
    linear-gradient(0deg, rgba(8, 13, 16, .38), rgba(8, 13, 16, .1)),
    url("assets/boystown/groupe-boys-town.jpg");
  background-size: cover;
  background-position: center 47%;
  border-bottom: 1px solid var(--e-line);
}

.eudiste-theme .boystown-opening .text-link,
.eudiste-theme .boystown-opening .news-lead,
.eudiste-theme .boystown-opening .wrap > p:not(.eyebrow) {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.eudiste-theme .boystown-opening .news-lead {
  max-width: 950px;
}

.eudiste-theme .boystown-opening .wrap > p:not(.eyebrow, .news-lead) {
  max-width: 760px;
  color: #f0f0ed;
}

.eudiste-theme .boystown-objectives {
  margin-top: 52px;
}

.eudiste-theme .boystown-objectives-intro {
  max-width: 820px;
  color: var(--e-muted);
}

.eudiste-theme .boystown-objectives ol {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: objective;
}

.eudiste-theme .boystown-objectives li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 32px;
  counter-increment: objective;
}

.eudiste-theme .boystown-objectives li::before {
  content: counter(objective);
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--e-red);
  color: var(--e-text);
  font-family: var(--e-ui-font);
  font-weight: 700;
}

.eudiste-theme .boystown-objectives li:not(:last-child)::after {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--e-line);
  content: "";
}

.eudiste-theme .boystown-objectives li h3 {
  margin: 2px 0 8px;
  color: var(--e-gold);
  font-family: var(--e-ui-font);
  font-size: 1.12rem;
  line-height: 1.4;
}

.eudiste-theme .boystown-objectives li p {
  max-width: 790px;
  margin: 0;
  color: var(--e-muted);
}

.eudiste-theme .boystown-history,
.eudiste-theme .boystown-feeding {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 58px;
}

.eudiste-theme .boystown-history-photo,
.eudiste-theme .boystown-feeding figure {
  margin: 0;
  overflow: hidden;
  background: var(--e-surface);
}

.eudiste-theme .boystown-history-photo img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
}

.eudiste-theme .boystown-feeding {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--e-line);
  background: var(--e-surface);
}

.eudiste-theme .boystown-feeding figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.eudiste-theme .boystown-projects {
  margin-top: 58px;
}

.eudiste-theme .boystown-projects-intro {
  max-width: 760px;
  color: var(--e-muted);
}

.eudiste-theme .boystown-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.eudiste-theme .boystown-project-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--e-line);
  background: #11171b;
}

.eudiste-theme .boystown-project-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.eudiste-theme .boystown-project-grid article > div {
  padding: 20px;
}

.eudiste-theme .boystown-project-grid h3 {
  margin: 0 0 10px;
  color: var(--e-gold);
  font-family: var(--e-ui-font);
  font-size: 1.05rem;
  line-height: 1.4;
}

.eudiste-theme .boystown-project-grid p {
  margin: 0;
  color: var(--e-muted);
}

.eudiste-theme .boystown-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--e-line);
}

.eudiste-theme .boystown-contact address {
  margin: 18px 0;
  color: var(--e-muted);
  font-style: normal;
  line-height: 1.7;
}

.eudiste-theme .boystown-contact a:not(.boystown-map-link) {
  color: var(--e-gold);
}

.eudiste-theme .boystown-map-link {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--e-line);
  background: radial-gradient(circle at 70% 35%, rgba(198, 154, 88, .22), transparent 34%), linear-gradient(135deg, #1a242a, #101619);
}

.eudiste-theme .boystown-map-link span {
  color: var(--e-gold);
  font-size: 2rem;
}

.eudiste-theme .boystown-map-link strong {
  font-family: var(--e-title-font);
  font-size: 1.7rem;
}

.eudiste-theme .boystown-map-link small {
  color: var(--e-muted);
}

.eudiste-theme .boystown-map-link b {
  margin-top: 16px;
  color: var(--e-gold);
  font-size: .82rem;
}

@media (max-width: 700px) {
  .eudiste-theme .boystown-history,
  .eudiste-theme .boystown-feeding,
  .eudiste-theme .boystown-contact { grid-template-columns: 1fr; gap: 24px; }
  .eudiste-theme .boystown-history-photo img { max-height: 380px; }
  .eudiste-theme .boystown-project-grid { grid-template-columns: 1fr; }
  .eudiste-theme .boystown-objectives { margin-top: 38px; }
  .eudiste-theme .boystown-objectives li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding-bottom: 26px; }
  .eudiste-theme .boystown-objectives li::before { width: 36px; height: 36px; }
  .eudiste-theme .boystown-objectives li:not(:last-child)::after { top: 36px; left: 17px; }
  .eudiste-theme .boystown-objectives li h3 { font-size: 1rem; }
  .eudiste-theme .boystown-opening {
    min-height: 560px;
    background-image:
      linear-gradient(90deg, rgba(8, 13, 16, .82), rgba(8, 13, 16, .42)),
      linear-gradient(0deg, rgba(8, 13, 16, .58), rgba(8, 13, 16, .08)),
      url("assets/boystown/groupe-boys-town.jpg");
    background-position: 54% center;
  }
}
