/* Eli Hanover — pass 3, responsive images and shared two-theme compatibility. */
/* The homepage features a portrait, not a cropped decorative background. */
.documentary-site .story-art-portrait{min-width:0;max-width:100%;overflow:visible}
.documentary-site .story-art-portrait > img.eth-art-photo{display:block!important;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:min(75svh,760px)!important;object-fit:contain!important;object-position:center!important;filter:none!important}
/* Hide legacy ornaments when the actual documentary image is available. */
.documentary-site .story-art:has(> img.eth-art-photo) > :is(.portrait-initials,.asset-note,.skyline,.city-type,.boxing-ropes,.boxing-type,.photo-stack){display:none!important}
/* No fixed canvas height or cover cropping for documentary hero images. */
@media(max-width:760px){
 .documentary-site .story-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 .documentary-site .story-layout > :is(.story-copy,.story-art){grid-column:1!important;min-width:0!important;width:100%!important}
 .documentary-site .story-layout .story-number{grid-column:1!important}
 .documentary-site .story-art > img.eth-art-photo{display:block!important;position:relative!important;inset:auto!important;max-width:100%!important;width:100%!important;height:auto!important;max-height:70svh!important;object-fit:contain!important;object-position:center!important}
 .documentary-site .story-art{min-width:0!important;height:auto!important;min-height:0!important;max-width:100%!important;overflow:hidden!important}
}
/* Restore the intended Chapter 3 reading width without affecting homepage grids. */
body:not(.documentary-site) .content .story-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 245px!important;gap:clamp(18px,3vw,48px)!important;align-items:start!important;width:100%!important}
body:not(.documentary-site) .content .story-layout > .story-body{width:100%!important;max-width:74ch!important;min-width:0!important;grid-column:1!important}
body:not(.documentary-site) .content .story-layout > .story-side{width:100%!important;min-width:0!important;grid-column:2!important;position:sticky;top:100px}
@media(max-width:850px){body:not(.documentary-site) .content .story-layout{display:block!important}body:not(.documentary-site) .content .story-layout>.story-side{position:static!important;margin-top:28px}}
/* Consistent uncropped archival images on media, boxing, family and chapter exhibits. */
#photo-grid .photo-card img,.fp-grid .fp-tile img,.eth-visual-media img,.eth-chapter-gallery img,.eh-replacement-figure img{max-width:100%!important;object-fit:contain!important;object-position:center!important}
#photo-grid .photo-card img{background:#e9e0d0}
@media(max-width:550px){#photo-grid .photo-card img,.fp-grid .fp-tile img{height:auto!important;max-height:none!important}}
/* Shared media themes: pair foreground and background explicitly; do not recolor iframe contents. */
html[data-eh-theme="dark"] :is(.eh-media-page,.fp-gallery-section,.fp-next,.collection){background:var(--eh-page,#211f1c)!important;color:var(--eh-ink,#f1e9da)!important}
html[data-eh-theme="dark"] :is(.media-card,.photo-card,.fp-tile,.fp-links a,.eh-clip,.eh-video-card,.eh-curated-card,.curated-card){background:var(--eh-paper,#302c27)!important;color:var(--eh-ink,#f1e9da)!important;border-color:var(--eh-line,#64594a)!important}
html[data-eh-theme="dark"] :is(.fp-heading,.fp-heading h2,.fp-next h2,.heading h2,.media-card h3,.photo-card h3,.fp-tile-title,.eh-clip h3){color:var(--eh-ink,#f1e9da)!important}
html[data-eh-theme="dark"] :is(.fp-intro,.fp-count,.heading>p:last-child,.media-card p,.photo-card p,.fp-tile-description){color:var(--eh-muted,#c3b9a9)!important}
html[data-eh-theme="dark"] :is(.fp-controls input,.fp-dialog,.fp-modal-meta){background:var(--eh-paper,#302c27)!important;color:var(--eh-ink,#f1e9da)!important;border-color:var(--eh-line,#64594a)!important}
html[data-eh-theme="dark"] :is(.fp-modal-meta p,.fp-modal-actions span){color:var(--eh-muted,#c3b9a9)!important}
html[data-eh-theme="dark"] .eh-media-page .menu{background:var(--eh-paper,#302c27)!important;border-color:var(--eh-line,#64594a)!important}
html[data-eh-theme="dark"] .eh-media-page .menu a{color:var(--eh-ink,#f1e9da)!important;border-color:var(--eh-line,#64594a)!important}
html[data-eh-theme="dark"] .eh-media-page .menu a:is(:hover,:focus-visible){background:#453b30!important;color:#fff9ee!important}
/* Home copy must be legible on its deliberately dark cinematic panels. */
html[data-eh-theme="dark"] .documentary-site .story-copy > p:not(.section-kicker){color:#d9cbbb!important}
html[data-eh-theme="dark"] .documentary-site .story-copy > .story-standfirst{color:#e1c88a!important}
@media(prefers-reduced-motion:reduce){.fp-tile,.media-card,.photo-card{transition:none!important}}


/* ==========================================================
   ELI HANOVER — HOMEPAGE LIGHT SECTION CONTRAST
   Dark theme only | Production correction
   ========================================================== */

/* The timeline retains its cream background */
html[data-eh-theme="dark"] .time-interlude,
html[data-eh-theme="dark"] .time-interlude h2,
html[data-eh-theme="dark"] .time-interlude h3,
html[data-eh-theme="dark"] .time-interlude p,
html[data-eh-theme="dark"] .time-interlude li {
    color: #34302a !important;
}

/* Family section also retains its cream background */
html[data-eh-theme="dark"] .story.story-family,
html[data-eh-theme="dark"] .story.story-family h1,
html[data-eh-theme="dark"] .story.story-family h2,
html[data-eh-theme="dark"] .story.story-family h3,
html[data-eh-theme="dark"] .story.story-family p {
    color: #34302a !important;
}

/* Preserve gold accents on cream surfaces */
html[data-eh-theme="dark"] .time-interlude .eyebrow,
html[data-eh-theme="dark"] .story.story-family .eyebrow,
html[data-eh-theme="dark"] .story.story-family a {
    color: #956a22 !important;
}

/* Ensure the timeline heading stays readable */
html[data-eh-theme="dark"] .time-interlude h2,
html[data-eh-theme="dark"] .story.story-family h2 {
    -webkit-text-fill-color: #34302a !important;
}


/* ==========================================================
   ELI HANOVER — HOMEPAGE STORY CONTRAST FIX
   Cream-background story sections in dark mode
   ========================================================== */

/* All light-background story panels */
html[data-eh-theme="dark"] .story.story-baltimore,
html[data-eh-theme="dark"] .story.story-family {
    color: #34302a !important;
}

/* Titles and introductory copy */
html[data-eh-theme="dark"] .story.story-baltimore :is(h1,h2,h3,p,em,blockquote),
html[data-eh-theme="dark"] .story.story-family :is(h1,h2,h3,p,em,blockquote) {
    color: #34302a !important;
    -webkit-text-fill-color: #34302a !important;
    opacity: 1 !important;
}

/* All nested text elements, including custom story subtitles */
html[data-eh-theme="dark"] .story.story-baltimore :is(.story-side,.story-copy,.story-lead,.story-description) *,
html[data-eh-theme="dark"] .story.story-family :is(.story-side,.story-copy,.story-lead,.story-description) * {
    color: #34302a !important;
    -webkit-text-fill-color: #34302a !important;
    opacity: 1 !important;
}

/* Preserve readable gold accents */
html[data-eh-theme="dark"] .story.story-baltimore :is(.eyebrow,a),
html[data-eh-theme="dark"] .story.story-family :is(.eyebrow,a) {
    color: #956a22 !important;
    -webkit-text-fill-color: #956a22 !important;
}

/* Preserve the introductory timeline heading */
html[data-eh-theme="dark"] .time-interlude h2 {
    color: #34302a !important;
    -webkit-text-fill-color: #34302a !important;
    opacity: 1 !important;
}
