.photo-gallery-page{background:#f5f8f7;color:#143f43;min-height:70vh}
.gallery-shell{width:min(1280px,calc(100% - 48px));margin-inline:auto}
.gallery-heading{padding:52px 0 42px;background:linear-gradient(120deg,#063d45,#007c80);color:white}
.gallery-eyebrow{font-size:.85rem;letter-spacing:.03em;color:#a6e1dc}
.gallery-heading h1{color:#fff;font-size:clamp(2rem,4vw,3.5rem);font-weight:800;margin:14px 0}
.gallery-heading p{font-size:1.05rem;color:#d3e9e8;max-width:650px;line-height:1.9;margin:0}
.gallery-content{padding-block:28px 60px}
.gallery-filters{display:flex;gap:8px;flex-wrap:wrap;scroll-margin-top:130px}
.gallery-filter,.gallery-pagination button{font:inherit;border:1px solid #c9dcda;border-radius:30px;background:white;color:#245255;padding:10px 18px;cursor:pointer;min-height:44px}
.gallery-filter[aria-pressed=true],.gallery-pagination button[aria-current=page]{background:#007f82;color:white;border-color:#007f82}
.gallery-filter:hover,.gallery-pagination button:hover:not(:disabled){border-color:#007f82}
.gallery-summary{margin:20px 0;color:#526e70;font-size:.9rem;scroll-margin-top:140px}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.gallery-card{position:relative;display:block;aspect-ratio:4/3;border:0;padding:0;overflow:hidden;border-radius:14px;background:#e3ecea;cursor:pointer;text-align:right}
.gallery-card img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.gallery-card:hover img{transform:scale(1.035)}
.gallery-card-label{position:absolute;inset:auto 0 0;padding:30px 14px 12px;background:linear-gradient(transparent,rgba(0,25,29,.8));color:white;font-size:.85rem}
.gallery-expand{position:absolute;top:10px;left:10px;width:30px;height:30px;border-radius:50%;background:#ffffffdd;color:#17474b;display:grid;place-items:center;font-size:1.1rem}
.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin-top:30px}
.gallery-pagination .gallery-page-number{padding:8px;min-width:44px}
.gallery-pagination button:disabled{opacity:.4;cursor:default}
.photo-gallery-page button:focus-visible,.gallery-lightbox a:focus-visible{outline:3px solid #e2ae53;outline-offset:4px}
.gallery-modal-open{overflow:hidden}
.gallery-lightbox{width:min(1200px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;padding:0;border:1px solid #ffffff22;border-radius:16px;background:#102d32;color:white;overflow:hidden;box-shadow:0 30px 90px #0008}
.gallery-lightbox[open]{display:flex;flex-direction:column}
.gallery-lightbox::backdrop{background:#00161be8}
.gallery-lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;flex-shrink:0}
.gallery-lightbox-caption{margin:0;font-size:1rem}
.gallery-lightbox button,.gallery-download{font:inherit;border:1px solid #ffffff45;border-radius:9px;padding:10px 16px;color:white;background:transparent;cursor:pointer;min-height:44px;text-decoration:none}
.gallery-lightbox button:hover:not(:disabled),.gallery-download:hover{background:#ffffff19}
.gallery-lightbox button:disabled{opacity:.35;cursor:default}
.gallery-viewer{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#061f24;touch-action:pan-y pinch-zoom}
.gallery-full-image{width:100%;height:100%;object-fit:contain;min-height:0}
.gallery-image-status{position:absolute;bottom:12px;left:16px;right:16px;text-align:center;pointer-events:none;background:#102d32bb;border-radius:8px;margin:0}
.gallery-image-status:empty{display:none}
.gallery-lightbox-controls{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px;flex-wrap:wrap;flex-shrink:0}
.gallery-lightbox-controls span{direction:ltr;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-filters{scroll-margin-top:100px}}
@media(max-width:650px){.gallery-shell{width:calc(100% - 28px)}.gallery-heading{padding:32px 0}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px}.gallery-filter{white-space:nowrap;font-size:.85rem;padding:9px 14px}.gallery-card{border-radius:10px}.gallery-card-label{font-size:.75rem;padding-inline:9px}.gallery-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.gallery-lightbox-controls{gap:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.gallery-lightbox button,.gallery-download{padding:9px 12px}.gallery-download{width:100%;text-align:center}.gallery-lightbox-caption{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.gallery-card img{transition:none}.gallery-card:hover img{transform:none}}

/* A small existing thumbnail provides the softly blurred backdrop. */
.gallery-heading{position:relative;isolation:isolate;overflow:hidden;background:#073f46}
.gallery-heading::before{content:"";position:absolute;z-index:-2;inset:-18px;background:url('/images/gallery/2026/078-b80be637-thumb.webp') center 45%/cover no-repeat;filter:blur(7px);transform:scale(1.04)}
.gallery-heading::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(110deg,rgba(3,34,41,.7),rgba(0,74,78,.85))}
@media(max-width:650px){.gallery-heading h1{font-size:2rem;line-height:1.4}.gallery-heading p{font-size:1rem}.gallery-lightbox-bar{padding-inline:12px}.gallery-filters{overscroll-behavior-x:contain;scrollbar-width:thin}}

.gallery-strip{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:4px 4px 14px;scrollbar-width:thin;scrollbar-color:#007f82 #dce9e7}
.gallery-strip .gallery-card{flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start;aspect-ratio:3/2}
.gallery-strip-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#526e70;font-size:.9rem}
.gallery-strip-controls button{font:inherit;font-size:1.3rem;min-width:44px;min-height:44px;border:1px solid #c9dcda;border-radius:50%;background:white;color:#007f82;cursor:pointer}
.home-photo-strip-host button:focus-visible,.gallery-strip:focus-visible{outline:3px solid #b57b21;outline-offset:3px}
@media(max-width:1000px){.gallery-strip{gap:12px}.gallery-strip .gallery-card{flex:0 0 88%;aspect-ratio:4/3}.gallery-strip-controls{justify-content:space-between;font-size:.8rem}}
@media(max-width:650px){.gallery-strip .gallery-card{flex-basis:92%}.gallery-strip .gallery-card-label{font-size:.9rem;padding:32px 12px 12px}}

/* Equal-sized grid cards preserve the full photo over a soft backdrop. */
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gallery-grid .gallery-card{min-width:0;aspect-ratio:auto;display:flex;flex-direction:column;background:#dce9e7;isolation:isolate}
.gallery-grid .gallery-card::before{content:"";position:absolute;inset:-12px;background-image:var(--photo-backdrop);background-position:center;background-size:cover;filter:blur(14px);opacity:.45;z-index:-1}
.gallery-grid .gallery-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;flex:none;position:relative}
.gallery-grid .gallery-card:hover img{transform:none}
.gallery-grid .gallery-card-label{position:relative;display:block;padding:10px 12px;background:#143f43;color:#fff;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-grid .gallery-card-label{font-size:.7rem;padding:8px 6px}}