/* R3.22, 2 November 2026: Richard's portrait-phone revision supersedes the
   earlier below-text mobile treatment. The supplied mobile originals remain
   in the picture sources. Wide/landscape layouts and print are unchanged. */
@media screen and (max-width: 48rem) and (orientation: portrait) {
  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    --oc-portrait-wash: 246, 246, 246;
  }

  /* Remove the image from the document flow: its height follows the complete
     introduction, including enlarged text, rather than adding a photo strip. */
  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait > .hero-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-height: none !important;
    margin: 0;
    aspect-ratio: auto;
    pointer-events: none;
  }

  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait > .hero-image picture,
  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait > .hero-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: cover !important;
    object-position: center;
  }

  /* This wash sits above both the fallback image and the playing start film.
     Its minimum opacity also keeps dark body text legible over dark photos. */
  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait > .hero-image::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
      rgba(var(--oc-portrait-wash), .94),
      rgba(var(--oc-portrait-wash), .86));
    pointer-events: none;
  }

  body :is(#P001, #P010, #P060, #P070, #P120, #P140) :is(.page-hero.oc-r317-hero, .home-hero.oc-susen-film-fallback.oc-r321-startfilm).oc-r322-portrait > .hero-grid {
    position: relative;
    z-index: 2;
    min-height: 0 !important;
    padding-block: 2rem !important;
  }

  /* The complaints introduction retains Susen's blue field and white type. */
  body #P010 .page-hero.oc-r317-hero.oc-r322-portrait {
    --oc-portrait-wash: 36, 57, 73;
  }

  body #P001 .home-hero.oc-susen-film-fallback.oc-r321-startfilm.oc-r322-portrait .oc-r321-film-video {
    object-fit: cover;
    object-position: center;
  }

  /* Keep the pause/start control in the text flow, without covering copy. */
  body #P001 .home-hero.oc-susen-film-fallback.oc-r321-startfilm.oc-r322-portrait .oc-r321-film-controls {
    position: relative;
    z-index: 3;
    top: auto;
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 1rem 1.5rem auto;
  }
}
