/* Full-width, page-specific photo backgrounds from published site content. */
body .hz-photo-background {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--hz-paper, #f5f7f5) !important;
  background-image: linear-gradient(90deg, rgba(226,237,232,.94), rgba(205,224,218,.86) 34%, rgba(141,183,178,.64) 57%, rgba(49,111,112,.34) 79%, rgba(24,69,73,.14)), var(--hz-page-photo) !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
}

body .hz-photo-background::before,
body .hz-photo-background::after {
  background: none !important;
}

body .hz-photo-background .hz-hero-background-column,
body .nd-article-header.hz-photo-background ~ .hz-hero-background-column {
  display: none !important;
}

body .hz-photo-background h1,
body .hz-photo-background h2,
body .hz-photo-background p,
body .hz-photo-background .eyebrow,
body .hz-photo-background .video-eyebrow,
body .hz-photo-background .contact-eyebrow,
body .hz-photo-background .pd-eyebrow,
body .hz-photo-background .research-section-eyebrow {
  color: var(--hz-ink, #18363b) !important;
  text-shadow: none !important;
}

body .hz-photo-background h1 em,
body .hz-photo-background h2 em {
  color: var(--hz-accent, #236b6d) !important;
}

body .hz-photo-background h1,
body .hz-photo-background h2 {
  text-wrap: balance;
}

body .hz-photo-background .hero-bottom-row a {
  color: #f7fbf9 !important;
  text-shadow: 0 1px 2px rgba(13,47,49,.72);
}

body .hz-photo-background a[href*="#catalog-listing"] {
  color: #f7fbf9 !important;
  text-shadow: 0 1px 2px rgba(13,47,49,.72);
}

body .hero-section.hz-photo-background .hero-copy > h1 {
  grid-column: 1 / -1;
  max-width: 760px;
}

body .hz-photo-background .btn-ghost-light,
body .hz-photo-background .pd-outline-btn {
  color: var(--hz-ink, #18363b) !important;
  border-color: var(--hz-line, #d7e2df) !important;
  background: rgba(255,255,255,.9) !important;
}

body .hz-photo-background .hero-container,
body .hz-photo-background .about-hero-inner,
body .hz-photo-background .directory-hero-inner,
body .hz-photo-background .catalog-hero-inner,
body .hz-photo-background .expo-hero-inner,
body .hz-photo-background .newsroom-hero-inner,
body .hz-photo-background .cp-hero-container,
body .hz-photo-background .pd-hero-shell,
body .hz-photo-background .ed-hero-shell {
  position: relative;
  z-index: 1;
}

body .about-hero.hz-photo-background .row,
body .directory-hero.hz-photo-background .row,
body .catalog-hero.hz-photo-background .row,
body .expo-hero.hz-photo-background .row,
body .newsroom-hero.hz-photo-background .row,
body .contact-page-hero.hz-photo-background .row,
body .cp-hero.hz-photo-background .row,
body .pd-hero.hz-photo-background .row,
body .ed-hero.hz-photo-background .row,
body .video-hero.hz-photo-background .video-hero-grid {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body .about-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .directory-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .catalog-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .expo-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .newsroom-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .contact-page-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .cp-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .pd-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column),
body .ed-hero.hz-photo-background .row > [class*="col-"]:not(.hz-hero-background-column) {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
}

body .hz-photo-background .hero-copy,
body .hz-photo-background .about-hero-copy,
body .hz-photo-background .catalog-hero-copy,
body .hz-photo-background .newsroom-hero-copy,
body .hz-photo-background .video-hero-copy,
body .hz-photo-background .contact-hero-copy,
body .hz-photo-background .cp-hero-copy,
body .hz-photo-background .pd-hero-copy,
body .hz-photo-background .ed-hero-copy {
  max-width: 760px !important;
}

body .hz-photo-background.research-library-heading {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 320px;
  align-items: center;
  padding: 56px clamp(24px, 6vw, 96px) !important;
  background-color: transparent !important;
}

body .hz-photo-background.research-library-heading > div {
  max-width: 760px;
}

body .hz-photo-background.nd-article-header {
  margin: 0 0 28px;
  padding: clamp(36px, 6vw, 78px) !important;
  background-position: center 44% !important;
}

body .hz-photo-background.nd-article-header .nd-category,
body .hz-photo-background.nd-article-header .nd-author-row,
body .hz-photo-background.nd-article-header .nd-kicker {
  color: var(--hz-ink, #18363b) !important;
}

body .hz-photo-background.nd-article-header h1 {
  max-width: 920px;
}

@media (max-width: 991.98px) {
  body .hz-photo-background {
    background-image: linear-gradient(180deg, rgba(226,237,232,.95), rgba(205,224,218,.90) 30%, rgba(141,183,178,.72) 52%, rgba(49,111,112,.48) 76%, rgba(24,69,73,.24) 100%), var(--hz-page-photo) !important;
    background-position: center !important;
  }

  body .hz-photo-background.research-library-heading {
    min-height: 280px;
    padding: 36px 24px !important;
  }
}

/* Keep the near-4:3 photos from being scaled to the width of a panoramic banner. */
body :is(.video-hero, .expo-hero).hz-photo-background {
  display: grid;
  align-content: center;
  min-height: clamp(500px, 42vw, 620px);
  padding: 132px 0 54px !important;
  background-color: #dce9e5 !important;
  background-image: linear-gradient(90deg, #dce9e5 0 40%, rgba(220,233,229,.94) 45%, rgba(220,233,229,.72) 52%, rgba(177,207,201,.24) 65%, transparent 82%), var(--hz-page-photo) !important;
  background-size: 100% 100%, var(--hz-banner-photo-width) auto !important;
  background-position: center, right var(--hz-banner-photo-y) !important;
}

body .video-hero.hz-photo-background {
  --hz-banner-photo-width: min(66%, 1100px);
  --hz-banner-photo-y: 20%;
}

body .expo-hero.hz-photo-background {
  --hz-banner-photo-width: min(74%, 1280px);
  --hz-banner-photo-y: 54%;
}

@media (max-width: 991.98px) {
  body :is(.video-hero, .expo-hero).hz-photo-background {
    align-content: start;
    min-height: clamp(520px, 120vw, 640px);
    padding: 102px 0 28px !important;
    background-image: linear-gradient(180deg, #dce9e5 0 45%, rgba(220,233,229,.94) 52%, rgba(220,233,229,.68) 61%, rgba(177,207,201,.18) 77%, transparent 90%), var(--hz-page-photo) !important;
    background-size: 100% 100%, 100% auto !important;
    background-position: center, center bottom !important;
  }

  body :is(.video-hero, .expo-hero).hz-photo-background h1 {
    font-size: 28px !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
  }
}
