/* ILE Black Friday kinetic headline.
   Rendered by inc/bf-hero-title.php inside core/image blocks with the class ile-bf-hero.
   --ile-bf-w: headline width, % of wrapper width (unitless; font size derives from it)
   --ile-bf-y: vertical centre, % of wrapper height */
@font-face {
  font-family: 'ILE Montserrat VF';
  src: url('../fonts/montserrat/montserrat-Thin.woff2') format('woff2'); /* same variable file the theme already loads */
  font-weight: 100 900;
  font-display: swap;
}
.wp-block-image.ile-bf-hero:not(.aligncenter):not(.alignleft):not(.alignright) { position: relative; container-type: inline-size; }
.wp-block-image.ile-bf-hero > img { display: block; }
.ile-bf-title {
  position: absolute;
  left: 50%;
  top: var(--ile-bf-y, 51.5%);
  width: calc(var(--ile-bf-w, 42) * 1%);
  height: 1.4em;
  margin: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style;
  color: #fff;
  font-family: 'ILE Montserrat VF', Montserrat, sans-serif;
  font-weight: 800;
  font-size: calc(var(--ile-bf-w, 42) * .1172vw); /* fallback: full-bleed hero, no container units */
  font-size: calc(var(--ile-bf-w, 42) * .1172cqw);
  line-height: 1;
  letter-spacing: .05em;
  font-kerning: none; /* JS places glyphs by advance width; keeps no-JS render identical */
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Portrait mobile hero (.only-mobile, 1440x1987): wider line, slightly lower. */
.wp-block-image.ile-bf-hero.only-mobile .ile-bf-title { --ile-bf-w: 72; --ile-bf-y: 52%; }
.ile-bf-title__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* JS mode: the line is painted on a canvas centred on the title box (no CLS). */
.ile-bf-title__canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
