/* Homepage-only proportions: give the original, uncropped photos the leading role. */
.hero.home-photo-hero{grid-template-columns:minmax(0,42fr) minmax(0,58fr)}
.home-photo-hero .hero-copy{align-self:center;padding-block:40px;padding-right:30px}
.home-photo-hero .hero-copy h1{font-size:clamp(32px,3.2vw,44px);margin-block:22px}
.home-photo-hero .hero-copy p{font-size:16px;line-height:1.85}
.home-photo-hero .hero-copy .actions{gap:10px}
.hero-media.home-photo-gallery{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;background:#101e20;color:#fff;isolation:isolate}
.hero-media.home-photo-gallery::after{display:none}
.hero-media.home-photo-gallery span{position:static;inset:auto;z-index:auto;color:inherit;background:none;padding:0}
.home-photo-gallery [hidden]{display:none!important}
.home-photo-stage{position:relative;flex:1 0 auto;width:100%;aspect-ratio:1456/816;min-height:0;overflow:hidden;background:#101e20}
.home-photo-slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 900ms ease;pointer-events:none}
.home-photo-slide.is-active{opacity:1;z-index:1}
.hero-media.home-photo-gallery .home-photo-slide img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none}
.home-photo-note{position:absolute;top:16px;left:18px;z-index:2;margin:0;padding:4px 10px;background:rgba(9,25,27,.82);border:1px solid rgba(215,230,222,.3);font-size:11px;letter-spacing:1px;color:#ecf3ef;pointer-events:none}
.home-photo-caption{position:relative;flex:0 0 auto;padding:10px 20px 12px;background:#143c34;border-top:1px solid rgba(220,227,222,.2)}
.home-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-photo-heading h2{margin:0;font-size:17px;line-height:1.45;letter-spacing:.03em;color:#fff}
.hero-media.home-photo-gallery .home-photo-count{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:1px;color:#c9ddd3}
.home-photo-caption>p{margin:4px 152px 0 0;min-height:22px;line-height:1.7;color:#dbe8df;font-size:13px}
.home-photo-actions{position:absolute;right:20px;bottom:8px;display:flex;gap:6px;align-items:center}
.home-photo-actions button{display:grid;place-items:center;min-height:34px;min-width:34px;padding:4px 7px;background:transparent;border:1px solid #789b8b;color:#fff;font-size:15px;cursor:pointer}
.home-photo-actions [data-gallery-toggle]{font-size:12px;padding-inline:10px}
.home-photo-actions button:hover{background:#235849}
.home-photo-actions button:focus-visible,.home-photo-thumbs button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.home-photo-thumbs{display:grid;grid-template-columns:repeat(8,minmax(0,76px));justify-content:center;gap:8px;padding:0 20px 12px;background:#143c34}
.home-photo-thumbs button{position:relative;display:block;min-width:0;min-height:44px;margin:0;padding:0;border:1px solid #678878;background:#101e20;color:#dce8e1;cursor:pointer;overflow:hidden;text-align:center;transition:border-color 200ms}
.hero-media.home-photo-gallery .home-photo-thumbs img{position:static;inset:auto;display:block;width:100%;height:42px;object-fit:contain;filter:none;opacity:.66;transition:opacity 250ms}
.hero-media.home-photo-gallery .home-photo-thumbs span{display:none}
.home-photo-thumbs button[aria-pressed=true]{border-color:#e6f4ea;box-shadow:0 0 0 1px #e6f4ea}
.hero-media.home-photo-gallery .home-photo-thumbs button[aria-pressed=true] img,.hero-media.home-photo-gallery .home-photo-thumbs button:hover img{opacity:1}
.home-photo-status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px;padding:0;border:0}
@media(max-width:1100px) and (min-width:851px){.home-photo-hero .hero-copy{padding:32px 24px}.home-photo-hero .hero-copy h1{font-size:34px}.home-photo-hero .hero-copy .button{font-size:14px;padding:11px 13px}}
@media(max-width:850px){.hero.home-photo-hero{grid-template-columns:1fr}.home-photo-hero .hero-copy{padding:28px 24px}.home-photo-hero .hero-copy h1{font-size:34px;margin:16px 0}.home-photo-hero .hero-copy p{max-width:650px;margin:12px 0 16px}.hero-media.home-photo-gallery{height:auto}.home-photo-stage{flex:none}}
@media(max-width:600px){.home-photo-hero .hero-copy{padding:24px 20px}.home-photo-hero .hero-copy h1{font-size:30px}.home-photo-hero .hero-copy p{font-size:15px}.home-photo-hero .hero-copy .actions{margin-top:16px}.home-photo-hero .hero-copy .button{font-size:14px;padding:11px 12px}.home-photo-caption{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 10px;padding:10px 16px}.home-photo-heading{justify-content:flex-start;gap:9px}.home-photo-heading h2{font-size:16px}.hero-media.home-photo-gallery .home-photo-count{font-size:10px;letter-spacing:0}.home-photo-caption>p{grid-column:1/-1;grid-row:2;margin:0;min-height:22px;font-size:12px}.home-photo-actions{position:static;grid-column:2;grid-row:1;gap:5px}.home-photo-actions button{min-height:40px;min-width:36px}.home-photo-actions [data-gallery-toggle]{font-size:11px;padding-inline:7px}.home-photo-thumbs{grid-template-columns:repeat(4,minmax(0,76px));padding:0 16px 12px;gap:7px}.home-photo-note{top:10px;left:12px;font-size:10px}}
@media(max-width:360px){.home-photo-caption{padding-inline:12px}.home-photo-heading{gap:5px}.home-photo-heading h2{font-size:15px}.home-photo-actions button{min-width:32px}.home-photo-actions [data-gallery-toggle]{padding-inline:4px}.home-photo-thumbs{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.home-photo-slide,.home-photo-thumbs button,.hero-media.home-photo-gallery .home-photo-thumbs img{transition:none}}

/* Image-first video enhancement; the original image always occupies the stage. */
.home-photo-gallery .home-adaptive-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;opacity:0;transition:opacity 450ms ease;pointer-events:none;background:transparent}
.home-photo-gallery .is-video-playing .home-adaptive-video{opacity:1}
/* Reserve a separate control row below the picture, including on image-only slides. */
.home-video-control-slot{flex:0 0 auto;min-height:56px;box-sizing:border-box;padding:0 20px 12px;background:#143c34}
.home-photo-gallery .home-video-controls{position:static;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;width:100%;max-width:100%}
.home-photo-gallery .home-video-toggle{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:8px 14px;border:1px solid #9db8aa;background:#143c34ed;color:#fff;font-size:13px;line-height:1.5;cursor:pointer}
.home-photo-gallery .home-video-toggle:hover{background:#136654}
.home-photo-gallery .home-video-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-media.home-photo-gallery .home-video-status{flex:1;min-width:0;font-size:12px;line-height:1.5;color:#dbe8df;max-width:none}
.home-photo-gallery .home-video-status:empty{display:none}
@media(max-width:600px){.home-video-control-slot{padding-inline:16px}.home-photo-gallery .home-video-controls{gap:8px}.hero-media.home-photo-gallery .home-video-status{font-size:11px}}
@media(prefers-reduced-motion:reduce){.home-photo-gallery .home-adaptive-video{transition:none}}

/* Keep the slide counter intact beside longer chemistry captions. */
.home-photo-heading h2{min-width:0}.home-photo-count{white-space:nowrap;flex-shrink:0}
