.gallery-page main{display:block;width:100%;max-width:none;background:#f3f8fb;color:#153550}
.gallery-page .inner-page-hero{min-height:440px}
.gallery-page .inner-hero-image{object-position:50% 48%}
.gallery-intro,.photo-gallery{width:min(1240px,88%);box-sizing:border-box;margin-inline:auto}
.gallery-intro{padding:clamp(56px,7vw,100px) 0 60px;text-align:center}
.gallery-intro h2{margin:0 auto 28px;color:#153550;font:500 clamp(36px,4.6vw,64px)/1.15 'Playfair Display',Georgia,serif;text-wrap:balance}
.gallery-intro p{max-width:880px;margin:0 auto;color:#153550;font:400 clamp(17px,1.6vw,21px)/1.8 'DM Sans',Arial,sans-serif;text-wrap:pretty}
.photo-gallery{padding:35px 0 90px;border-top:1px solid #ccdae4}
.photo-gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 36px}
.photo-gallery-heading h2{max-width:650px;margin:0;color:#153550;font:500 clamp(30px,3vw,44px)/1.2 'Playfair Display',Georgia,serif}
.photo-gallery-heading p{max-width:260px;margin:0;color:#456176;font:400 15px/1.7 'DM Sans',Arial,sans-serif}
.photo-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 26px}
.photo-gallery .photo-gallery-grid--single{grid-template-columns:minmax(0,640px);justify-content:center}
.photo-gallery-grid--single .photo-gallery-link{aspect-ratio:3/4}
.photo-gallery-card{min-width:0;margin:0;background:transparent}
.photo-gallery-link{position:relative;display:block;aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:#dce7ee}
.photo-gallery-card--result .photo-gallery-link{aspect-ratio:4/3}
.photo-gallery-card--result .photo-gallery-link img{object-fit:contain;background:#eef5fa}
.photo-gallery-card--result-last{grid-column:1/-1;width:min(720px,100%);justify-self:center}
.photo-gallery-link img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;transition:transform .35s ease}
.photo-gallery-expand{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#153550;font-size:24px;box-shadow:0 2px 12px #102c4626}
.photo-gallery-card figcaption{padding-top:18px;color:#153550}
.photo-gallery-card figcaption>span{font:500 12px/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#516a7c}
.photo-gallery-card h3{margin:7px 0 0;font:500 clamp(22px,2vw,28px)/1.25 'Playfair Display',Georgia,serif;color:#153550}
.gallery-profile-link{display:inline-flex;align-items:center;gap:22px;margin-top:44px;padding:12px 0;color:#153550;font:500 16px/1.5 'DM Sans',Arial,sans-serif;text-decoration:underline;text-underline-offset:6px}
.gallery-page a:focus-visible,.gallery-viewer button:focus-visible{outline:3px solid #b98a2e;outline-offset:5px}
.gallery-viewer{width:min(1020px,94vw);max-width:94vw;max-height:94vh;max-height:94svh;box-sizing:border-box;padding:20px 24px;border:0;border-radius:16px;background:#f3f8fb;color:#153550;overscroll-behavior:contain}
.gallery-viewer::backdrop{background:rgba(0,17,31,.88)}
.gallery-viewer-toolbar,.gallery-viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:20px}
.gallery-viewer-toolbar{margin-bottom:14px;font:500 14px/1.5 'DM Sans',Arial,sans-serif}
.gallery-viewer-close{margin-left:auto}
.gallery-viewer button{min-height:44px;padding:10px 16px;border:1px solid #b7c9d7;border-radius:30px;background:transparent;color:#153550;font:500 14px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
.gallery-viewer-close span{font-size:22px;line-height:1;margin-left:10px;vertical-align:middle}
.gallery-viewer figure{margin:0;text-align:center}
.gallery-viewer-image{display:block;width:100%;height:min(68vh,760px);height:min(68svh,760px);max-height:none;object-fit:contain}
.gallery-viewer figcaption{padding:14px 0;font:500 18px/1.4 'DM Sans',Arial,sans-serif;color:#153550}
html.gallery-is-open{overflow:hidden}
@media(hover:hover){.photo-gallery-link:hover img{transform:scale(1.035)}.gallery-viewer button:hover{background:#e2edf4}}
@media(max-width:650px){.gallery-page .inner-page-hero{min-height:420px;padding-top:160px}.gallery-intro,.photo-gallery{width:88%}.gallery-intro{padding:50px 0 40px}.photo-gallery-heading{display:block}.photo-gallery-heading p{max-width:none;margin-top:16px}.photo-gallery-grid{grid-template-columns:1fr;gap:32px}.photo-gallery-link{aspect-ratio:4/5}.photo-gallery-card--result .photo-gallery-link{aspect-ratio:4/3}.photo-gallery-card--result-last{grid-column:auto;width:100%}.photo-gallery{padding-top:30px;padding-bottom:60px}.gallery-viewer{padding:14px}.gallery-viewer-image{height:62vh;height:62svh}.gallery-viewer figcaption{font-size:16px}.gallery-profile-link{font-size:15px}}
@media(prefers-reduced-motion:reduce){.photo-gallery-link img{transition:none}.photo-gallery-link:hover img{transform:none}}
