@font-face{font-family:'Barlow Condensed';src:url('/assets/fonts/BarlowCondensed-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
.page-gallery{background:#eee9e0}.gallery-intro{padding-block:3rem 2.5rem}.gallery-intro .eyebrow{font-size:.875rem;margin-bottom:.75rem}.gallery-intro h1{font-family:'Barlow Condensed',Arial,sans-serif;font-size:clamp(2.5rem,4.4vw,4.25rem);line-height:1.08;letter-spacing:-.005em;text-transform:uppercase}.gallery-intro-copy{font-size:1rem;line-height:1.7;margin-top:1rem;max-width:45rem}.gallery-quote{margin:1.5rem 0 0;padding:0;border:0;max-width:42rem}.gallery-quote p{font-family:Georgia,'Times New Roman',serif;font-size:1rem;font-style:italic;line-height:1.65;letter-spacing:0;color:var(--muted)}.gallery-quote cite{display:block;margin-top:.3rem;font-size:.875rem;font-style:normal;line-height:1.5;color:var(--muted)}
.gallery-section{padding:0 6px 6px}.gallery-grid{columns:4;column-gap:6px;list-style:none;padding:0;margin:0}.gallery-grid>li{break-inside:avoid;margin:0 0 6px}.gallery-photo{display:block;position:relative;background:#d7d1c7}.gallery-photo img{display:block;width:100%;height:auto;object-fit:contain}.gallery-photo:focus-visible{outline:3px solid #bd2230;outline-offset:-3px}.gallery-enlarge{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:30px;height:30px;background:rgba(0,0,0,.75);color:#fff;font-size:1.2rem;opacity:0}.gallery-photo:hover .gallery-enlarge,.gallery-photo:focus-visible .gallery-enlarge{opacity:1}
.impact-lightbox{border:0;padding:0;margin:auto;width:100vw;max-width:none;height:100dvh;max-height:none;background:#111;color:#fff;overflow:hidden}.impact-lightbox::backdrop{background:#111}.lightbox-top,.lightbox-bottom{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem}.lightbox-top{height:76px}.lightbox-top h2{font-size:1rem;letter-spacing:.02em;line-height:1.2}.impact-lightbox button{min-height:44px;background:transparent;color:#fff;border:1px solid #777;padding:.65rem 1rem;font-size:.88rem;line-height:1.3;cursor:pointer}.impact-lightbox button:focus-visible{outline:2px solid #fff;outline-offset:3px}.lightbox-top button span{font-size:1.2rem;margin-left:.6rem}.lightbox-stage{height:calc(100dvh - 152px);display:flex;align-items:center;justify-content:center;padding:0 1rem;overflow:hidden}.lightbox-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.lightbox-stage [hidden]{display:none}.lightbox-stage p{color:#fff;text-align:center;max-width:430px}.lightbox-stage a{text-decoration:underline}.lightbox-bottom{height:76px}.lightbox-bottom p{color:#ddd;font-size:.83rem;text-align:center}
@media(max-width:1100px){.gallery-grid{columns:3}}
@media(max-width:650px){.gallery-grid{columns:2;column-gap:4px}.gallery-grid>li{margin-bottom:4px}.gallery-section{padding:0 4px 4px}.gallery-intro{padding-block:2.5rem 2rem}.gallery-intro h1{font-size:clamp(2.5rem,10.5vw,3.25rem)}.lightbox-top,.lightbox-bottom{padding:.75rem}.lightbox-top h2{font-size:.9rem}.impact-lightbox button{padding:.6rem .7rem;font-size:.78rem}.lightbox-bottom p{font-size:.74rem}.lightbox-stage{padding:0 .25rem}}
@media(prefers-reduced-motion:reduce){.page-gallery *{animation:none!important;transition:none!important}}

.impact-lightbox button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}.impact-lightbox .link-icon{flex:0 0 18px;width:18px;height:18px}.gallery-enlarge .link-icon{width:18px;height:18px}

/* V21: balanced, uncropped rows eliminate the uneven masonry tail. */
.gallery-tile{break-inside:avoid;margin:0 0 6px;min-width:0}.gallery-grid[data-justified="true"]{columns:auto;display:flex;flex-direction:column;gap:6px}.gallery-row{display:grid;min-width:0}.gallery-row .gallery-tile{margin:0;min-height:0}.gallery-row .gallery-photo,.gallery-row .gallery-photo img{width:100%;height:100%;min-height:0}.gallery-row .gallery-photo img{object-fit:contain}
@media(max-width:650px){.gallery-tile{margin-bottom:4px}.gallery-grid[data-justified="true"]{gap:4px}}

/* Keep small archival originals at a modest scale on very wide displays. */
.gallery-grid{max-width:min(1600px,var(--gallery-max-width,1600px));margin-inline:auto}

/* Small uploads keep their intrinsic scale in the no-script fallback, too. */
.gallery-grid:not([data-justified="true"]) .gallery-photo{max-width:var(--photo-original-width);margin-inline:auto}

/* Keep the requested first five photographs in two complete rows before enhancement. */
.gallery-featured-row{column-span:all;gap:6px;margin-bottom:6px}
@media(max-width:650px){.gallery-featured-row{gap:4px;margin-bottom:4px}}


/* Historically sourced impact figures; only the first value has a one-shot visual count. */
.gallery-impact-summary{margin-top:2rem}
.gallery-impact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0;padding:1.5rem 0;border-block:1px solid #c6c6b9}
.gallery-impact-metrics li{min-width:0;padding-inline:1.5rem}
.gallery-impact-metrics li:first-child{padding-left:0}
.gallery-impact-metrics li+li{border-left:1px solid #c6c6b9}
.gallery-impact-metrics strong{display:block;font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif;font-size:clamp(2.75rem,4vw,3.5rem);font-weight:700;line-height:1.1;letter-spacing:0;color:var(--red)}
.gallery-impact-metrics>li>span{display:block;max-width:19rem;margin-top:.6rem;font-size:1rem;line-height:1.6;color:#243027}
@media(max-width:760px){.gallery-impact-metrics{grid-template-columns:1fr;padding:0}.gallery-impact-metrics li,.gallery-impact-metrics li:first-child{padding:1.25rem 0}.gallery-impact-metrics li+li{border-left:0;border-top:1px solid #c6c6b9}.gallery-impact-metrics strong{font-size:2.75rem}.gallery-impact-metrics>li>span{max-width:none;margin-top:.4rem}}

.gallery-impact-metrics .gallery-count{font-variant-numeric:tabular-nums;min-width:6ch}
.gallery-count [data-impact-count]{display:block}
.gallery-count .gallery-count-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
