#impactStory .photo-pair>img,#impactStory .photo-bare>img{object-position:center center}
#impactStory .photo-scrim{background:linear-gradient(0deg,#082017df,transparent 35%),linear-gradient(90deg,#04171399,transparent 70%)}
.island-photos{padding:72px 8% 68px;background:#12281f;color:#edf1dc}
.island-photo-heading{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:end;margin-bottom:36px}
.island-photo-heading .eyebrow{color:#c5d992;font-size:12px;margin-bottom:20px}
.island-photo-heading h3{font-size:clamp(36px,4.5vw,62px);line-height:1.04}
.island-photo-heading h3 em{color:#c5d992}
.island-photo-heading>p{font-size:17px;line-height:1.7;max-width:540px;color:#d5dfc9}
.island-photo-heading small{display:block;font-size:13px;line-height:1.6;color:#afc2a5;margin-top:14px}
.island-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.island-photo-grid figure{margin:0}.island-photo-grid button{display:block;width:100%;padding:0;border:0;background:#1c3628;position:relative;cursor:zoom-in;overflow:hidden;aspect-ratio:4/3}
.island-photo-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.island-photo-grid button:hover img{transform:scale(1.035)}
.island-photo-grid button>span{position:absolute;right:10px;bottom:10px;width:32px;height:32px;background:#10271fe0;color:#eff4db;border-radius:50%;display:grid;place-items:center;font-size:20px}
.island-photo-grid figcaption{margin-top:14px;line-height:1.45}.island-photo-grid strong{display:block;font-size:16px;font-weight:500}.island-photo-grid figcaption>span{display:block;font-size:13px;color:#aec2a5;margin-top:5px}
.island-photo-credit{font-size:12px;color:#adc09f;margin-top:26px}
#figureDialog>a[hidden]{display:none}
@media(max-width:800px){.island-photos{padding:48px 7%}.island-photo-heading{display:block}.island-photo-heading>p{margin-top:22px;font-size:16px}.island-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.island-photo-grid figure:last-child{grid-column:1/-1}.island-photo-grid figure:last-child button{aspect-ratio:4/3}.island-photo-grid figure:last-child img{object-position:center 55%}.island-photo-grid strong{font-size:15px}.island-photo-grid figcaption>span{font-size:13px}#impactStory .scene-bottom small{max-width:270px}}
@media(prefers-reduced-motion:reduce){.island-photo-grid img{transition:none}}

#helpStory .photo-pair>img{object-position:65% 55%}
#helpStory .photo-bare>img{object-position:50% 55%}
#helpStory .photo-scrim{background:linear-gradient(0deg,#10291fe6,transparent 40%),linear-gradient(90deg,#0b2119a6,transparent 72%)}
@media(max-width:800px){#helpStory .photo-pair>img{object-position:68% center}#helpStory .photo-bare>img{object-position:42% center}#helpStory .scene-bottom small{max-width:280px}}

/* Revised illustrative opening artwork. */
.hero-image{background-image:url("assets/hero-herd-dry.webp")}

.actions .action-title{font-family:var(--sans);font-size:clamp(36px,5vw,64px);font-weight:650;line-height:1.1;letter-spacing:-.035em;margin:0 0 40px}

.help-section .actions{padding-top:clamp(72px,9vw,128px)}

/* Keep pinned scenes inside the usable phone viewport, including browser chrome. */
@media(max-width:800px){
 .photo-stage,.impact-photo-intro.photo-stage,.help-photo-banner.photo-stage,.history-stage{height:calc(100svh - 49px);min-height:0;max-height:none}
 .photo-scroll{height:250svh;min-height:0}
 .history-section #forestStory{min-height:0}
 .scene-range{min-height:32px;margin-top:8px;touch-action:pan-y}
}
@media(max-width:800px) and (max-height:740px){
 .photo-story-copy{top:5%}
 .photo-story-copy h3{font-size:36px;margin:14px 0}
 .photo-story-copy>p:last-child{font-size:14px;line-height:1.5}
 .scene-bottom{bottom:16px;gap:6px}
 .scene-state{font-size:24px}
 .history-title{top:16px}
 .history-title h2{font-size:20px}
 .history-events{top:90px}
 .history-events h3{font-size:24px;margin:6px 0}
 .history-events article>p:last-child{font-size:13px;line-height:1.4}
 .history-year{font-size:48px}
 .history-map{top:265px;bottom:135px}
 .history-bottom{bottom:10px}
 .history-footnote{font-size:9px;line-height:1.35}
}
/* Respect reduced motion after the mobile size rules. */
.reduce-motion .photo-scroll{height:auto;min-height:0}

@media(max-width:800px){.history-rail button:disabled{opacity:1;cursor:default;color:inherit;-webkit-text-fill-color:currentColor}.history-map,.history-map canvas{touch-action:pan-y}}

/* Motion preferences simplify the map, without disabling scroll navigation. */
.reduce-motion .history-scroll{height:340svh;min-height:2500px}
.reduce-motion .history-stage{position:sticky;top:62px}
@media(max-width:800px){.reduce-motion .history-scroll{height:360svh;min-height:2500px}.reduce-motion .history-stage{top:49px}}
