.gallery-intro{background:radial-gradient(ellipse at 95% 0%,#e8e7f2,transparent 60%),linear-gradient(105deg,#f6f7fa,#eef1f7);padding:29px 0 45px;border-bottom:1px solid #e2e5ed}
.gallery-back{display:inline-flex;align-items:center;gap:13px;font-size:14px;color:var(--muted)}
.gallery-back:hover{color:var(--blue)}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-top:32px}
.gallery-heading .eyebrow{margin-bottom:10px;font-size:12px}
.gallery-heading h1{font-family:var(--serif);font-size:clamp(68px,7vw,96px);line-height:1.02;font-weight:400;letter-spacing:-.045em;margin:0}
.gallery-heading h1>span{color:#7d82a5}
.gallery-heading>p{font-size:17px;line-height:1.6;color:#566079;margin:0 0 5px}
.gallery-content{padding-top:32px;padding-bottom:72px}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:31px}
.gallery-filters{display:flex;gap:9px;flex-wrap:wrap}
.gallery-filters button{background:#fff;border:1px solid #d8dce7;border-radius:30px;padding:10px 19px;font-size:14px;line-height:1.5;min-height:44px;transition:background .18s,color .18s,border-color .18s}
.gallery-filters button:hover{background:#f0f1f7;border-color:#8991af}
.gallery-filters button.active{background:#4d588d;border-color:#4d588d;color:white}
#gallery-count{font-size:13px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.gallery-card{min-width:0;margin:0}
.gallery-photo{position:relative;display:block;width:100%;border:0;padding:0;background:#e7eaf0;overflow:hidden;aspect-ratio:4/3;text-align:left}
.gallery-photo img{height:100%;width:100%;object-fit:cover;transition:transform .5s ease}
.gallery-photo:hover img{transform:scale(1.035)}
.gallery-photo:focus-visible{outline-offset:4px}
.gallery-open{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;background:#fffef5;color:#344160;border-radius:50%;width:38px;height:38px;font-size:21px;box-shadow:0 2px 12px #10182a1a;transition:transform .2s}
.gallery-photo:hover .gallery-open{transform:rotate(45deg)}
.gallery-card-caption{padding-top:15px}
.gallery-card-category{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#626d92;font-weight:600}
.gallery-card h2{font-family:var(--serif);font-size:25px;line-height:1.2;font-weight:400;letter-spacing:-.02em;margin:5px 0 0}
.gallery-source-note{font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:24px;margin:40px 0 0;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}
.gallery-source-note a{text-decoration:underline;text-underline-offset:4px}
.gallery-empty{padding:50px 0;text-align:center;color:var(--muted)}
.header-inner nav>a[aria-current=page]{color:var(--blue);position:relative}
.header-inner nav>a[aria-current=page]:after{content:'';height:2px;background:var(--blue);position:absolute;left:0;right:0;bottom:9px}
body.gallery-lightbox-open{overflow:hidden}
#gallery-lightbox{background:#111b2a;color:#fff;border:0;border-radius:3px;width:min(1160px,calc(100vw - 64px));max-width:calc(100vw - 32px);padding:14px 24px 21px;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 90px #0006}
#gallery-lightbox::backdrop{background:#0b111fe6;backdrop-filter:blur(7px)}
.lightbox-top{display:flex;justify-content:space-between;align-items:center;min-height:44px;margin-bottom:10px}
#lightbox-position{font-size:14px;font-variant-numeric:tabular-nums;color:#c9d0e2}
.lightbox-close,.lightbox-arrow{display:grid;place-items:center;color:#fff;background:transparent;border:1px solid #ffffff5c;border-radius:50%;height:44px;width:44px;flex-shrink:0;font-size:22px;line-height:1}
.lightbox-close{font-size:31px;font-weight:400}
.lightbox-close:hover,.lightbox-arrow:hover{background:#ffffff20;border-color:#fff}
.lightbox-stage{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:17px}
#lightbox-image{grid-column:2;height:min(65dvh,730px);width:100%;object-fit:contain;background:#111b2a}
.lightbox-caption{padding:20px 61px 0}
#lightbox-category{color:#b9c2dc;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
#lightbox-title{font-family:var(--serif);font-size:29px;font-weight:400;line-height:1.2;margin:5px 0 0;letter-spacing:-.015em}
@media(max-width:1100px){.gallery-toolbar{align-items:flex-start}.gallery-filters{gap:8px}.gallery-filters button{padding:10px 14px}.gallery-grid{gap:27px 20px}.gallery-card h2{font-size:23px}#gallery-count{padding-top:12px}}
@media(max-width:850px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-heading>p{font-size:15px}.gallery-toolbar{display:block}#gallery-count{display:block;margin-top:15px;padding:0}}
@media(max-width:700px){.gallery-intro{padding:24px 0 31px}.gallery-heading{display:block;margin-top:25px}.gallery-heading .eyebrow{font-size:11px;letter-spacing:.09em}.gallery-heading h1{font-size:66px}.gallery-heading>p{font-size:16px;margin:19px 0 0}.gallery-heading>p br{display:none}.gallery-content{padding-top:25px;padding-bottom:44px}.gallery-toolbar{margin-bottom:23px}.gallery-filters{gap:8px}.gallery-filters button{font-size:13px;padding:9px 14px;min-height:44px}.gallery-grid{gap:28px 15px}.gallery-card-category{font-size:11px;letter-spacing:.055em}.gallery-card h2{font-size:23px}.gallery-card-caption{padding-top:11px}.gallery-source-note{margin-top:31px;font-size:12px;gap:8px}.gallery-open{right:11px;bottom:11px;width:34px;height:34px}#gallery-lightbox{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:12px 14px 20px;max-height:calc(100dvh - 20px)}.lightbox-stage{display:block;padding-bottom:56px}#lightbox-image{grid-column:2;height:54dvh}.lightbox-arrow{position:absolute;bottom:0}.lightbox-prev{left:0}.lightbox-next{right:0}.lightbox-caption{padding:15px 0 0}#lightbox-title{font-size:25px}#lightbox-category{font-size:11px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.gallery-photo img,.gallery-open,.gallery-filters button{transition:none}}

/* Gallery welcome, aligned with the blue visitor pages. */
.gallery-intro{background:radial-gradient(ellipse at 100% 0,#849fc7,transparent 65%),linear-gradient(115deg,#293f78,#606d99);color:white;padding:32px 0 62px;border:0}
.gallery-back{color:#e3ebfb}.gallery-back:hover{color:white}.gallery-heading{margin-top:43px;gap:45px}.gallery-heading .eyebrow{color:#e0eaff;letter-spacing:.13em;margin-bottom:23px;font-size:11px}.gallery-heading h1{font-size:clamp(55px,5.6vw,80px);line-height:1.06;letter-spacing:-.04em}.gallery-heading h1 em{font-weight:400;color:#e7edff}.gallery-heading>p{color:#edf2ff;font-size:17px;line-height:1.7;max-width:340px;margin-bottom:6px}.gallery-content{padding-top:36px}.gallery-filters button.active{background:#2d4d91;border-color:#2d4d91}.gallery-card-category{color:#3f5e97}.gallery-open{background:#f1f5ff;color:#29487e}
@media(max-width:1000px){.gallery-heading{display:block}.gallery-heading>p{margin-top:27px;max-width:500px}.gallery-heading>p br{display:none}}
@media(max-width:700px){.gallery-intro{padding:25px 0 39px}.gallery-heading{margin-top:32px}.gallery-heading h1{font-size:clamp(36px,7.7vw,54px)}.gallery-heading .eyebrow{font-size:10px;margin-bottom:21px}.gallery-heading>p{font-size:15px;margin-top:23px;max-width:340px}.gallery-content{padding-top:27px}}

/* Quiet photo grid: captions belong to the expanded view. */
.gallery-grid{gap:14px}.gallery-photo{aspect-ratio:3/2;border-radius:3px}.gallery-photo img{display:block}.gallery-open{width:32px;height:32px;right:12px;bottom:12px;border-radius:6px;background:#15243c70;color:white;box-shadow:none;backdrop-filter:blur(5px);opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s}.gallery-open svg{width:17px;height:17px}.gallery-photo:hover .gallery-open,.gallery-photo:focus-visible .gallery-open{opacity:1;transform:none}.gallery-photo:focus-visible{outline:2px solid #2d4d91;outline-offset:3px}.gallery-toolbar{padding-bottom:22px;border-bottom:1px solid #e1e7ef;margin-bottom:24px}
@media(max-width:850px){.gallery-grid{gap:10px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-open{width:25px;height:25px;right:7px;bottom:7px}.gallery-open svg{width:14px;height:14px}}
@media(hover:none){.gallery-open{opacity:.85;transform:none}}
@media(prefers-reduced-motion:reduce){.gallery-open{transition:none}}
