/* Direct, full-size photography: four compositions on the shared editorial grid. */
.vg-shell[data-page=project] .pd-gallery{margin-top:var(--vg-detail-space);scroll-margin-top:0}
.pd-gallery-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:64px;margin-bottom:32px}
.pd-gallery-heading h2{margin:0;font-size:clamp(32px,2.7vw,44px);font-weight:400;line-height:1.3;letter-spacing:-.035em}
.pd-gallery-preview{margin:12px 0 0;font-size:12px;line-height:1.7;color:var(--vg-accent-ink)}
.pd-gallery-description{max-width:520px;font-size:var(--vg-body);line-height:1.9;color:var(--vg-muted);margin:0}
.pd-gallery-grid{display:grid;gap:32px 24px}
.pd-gallery-photo{position:relative;min-width:0;margin:0;overflow:hidden;border-radius:var(--vg-radius-md);isolation:isolate}
.pd-gallery-media{overflow:hidden;background:var(--vg-surface);border-radius:var(--vg-radius-md)}
.pd-gallery-media>img{display:block;width:100%;height:100%;object-fit:cover}
.pd-gallery-photo figcaption{position:absolute;inset:auto 0 0;z-index:1;padding:76px clamp(22px,1.9vw,36px) clamp(24px,1.9vw,36px);color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.62) 44%,rgba(0,0,0,.9) 100%)}
.pd-gallery-photo h3{font-size:clamp(24px,1.7vw,32px);line-height:1.35;font-weight:400;margin:0;color:#fff;letter-spacing:-.02em}
.pd-gallery-photo figcaption p{max-width:58em;font-size:clamp(14px,.85vw,16px);line-height:1.75;color:#fff;margin:12px 0 0}
/* Keep the photograph inside its frame while bringing its caption into focus. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .pd-gallery-media>img{transition:transform var(--vg-medium) var(--vg-ease)}
 .pd-gallery-photo figcaption :is(h3,p){transition:transform var(--vg-fast) var(--vg-ease)}
 .pd-gallery-photo:hover .pd-gallery-media>img{transform:scale(1.035);transition-duration:650ms}
 .pd-gallery-photo:hover figcaption :is(h3,p){transform:translateY(-6px);transition-duration:var(--vg-medium)}
}
.pd-gallery-note{margin:24px 0 0;font-size:11px;line-height:1.8;color:var(--vg-muted)}
/* 01 — a panoramic opening and two equal detail images. */
.pd-gallery-01 .pd-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pd-gallery-01 .pd-gallery-photo:first-child{grid-column:1/-1}
.pd-gallery-01 .pd-gallery-media{aspect-ratio:1.85}
.pd-gallery-01 .pd-gallery-photo:first-child .pd-gallery-media{aspect-ratio:3.2}
/* 02 — one tall, dominant image alongside two fully visible detail images. */
.pd-gallery-02 .pd-gallery-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.pd-gallery-02 .pd-gallery-photo:first-child{grid-row:span 2;display:flex;flex-direction:column}
.pd-gallery-02 .pd-gallery-media{aspect-ratio:2.25}
.pd-gallery-02 .pd-gallery-photo:first-child .pd-gallery-media{aspect-ratio:auto;flex:1;min-height:0;position:relative}
.pd-gallery-02 .pd-gallery-photo:first-child img{position:absolute;inset:0}
/* 03 — an even two-by-two photographic survey. */
.pd-gallery-03 .pd-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pd-gallery-03 .pd-gallery-media{aspect-ratio:1.8}
/* 04 — alternating wide/narrow pairs, with every image visible. */
.pd-gallery-04 .pd-gallery-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
.pd-gallery-04 .pd-gallery-photo{grid-column:span 5}
.pd-gallery-04 .pd-gallery-photo:first-child,.pd-gallery-04 .pd-gallery-photo:last-child{grid-column:span 7}
.pd-gallery-04 .pd-gallery-media{height:clamp(290px,23vw,400px)}

/* Reference crop: reveal the tank bases and foreground without covering the equipment. */
@media(min-width:800px){
 .pd-gallery-02 .pd-gallery-photo-2 img[src*="image-handoff-20261030/29png.webp"]{object-position:50% 64%}
 .pd-gallery-02 .pd-gallery-photo-2 figcaption{width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
