/* Homepage EV gallery only. Preserve the surrounding capability layout. */
:is(#home,#ev-analysis) .ev-gallery { width:100%; color:#173f74; }
:is(#home,#ev-analysis) .ev-gallery [hidden], :is(#home,#ev-analysis) .ev-gallery[hidden] { display:none!important; }
:is(#home,#ev-analysis) .ev-gallery-stage {
  position:relative; width:100%; aspect-ratio:4/3; overflow:hidden;
  border:1px solid #dae5ef; border-radius:16px; background:#fff;
}
:is(#home,#ev-analysis) .ev-gallery-slide { position:absolute; inset:0; }
:is(#home,#ev-analysis) .ev-gallery-slide img { display:block; width:100%; height:100%; object-fit:contain; }
:is(#home,#ev-analysis) .ev-gallery-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:14px; }
:is(#home,#ev-analysis) .ev-gallery-controls button { display:grid; place-items:center; padding:0; color:inherit; background:transparent; cursor:pointer; }
:is(#home,#ev-analysis) .ev-gallery-arrow { width:44px; height:44px; border:1px solid #aec4db; border-radius:50%; }
:is(#home,#ev-analysis) .ev-gallery-arrow svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
:is(#home,#ev-analysis) .ev-gallery-positions { display:flex; }
:is(#home,#ev-analysis) .ev-gallery-position { width:36px; height:44px; border:0; border-radius:8px; }
:is(#home,#ev-analysis) .ev-gallery-position span { width:8px; height:8px; border:1px solid currentColor; border-radius:50%; }
:is(#home,#ev-analysis) .ev-gallery-position[aria-pressed="true"] span { background:currentColor; }
:is(#home,#ev-analysis) .ev-gallery-controls button:hover { background:#e1edf8; }
:is(#home,#ev-analysis) .ev-gallery-controls button:focus-visible { outline:3px solid #1679bb; outline-offset:3px; }
:is(#home,#ev-analysis) .ev-gallery-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Full-resolution viewing uses the same PNG, never the editable SVG. */
:is(#home,#ev-analysis) .ev-gallery-image-link { display:block; width:100%; height:100%; padding:12px; box-sizing:border-box; cursor:zoom-in; }
:is(#home,#ev-analysis) .ev-gallery-image-link:focus-visible { outline:3px solid #1679bb; outline-offset:-4px; }
@media(max-width:760px) { :is(#home,#ev-analysis) .ev-gallery-image-link { padding:6px; } }

/* Align the complete slideshow (image + controls) with the five capability
   rows, independent of the heading above them. Mobile keeps its stacked flow. */
@media(min-width:851px) {
  :is(#home,#ev-analysis) .antibody-video-overview .ev-overview-layout {
    grid-template-rows:auto auto; row-gap:0!important;
  }
  :is(#home,#ev-analysis) .antibody-video-overview .ev-overview-capabilities { display:contents!important; }
  :is(#home,#ev-analysis) .antibody-video-overview .ev-overview-capabilities-title { grid-column:1; grid-row:1; }
  :is(#home,#ev-analysis) .antibody-video-overview .ev-overview-capabilities > ul { grid-column:1; grid-row:2; }
  :is(#home,#ev-analysis) .antibody-video-overview .ev-overview-media {
    grid-column:2; grid-row:2; align-self:center!important;
  }
}
