/* Full-section running photography across the public site. */
body.ir-site main#mainContent > section.photo-section {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
}

body.ir-site main#mainContent > section.photo-section > .section-photo {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  background-image: linear-gradient(110deg, rgba(248, 250, 249, .84) 0%, rgba(248, 250, 249, .78) 52%, rgba(248, 250, 249, .68) 100%), var(--page-background-photo) !important;
  background-position: center, center 42% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Re-enable photo layers disabled by an older site-wide styling rule. */
body.ir-site main#mainContent > section.photo-section:not(.closing) > .section-photo {
  display: block !important;
}

body.ir-site main#mainContent > section.photo-section > :not(.section-photo) {
  position: relative;
  z-index: 1;
}

body.ir-site main#mainContent > #story { --page-background-photo: url("assets/running/run-04.jpg"); }
body.ir-site main#mainContent > #sponsors { --page-background-photo: url("assets/running/run-20.jpg"); }
body.ir-site main#mainContent > #contests { --page-background-photo: url("assets/running/run-07.jpg"); }
body.ir-site main#mainContent > #runner-hub { --page-background-photo: url("assets/running/run-12.jpg"); }
body.ir-site main#mainContent > #schedule { --page-background-photo: url("assets/running/run-15.jpg"); }
body.ir-site main#mainContent > #updates { --page-background-photo: url("assets/running/run-08.jpg"); }
body.ir-site main#mainContent > #register { --page-background-photo: url("assets/running/run-16.jpg"); }
body.ir-site main#mainContent > #faq { --page-background-photo: url("assets/running/run-17.jpg"); }
body.ir-site main#mainContent > section.closing { --page-background-photo: url("assets/running/run-05.jpg"); }

body.ir-site main#mainContent > :is(#event-calendar, #race-journey, #runner-perks) {
  background-size: cover !important;
  background-position: center, center 42% !important;
  background-repeat: no-repeat !important;
}
body.ir-site main#mainContent > #event-calendar {
  background-image: linear-gradient(110deg, rgba(248, 250, 249, .86), rgba(248, 250, 249, .76)), url("assets/running/run-06.jpg") !important;
}
body.ir-site main#mainContent > #race-journey {
  background-image: linear-gradient(110deg, rgba(248, 250, 249, .88), rgba(248, 250, 249, .76)), url("assets/running/run-09.jpg") !important;
}
body.ir-site main#mainContent > #runner-perks {
  background-image: linear-gradient(110deg, rgba(248, 250, 249, .86), rgba(248, 250, 249, .76)), url("assets/running/run-13.jpg") !important;
}

body.ir-site main#mainContent > section.closing.photo-section > .section-photo {
  background-image: linear-gradient(110deg, rgba(17, 48, 43, .86), rgba(17, 48, 43, .70)), var(--page-background-photo) !important;
  background-position: center, center 42% !important;
}
body.ir-site main#mainContent > section.closing.photo-section :is(h2, p, .eyebrow, .section-label) {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28) !important;
}

body.ir-site footer.site-footer {
  background-color: #143a35 !important;
  background-image: linear-gradient(rgba(17, 48, 43, .88), rgba(17, 48, 43, .88)), url("assets/running/run-11.jpg") !important;
  background-position: center, center 42% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Give the separate public prize page the same photo-led treatment. */
body.prize-page { background: #edf3f0 url("assets/running/run-04.jpg") center 40% / cover fixed !important; }
.prize-main { background: transparent !important; }
.prize-hero {
  background: linear-gradient(110deg, rgba(12, 47, 43, .89), rgba(16, 62, 56, .76)), url("assets/running/run-11.jpg") center 40% / cover no-repeat !important;
}
.prize-stats, .prize-recognition { background: rgba(248, 250, 249, .84) !important; }
.prize-contests { background: transparent !important; }
.prize-page-cta { box-shadow: 0 18px 45px rgba(18, 59, 55, .14); }
.prize-footer { background: rgba(255, 255, 255, .94) !important; }

@media (max-width: 680px) {
  body.ir-site main#mainContent > section.photo-section > .section-photo {
    background-image: linear-gradient(180deg, rgba(248, 250, 249, .84), rgba(248, 250, 249, .76)), var(--page-background-photo) !important;
    background-position: center, center 40% !important;
  }
  body.ir-site main#mainContent > :is(#event-calendar, #race-journey, #runner-perks) {
    background-position: center, center 38% !important;
  }
  body.ir-site main#mainContent > section.closing.photo-section > .section-photo {
    background-image: linear-gradient(180deg, rgba(17, 48, 43, .84), rgba(17, 48, 43, .68)), var(--page-background-photo) !important;
  }
  body.prize-page { background-attachment: scroll !important; }
}
