/* ============================================================
   H/3 FOUNDATION — iPhone OVERRIDE LAYER
   Loaded after inline styles and ipad.css.
   Every rule lives inside @media (max-width: 767px) — zero
   overlap with ipad.css (≥768px) or desktop. Shared components
   only: header/nav, typography, footer, homepage flow, and the
   shared card grids. No per-page redesigns.
   ============================================================ */

@media (max-width: 767px) {

  /* ---------- 1. FOUNDATION ---------- */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  img, video, iframe {
    display: block;
    max-width: 100%;
  }
  img { height: auto; }

  /* Content pages compute their header offset from this var —
     shrinking it here keeps content clear of the fixed header
     at the new mobile height on every page at once. */
  :root { --header-height: 72px; }

  /* ---------- 2. SHARED HEADER — logo left, hamburger right ---------- */
  .site-header {
    min-height: 72px;
    height: 72px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .corner-logo { width: min(60vw, 260px); height: auto; }
  .corner-logo img { width: 100%; height: auto; transform: none; }

  /* Home-page header variant */
  .site-header-inner {
    width: 100%;
    min-height: 72px;
    padding: 0 18px;
  }
  .site-logo img { width: min(62vw, 280px); transform: none; }

  /* Hamburger — 44×44 touch target. !important required only to
     beat the home pages' inline `display: none !important`. */
  .tablet-menu-button {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px;
    cursor: pointer;
  }
  .tablet-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white, #fff);
  }

  /* Nav hidden until the menu opens */
  nav.primary { display: none; }
  .site-header.tablet-nav-open nav.primary {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0, 20, 50, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 22px 22px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    z-index: 999;
    margin: 0;
  }
  .site-header.tablet-nav-open nav.primary > ul {
    display: block;
  }
  .site-header.tablet-nav-open nav.primary > ul > li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  .site-header.tablet-nav-open nav.primary > ul > li > a {
    display: block;
    min-height: 44px;
    padding: 13px 0;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }
  /* Submenus: expanded and static — no hover on touch */
  .site-header.tablet-nav-open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    min-width: 0;
    padding: 0 0 10px 16px;
  }
  .site-header.tablet-nav-open .submenu a {
    display: block;
    padding: 9px 0;
    min-height: 40px;
    font-size: 13px;
  }

  /* ---------- 3. SHARED TYPOGRAPHY (Cinzel/Lora/editorial kept) ---------- */
  .page-hero { padding: 20px 20px 22px; }
  .page-hero-inner .eyebrow {
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.3;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  .page-hero-inner h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
    word-break: normal;
    margin-bottom: 16px;
  }
  .page-hero-inner .tagline {
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.45;
    max-width: 100%;
    margin-bottom: 18px;
  }

  /* ---------- 4. SHARED FOOTER — follows content, never fixed ---------- */
  .site-footer {
    position: static;
    height: auto;
    margin-top: 36px;
    padding: 18px 20px 24px;
    text-align: center;
  }
  .site-footer p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* ---------- 5. HOMEPAGE — natural scroll, no 10s intro wait ---------- */
  .intro-video, .brand-png, .intro-dim { display: none; }
  .site-header, .hero, .initiatives-row, .site-footer {
    opacity: 1;
    animation: none;
  }
  .stage {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .hero-headline {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.1;
  }
  .hero-sub {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.45;
    max-width: 100%;
  }
  .init-card h3 { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.25; }
  .init-card p  { font-size: 15px; line-height: 1.5; }

  /* ---------- 6. SHARED CARD SYSTEM (.project-grid: Direct Action
       + Media Projects) — one column, iPad placements neutralized ---------- */
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }
  .project-grid > * {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
  .project-card { width: 100%; max-width: 100%; height: auto; }
  .project-card .card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    overflow: hidden;
  }
  .project-card .card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* Approved focal points (Direct Action only — Media Projects has
     different cards at the same positions) */
  body.direct-action-page .project-card:nth-child(1) .card-photo img {
    object-position: center 18%;   /* BVI */
  }
  body.direct-action-page .project-card:nth-child(4) .card-photo img {
    object-position: center 16%;   /* Operation Ark */
  }
  .project-card h3 { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.25; }
  .project-card .card-blurb { font-size: 14px; line-height: 1.5; }

  /* Our Team: inline ≤1100px rule stacks 80px section padding on
     the header offset — tighten above the ABOUT eyebrow.
     Title-to-first-portrait gap: 30px (was 50px intro margin). */
  .team-section { padding-top: 20px; }
  .team-intro   { margin-bottom: 30px; }
  .team-grid    { margin-top: 0; }

  /* Our Leadership: same stack. Title-to-first-portrait gap
     equalized at 30px — the inline mobile rule also puts 50px
     top padding on every .member, so the first one is zeroed
     (later members keep their separator rhythm). */
  .leadership-section { padding-top: 20px; }
  .leadership-intro   { margin-bottom: 30px; }
  .leadership-intro + .member { padding-top: 0; }

  /* ---------- 7. OTHER SHARED GRIDS — same one-column treatment ---------- */
  .news-grid, .partners-grid, .initiatives-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .team-grid > * {
    grid-column: auto;
    width: min(100%, 420px);
    justify-self: center;
  }
  .team-member { width: 100%; }

  /* ---------- 8. TOUCH TARGETS ---------- */
  .explore-link, .back-link {
    min-height: 44px;
    max-width: 100%;
    padding: 11px 18px;
    white-space: normal;
    align-items: center;
  }
}


/* ============================================================
   LANDSCAPE PHONES — short viewport + touch, not width alone.
   768–932px wide × ≤430px tall, landscape, coarse pointer.
   Placed after ipad.css (load order) and after all portrait
   rules so it wins only on landscape phones. iPad sizes
   (768×1024, 820×1180, 1180×820, 1194×834) can never match:
   their heights all exceed 430px.
   Self-contained: portrait iPhone rules (≤767px) do not reach
   this range, so the mobile header/nav is restated here.
   ============================================================ */
@media (min-width: 768px) and (max-width: 932px)
       and (max-height: 430px)
       and (orientation: landscape)
       and (pointer: coarse) {

  /* ---- Mobile header (64px — short viewport) + hamburger nav ---- */
  :root { --header-height: 64px; }
  .site-header {
    min-height: 64px;
    height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .corner-logo { width: min(34vw, 250px); height: auto; }
  .corner-logo img { width: 100%; height: auto; transform: none; }
  .site-header-inner { width: 100%; min-height: 64px; padding: 0 18px; }
  .site-logo img { width: min(36vw, 260px); transform: none; }

  .tablet-menu-button {
    display: inline-flex !important;   /* beats home's inline hide */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px;
    cursor: pointer;
  }
  .tablet-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white, #fff);
  }

  nav.primary { display: none; }
  .site-header.tablet-nav-open nav.primary {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 20, 50, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 22px 22px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    z-index: 999;
    margin: 0;
  }
  .site-header.tablet-nav-open nav.primary > ul { display: block; }
  .site-header.tablet-nav-open nav.primary > ul > li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  .site-header.tablet-nav-open nav.primary > ul > li > a {
    display: block;
    min-height: 44px;
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }
  .site-header.tablet-nav-open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    min-width: 0;
    padding: 0 0 10px 16px;
  }
  .site-header.tablet-nav-open .submenu a {
    display: block;
    padding: 8px 0;
    min-height: 40px;
    font-size: 13px;
  }

  /* ---- Natural scroll; no fixed heights, no 100vh ---- */
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; }
  .stage { height: auto; min-height: 100svh; overflow: visible; }
  .intro-video, .brand-png, .intro-dim { display: none; }
  .site-header, .hero, .initiatives-row, .site-footer {
    opacity: 1;
    animation: none;
  }
  .site-footer { position: static; height: auto; }

  /* ---- One-column card layouts; iPad/desktop placements dead ---- */
  .project-grid,
  .news-grid,
  .partners-grid,
  .initiatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: none;
  }
  /* :nth-child(n) matches every card at (0,2,0) — ties the inline
     6-col span placements, and this file loads later, so it wins.
     No 3+2 Direct Action arrangement here. */
  .project-grid > *:nth-child(n) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
  .project-card { width: 100%; height: auto; min-height: 0; }
  .project-card .card-photo { height: auto; aspect-ratio: 16 / 8; }
  .project-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
  .project-card .card-blurb { font-size: 15px; line-height: 1.5; }

  /* Our Team: one centered portrait per row — no five-across */
  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .team-grid > *:nth-child(n) {
    grid-column: auto;
    width: min(100%, 420px);
    justify-self: center;
  }
  .team-member { width: 100%; }

  /* ---- Biography / image-and-text sections: stacked ---- */
  .bio-grid, .member-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 380px; margin: 0 auto; }
  .bio-text p, .member-text p.bio-para { font-size: 16px; line-height: 1.55; }
}


/* ============================================================
   HOMEPAGE — MODERN iPHONE PRO PORTRAIT (390–430 × ≥850).
   One-screen landing composition: static red-cat hero (no
   slideshow), compact hero text, three tight initiative cards,
   footer hidden. Scoped to body.home-page — interior pages at
   the same size keep the standard portrait layer above.
   Must remain after the ≤767px block so its overrides win.
   ============================================================ */
@media (min-width: 390px) and (max-width: 430px)
       and (min-height: 850px)
       and (orientation: portrait) {

  /* ---- Static red-cat hero — slideshow off, overlay kept ---- */
  body.home-page .slide {
    display: none;
    animation: none;
  }
  body.home-page .stage {
    background-image: url('./Photos/Home%20Page/1.%20Red%20Cat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
  }
  /* .stage-overlay (gradient) intentionally untouched */

  /* ---- Compact header — logo pulled toward the left edge ---- */
  body.home-page .site-header-inner {
    min-height: 64px;
    padding: 0 16px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  body.home-page .site-logo {
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    transform: translateX(-16px);   /* 12px farther left — visible
       logo aligns with the 20px headline/card edge (the PNG has
       ~6px baked-in transparent padding) */
  }
  body.home-page .site-logo img { width: min(58vw, 230px); }
  body.home-page .tablet-menu-button {
    width: 42px;
    height: 42px;
  }
  body.home-page .site-header.tablet-nav-open nav.primary {
    top: 64px;
    max-height: calc(100dvh - 64px);
  }

  /* ---- Hero text (header is absolute — top padding clears it).
     translateY nudges the text block down without affecting flow,
     so the approved card positions are pixel-identical. ---- */
  body.home-page .hero {
    padding: 76px 20px 0;
    margin: 0;
    transform: translateY(14px);
  }
  body.home-page .hero-headline {
    font-size: clamp(28px, 7.2vw, 34px);
    line-height: 1.02;
    margin-bottom: 10px;
    max-width: 300px;
  }
  body.home-page .hero-sub {
    font-size: clamp(16px, 4.3vw, 19px);
    line-height: 1.35;
    max-width: 320px;
    margin-top: 0;
    margin-bottom: 16px;
  }

  /* ---- Three compact initiative cards — breathing room below
     the tagline (28px on the wrapper, not on individual cards;
     normal flow, no position/top offsets) ---- */
  body.home-page .initiatives-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 20px 16px;
    margin-top: 28px;
  }
  body.home-page .initiatives-row .init-card {
    padding: 12px 14px 10px;
    min-height: 0;
  }
  body.home-page .initiatives-row .init-card h3 {
    font-size: clamp(15px, 4.7vw, 18px);
    line-height: 1.15;
    margin-bottom: 6px;
  }
  body.home-page .initiatives-row .init-card p {
    font-size: 13px;
    line-height: 1.32;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.home-page .initiatives-row .explore-link {
    min-height: 32px;
    padding: 6px 0;
    font-size: 13px;
  }

  /* ---- One screen: footer hidden on homepage only ---- */
  body.home-page .site-footer { display: none; }
}


/* ============================================================
   LEADERSHIP BIOGRAPHY PAGES — PHONE STACK ORDER.
   Scoped to body.bio-page (the five bio pages only). The Our
   Team page (.team-grid / .team-member) is NOT touched — its
   approved one-column card list comes from the shared layer.
   Direct flex stack on the shared .bio-grid (no display:
   contents): heading block above, then full-width portrait,
   then full-width biography text.
   ============================================================ */
@media (max-width: 767px) {

  /* Direct, predictable stack on the actual shared grid — no
     display:contents. Heading block (.bio-hero: eyebrow, name,
     role) stays above; then full-width portrait, then text. */
  body.bio-page .bio-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 22px;
  }
  body.bio-page .bio-photo {
    order: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: none;
    margin: 0;
    overflow: visible;
  }
  body.bio-page .bio-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
  body.bio-page .bio-text {
    order: 2;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
  }
  body.bio-page .bio-section { padding: 0 20px 12px; }
}


/* ============================================================
   OUR LEADERSHIP PAGE — PHONE FIX (body.leadership-page).
   Root cause of the side-by-side strip at 402×874: the page's
   inline ≤1100px rule sets grid-template-columns on `.member`
   (a plain wrapper) instead of `.member-grid` (the real grid),
   so the desktop 0.85fr/1.7fr columns and the stretched cover
   portrait survived to phone widths. This layer loads after the
   inline styles, so these direct rules win the cascade.
   ============================================================ */
@media (max-width: 767px) {

  body.leadership-page .member-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 22px;
  }
  body.leadership-page .member-photo {
    order: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: none;
    margin: 0;
    overflow: visible;
  }
  body.leadership-page .member-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
  /* Name and role live inside .member-text — they lead the
     full-width content block, per spec. */
  body.leadership-page .member-text {
    order: 2;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    flex: none;
  }
}


/* ============================================================
   DIRECT ACTION DETAIL PAGES — PHONE FIXES.
   Scoped to body.direct-action-detail-page (BVI, Frankie's
   Friends, NMWC, Operation ARK, SUU). Does not touch the
   Direct Action card grid (body.direct-action-page), Media
   Projects index, Our Team, iPad or desktop.
   Real selectors: synopsis = .page-hero-inner .tagline;
   layout = .story-grid / .bond-grid; editorial photos =
   .story-photo / .bond-photo (+ .photo-inner / .photo-frame).
   ============================================================ */
@media (max-width: 767px) {

  /* ---- 1. Italic synopsis wraps inside the viewport ---- */
  body.direct-action-detail-page .page-hero,
  body.direct-action-detail-page .page-hero-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  body.direct-action-detail-page .page-hero-inner .tagline {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  /* NMWC carries an inline style="white-space: nowrap" on an
     impact line — the one place !important is unavoidable */
  body.direct-action-detail-page .impact-detail {
    white-space: normal !important;
  }

  /* ---- 2. Editorial photos: natural aspect ratio, no stretch.
       (cover stays only on card thumbnails, which live on the
       grid page, not here) ---- */
  body.direct-action-detail-page .story-grid,
  body.direct-action-detail-page .bond-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }
  body.direct-action-detail-page .story-photo,
  body.direct-action-detail-page .bond-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  body.direct-action-detail-page .story-photo .photo-inner,
  body.direct-action-detail-page .photo-frame {
    height: auto;
    overflow: visible;
  }
  body.direct-action-detail-page .story-photo img,
  body.direct-action-detail-page .bond-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  /* ---- 3. Tighten space between header and page heading ---- */
  body.direct-action-detail-page .page-hero {
    padding-top: 18px;
    padding-bottom: 6px;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 0;
  }
  body.direct-action-detail-page .page-hero-inner h1 {
    margin-top: 0;
  }

  /* ---- 4. Tighten tagline→photo gap (was 40 + 26 + 50px) ---- */
  body.direct-action-detail-page .page-hero-inner .tagline {
    margin-bottom: 10px;
  }
  body.direct-action-detail-page .section {
    padding: 22px 20px;
  }
}


/* ============================================================
   MEDIA PROJECT DETAIL PAGES — PHONE FIXES.
   Scoped to body.media-detail-page (Toucan Nation, Trophy,
   Birds of a Feather, 25 Cats from Qatar). These pages use
   .film-hero (not .page-hero) so the shared phone typography
   never reached them. Sources of the reported bugs:
     - .film-hero-inner .tagline has desktop white-space:nowrap
       in a 1600px measure → runs off phone screens.
     - inline ≤1100px rule sets .film-hero padding 130px top /
       60px bottom → huge gaps above eyebrow and before photo.
   ============================================================ */
@media (max-width: 767px) {

  body.media-detail-page .film-hero {
    padding: 16px 20px 6px;
    min-height: 0;
  }
  body.media-detail-page .film-hero-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.media-detail-page .film-hero-inner .eyebrow {
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.3;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  body.media-detail-page .film-hero-inner h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
    word-break: normal;
    margin-bottom: 12px;
  }
  /* Italic synopsis: wraps naturally, full readable size */
  body.media-detail-page .film-hero-inner .tagline {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.45;
    text-align: center;
    margin: 0 0 12px;
  }
  /* Close the gap between the synopsis and the feature photo */
  body.media-detail-page .film-feature {
    padding: 8px 20px 40px;
  }

  /* Story sections: tighter mobile rhythm (inline rule is 60px) */
  body.media-detail-page .section {
    padding: 26px 20px;
  }
  body.media-detail-page .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }
  /* Photos: natural aspect ratio when stacked — the desktop
     height:100% + cover stretch-to-text pattern distorts here.
     Image shares the exact content width of the body text:
     full grid column, stretch, no centering caps. */
  body.media-detail-page .story-photo {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  body.media-detail-page .story-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  body.media-detail-page .story-content,
  body.media-detail-page .story-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
