/* V19 — retains V18 alternate upload when the available opening frame is not panoramic.
   All desktop/menu/footer/gallery styling remains in the existing shared styles.
   Native aspect ratio is read from Vimeo. 16:9 is only the pre-metadata fallback. */
#home.hero--test {
  position:relative;
  --bm-v18-panorama-height:clamp(360px,41.666667vw,700px);
  --bm-v18-min-panorama-ratio:2.2;
  --bm-v18-original-ratio:1.777777778;
}
#home.hero--test .bm-v18-ratio-probe {
  position:absolute!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:var(--bm-test-viewport,100vw)!important;
  height:var(--bm-v18-panorama-height)!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  contain:strict;
  overflow:hidden;
}
@media(max-width:720px) {
  #home.hero--test { --bm-v18-panorama-height:clamp(320px,66vw,440px); }
}
/* Keep the full-bleed width, but let the original film set its own height.
   No CSS enlargement or cover crop is applied to this variant. */
#home.hero--test.is-native-preview:not(.is-full-showreel) .bm-test-panorama {
  height:auto!important;
  min-height:0!important;
  aspect-ratio:var(--bm-v18-original-ratio,1.777777778)!important;
}
#home.hero--test.is-native-preview:not(.is-full-showreel) .bm-test-panorama .bm-v11-video iframe {
  inset:0!important;
  width:100%!important;
  height:100%!important;
  transform:none!important;
}

/* French panoramic overlay remains in the low position validated in V18.
   These offsets intentionally never apply to facts in normal document flow. */
html[lang^="fr"] #home.hero--test:not(.is-full-showreel):not(.is-native-preview) .bm-test-overlay {
  bottom:8px!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
}
@media(max-width:720px) {
  html[lang^="fr"] #home.hero--test:not(.is-full-showreel):not(.is-native-preview) .bm-test-overlay {
    bottom:6px!important;
  }
}

/* V19 — one set of facts, underneath whenever the native/full frame is shown.
   The existing toolbar (profession, full-film link, sound and pause) keeps its
   place directly below the picture. Facts follow it, before the signature. */
#home.hero--test.has-facts-below .bm-test-overlay {
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:1000px!important;
  margin:18px auto 0!important;
  padding:0!important;
  color:var(--ink)!important;
  text-shadow:none!important;
  pointer-events:auto;
}
#home.hero--test.has-facts-below .bm-test-stats li {
  color:var(--ink)!important;
}
#home.hero--test.has-facts-below .bm-v11-award-detail {
  color:inherit!important;
}
@media(max-width:720px) {
  #home.hero--test.has-facts-below .bm-test-overlay {
    margin-top:14px!important;
  }
  /* Preserve the V15 row-major order and readable type size (13.5px).
     Narrower than 360px, site-v16.css still applies the validated 13px size. */
  #home.hero--test.has-facts-below .bm-test-stats {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
  }
}
