/*
 * SHEFLINE Full-Bleed Hero primitive v01
 * Opt-in structural layer governed by design-system contract 019/017.
 * Page families own typography, height and art direction through local rules.
 */

[data-sf-full-bleed-hero="v01"] {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--sf-color-dark);
}

[data-sf-full-bleed-hero="v01"] > [data-sf-hero-layer="media"] {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  grid-area: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

[data-sf-full-bleed-hero="v01"] > [data-sf-hero-layer="grid"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

[data-sf-full-bleed-hero="v01"] [data-sf-hero-layer="media"] picture {
  display: block;
  width: 100%;
  height: 100%;
}

[data-sf-full-bleed-hero="v01"] [data-sf-hero-layer="media"] img {
  display: block;
  max-width: none;
}

@media (max-width: 1120px) {
  [data-sf-hero-responsive="stack-at-1120"] [data-sf-full-bleed-hero="v01"] {
    display: flex;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
  }

  [data-sf-hero-responsive="stack-at-1120"] [data-sf-full-bleed-hero="v01"] > [data-sf-hero-layer="grid"] {
    order: 1;
    height: auto;
  }

  [data-sf-hero-responsive="stack-at-1120"] [data-sf-full-bleed-hero="v01"] > [data-sf-hero-layer="media"] {
    position: relative;
    inset: auto;
    order: 2;
    height: auto;
  }
}