/* LOOKOFFICE inner-page photo heroes
 * Prepared 24/11/2026, Asia/Saigon. Do not enqueue on staging/live until authorised.
 *
 * Contrast (WCAG 2.1 AA, normal text ≥ 4.5:1; large title ≥ 3:1, we target 4.5:1 anyway):
 *   Title/lead colour is #F6F4F1.
 *   The scrim is linear-gradient(..., rgba(20,8,6,0.72) at the text band).
 *   Worst case (photo is pure white under a 0.72 scrim of rgb(20,8,6)):
 *     blended ≈ rgb(86,77,76). Contrast of #F6F4F1 vs #564D4C is about 7.3:1.
 *   On a mid-tone photograph the ratio is higher. Credit line uses the same
 *     ink at 0.9 over the darkest end of the scrim.
 *
 * CLS: the hero box has an explicit aspect-ratio (3:2 mobile, 3:1 from 768px).
 * The <img> also carries width/height matching those intrinsic sizes.
 */

.lo-hero.lo-inner-hero--photo{
  position:relative;
  max-width:none !important;
  width:100%;
  margin:0 0 var(--space-7, 2rem);
  padding:0;
  background:#1A120F;
  overflow:hidden;
  aspect-ratio:768 / 512;
}
@media (min-width:768px){
  .lo-hero.lo-inner-hero--photo{ aspect-ratio:1920 / 640; }
}

.lo-inner-hero__media{
  position:absolute;
  inset:0;
  margin:0;
  padding:0;
  line-height:0;
  z-index:0;
}
.lo-inner-hero__media picture,
.lo-inner-hero__img{
  display:block;
  width:100%;
  height:100%;
}
body.lookoffice-ready .lo-hero.lo-inner-hero--photo .lo-inner-hero__img,
.lo-hero.lo-inner-hero--photo .lo-inner-hero__img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  min-height:0 !important;
  object-fit:cover !important;
  object-position:center center !important;
}

/* Dark overlay — text sits in the lower/left reading band. */
.lo-inner-hero__scrim{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      180deg,
      rgba(20,8,6,0.18) 0%,
      rgba(20,8,6,0.42) 42%,
      rgba(20,8,6,0.72) 100%
    );
}

/* Existing typographic copy stays a child of .lo-hero; lift it above the photo. */
.lo-hero.lo-inner-hero--photo .lo-hero-inner,
.lo-hero.lo-inner-hero--photo .lo-hero-frame,
.lo-hero.lo-inner-hero--photo > :not(.lo-inner-hero__media):not(.lo-inner-hero__credit){
  position:relative;
  z-index:1;
}
.lo-hero.lo-inner-hero--photo{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.lo-hero.lo-inner-hero--photo .lo-hero-inner,
.lo-hero.lo-inner-hero--photo > h1,
.lo-hero.lo-inner-hero--photo > .lo-hero-sub,
.lo-hero.lo-inner-hero--photo > .lo-lead,
.lo-hero.lo-inner-hero--photo > .kicker,
.lo-hero.lo-inner-hero--photo > .lo-eyebrow{
  max-width:1120px;
  width:100%;
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
  box-sizing:border-box;
}

.lo-hero.lo-inner-hero--photo h1,
.lo-hero.lo-inner-hero--photo .lo-hero-sub,
.lo-hero.lo-inner-hero--photo .lo-tagline,
.lo-hero.lo-inner-hero--photo .lo-lead,
.lo-hero.lo-inner-hero--photo .kicker,
.lo-hero.lo-inner-hero--photo .lo-eyebrow,
.lo-hero.lo-inner-hero--photo p,
.lo-hero.lo-inner-hero--photo a{
  color:#F6F4F1;
}
.lo-hero.lo-inner-hero--photo .kicker,
.lo-hero.lo-inner-hero--photo .lo-eyebrow{
  color:#F6F4F1;
  opacity:.92;
}
/* Links in the hero copy must stay readable on the scrim (not brand red on dark). */
.lo-hero.lo-inner-hero--photo a{ text-decoration:underline; text-underline-offset:2px; }

.lo-inner-hero__credit{
  position:absolute;
  right:12px;
  bottom:8px;
  z-index:2;
  margin:0;
  max-width:min(70%, 36rem);
  text-align:right;
  font-family:inherit;
  font-size:11px;
  line-height:1.35;
  letter-spacing:.01em;
  color:#F6F4F1;
  opacity:.9;
}
.lo-inner-hero__credit a{
  color:#F6F4F1 !important;
  text-decoration:none;
}
.lo-inner-hero__credit a:hover,
.lo-inner-hero__credit a:focus{
  text-decoration:underline;
  text-underline-offset:2px;
}

/* When the page had no .lo-hero copy block, the banner is media-only. */
.lo-hero.lo-inner-hero--media-only{ margin-bottom:var(--space-7, 2rem); }

/* Typographic fallback (no photo attached): keep the paper hero, add a quiet brand rule.
   Existing typographic CSS in lookoffice-staging.css already sets paper + ink.
   This only reinforces contrast and does not invent a building. */
body.lo-has-inner-type-hero .page-content-wrap > .lo-hero:not(.lo-inner-hero--photo){
  background:#F6F4F1;
  border-left:4px solid #800A00;
  padding:32px 16px;
}
body.lo-has-inner-type-hero .page-content-wrap > .lo-hero:not(.lo-inner-hero--photo) h1,
body.lo-has-inner-type-hero .page-content-wrap > .lo-hero:not(.lo-inner-hero--photo) .lo-lead{
  color:#1A1A1A;
}
/* #1A1A1A on #F6F4F1 is well above 4.5:1 (≈ 15:1). */
