/* Background media is opt-in through the industry and regional manifests. */
html[data-home-theme] .page .page-hero--media,
.page-hero--media {
  display: grid;
  align-items: center;
  min-height: clamp(520px, 50vw, 680px);
  padding-block: clamp(150px, 13vw, 210px) clamp(52px, 5vw, 84px);
  background: #07131f;
}

.page-hero--media::before { display: none; }

.page-hero--media > .wrap {
  position: relative;
  z-index: 2;
}

.industry-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.industry-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 14, 25, .90), rgba(4, 14, 25, .80) 55%, rgba(4, 14, 25, .40));
}

.regional-hero-media::after {
  background: linear-gradient(90deg, rgba(4, 14, 25, .87), rgba(4, 14, 25, .77) 48%, rgba(4, 14, 25, .24));
}

.industry-hero-media picture,
.industry-hero-media img,
.industry-hero-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.industry-hero-media img,
.industry-hero-media video {
  object-fit: cover;
  object-position: 50% 50%;
}

.industry-hero-media[data-focus="left"] :is(img, video) { object-position: 20% 50%; }
.industry-hero-media[data-focus="right"] :is(img, video) { object-position: 80% 50%; }
.industry-hero-media video { opacity: 0; }
.industry-hero-media.has-video-frame video { opacity: 1; }

/* Keep the showroom customer clear of the Retail header copy. */
.retail-page .industry-hero-media picture {
  left: 34%;
  width: 66%;
}

.retail-page .industry-hero-media::after {
  background: linear-gradient(90deg, #07131f 0%, #07131f 31%, rgba(7, 19, 31, .93) 38%, rgba(7, 19, 31, .45) 51%, rgba(7, 19, 31, .08) 65%);
}

.retail-page .page-hero--media :is(h1, .lede, .hero-chips, .hero-actions) {
  max-width: min(540px, 44vw);
}

html[data-home-theme] .page .page-hero--media h1,
.page-hero--media h1 {
  color: #f5f9fd;
}

html[data-home-theme] .page .page-hero--media :is(.lede, .chip, .breadcrumbs ol, .breadcrumbs a),
.page-hero--media :is(.lede, .chip, .breadcrumbs ol, .breadcrumbs a) {
  color: #dae5ef;
}

html[data-home-theme] .page .page-hero--media :is(.breadcrumbs li + li, .hero-chips .chip:not(:first-child))::before {
  color: #dae5ef;
}

html[data-home-theme] .page .page-hero--media .breadcrumbs a:hover,
html[data-home-theme] .page .page-hero--media .breadcrumbs a:focus-visible {
  color: #fff;
}

.page-hero--media :is(.hero-chips, .hero-actions) { max-width: 660px; }

.industry-media-controls {
  display: flex;
  min-height: 44px;
  margin-top: 24px;
}

.industry-media-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a9bdce;
  border-radius: 4px;
  background: #102438;
  color: #f5f9fd;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.industry-media-toggle[hidden] { display: none; }
.industry-media-toggle:hover { background: #1b374e; }
.page-hero--media .industry-media-toggle:focus-visible {
  outline: 3px solid #94e3fa;
  outline-offset: 4px;
}

html[data-home-theme] .page .page-hero--media :is(a, button):focus-visible {
  outline-color: #94e3fa;
}

@media (max-width: 900px) {
  html[data-home-theme] .page .page-hero--media,
  .page-hero--media { min-height: 0; padding-block: 140px 56px; }
  .industry-hero-media::after { background: rgba(4, 14, 25, .80); }
  .regional-hero-media::after {
    background: linear-gradient(180deg, rgba(4, 14, 25, .80), rgba(4, 14, 25, .72) 58%, rgba(4, 14, 25, .57));
  }
  html[data-home-theme] .page .page-hero--regional { padding-block: 120px 44px; }
  html[data-home-theme] .page .page-hero--regional .lede { font-size: 16px; line-height: 1.7; }
  .industry-hero-media[data-mobile-focus="left"] :is(img, video) { object-position: 20% 50%; }
  .industry-hero-media[data-mobile-focus="center"] :is(img, video) { object-position: 50% 50%; }
  .industry-hero-media[data-mobile-focus="right"] :is(img, video) { object-position: 80% 50%; }

  html[data-home-theme] .retail-page .page .page-hero--media,
  .retail-page .page-hero--media {
    padding-top: clamp(390px, 85vw, 650px);
  }

  .retail-page .industry-hero-media picture {
    left: 0;
    width: 100%;
    height: clamp(440px, 100vw, 720px);
  }

  .retail-page .industry-hero-media::after {
    background: linear-gradient(180deg, rgba(7, 19, 31, .4) 0, rgba(7, 19, 31, .03) 140px, rgba(7, 19, 31, .05) 250px, #07131f clamp(400px, 90vw, 680px));
  }

  .retail-page .page-hero--media :is(h1, .lede, .hero-chips, .hero-actions) {
    max-width: none;
  }
}

@media print {
  .site-header--media,
  .industry-hero-media,
  .industry-media-controls { display: none; }

  html[data-home-theme] .retail-page .page .page-hero--media,
  html[data-home-theme] .page .page-hero--media,
  .page-hero--media {
    display: block;
    min-height: 0;
    background: #fff;
    color: #111;
    padding-block: 28px;
  }

  html[data-home-theme] .page .page-hero--media :is(h1, .lede, .chip, .breadcrumbs ol, .breadcrumbs a, .button, .button .icon),
  .page-hero--media :is(h1, .lede, .chip, .breadcrumbs ol, .breadcrumbs a, .button, .button .icon) {
    color: #111;
  }

  html[data-home-theme] .page .page-hero--media :is(.breadcrumbs li + li, .hero-chips .chip:not(:first-child))::before {
    color: #555;
  }

  html[data-home-theme] .page .page-hero--media .button,
  .page-hero--media .button {
    background: transparent;
    border-color: #555;
    box-shadow: none;
  }
}
