/* The gallery shares the existing Jace palette and typography. */
.gallery-page .page-shell{max-width:1320px}
.gallery-header{padding-left:8px;padding-right:8px}
.gallery-header nav a{gap:7px}
.gallery-intro{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:58px;align-items:center;background:var(--light);border-radius:28px;padding:46px 44px 44px}
.gallery-title-block .eyebrow{color:var(--blue);font-size:14px;letter-spacing:.16em;margin-bottom:14px}
.gallery-intro h1{font-size:60px;line-height:1.3;letter-spacing:.03em;font-weight:700}
.gallery-tagline{font-size:21px;line-height:1.8;margin-top:18px;max-width:420px}
.gallery-intro-copy{border-left:1px solid rgba(57,88,162,.28);padding-left:36px;font-size:19px;line-height:1.9}
.gallery-intro-copy p+p{margin-top:10px}
.gallery-jump{display:inline-flex;align-items:center;gap:24px;min-height:48px;color:var(--blue);margin-top:15px;border-bottom:1px solid var(--blue);font-size:18px}
.gallery-jump:hover{color:var(--ink);border-bottom-color:var(--ink)}
.photo-collection{padding:48px 8px 0;scroll-margin-top:24px}
.collection-heading{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:23px}
.collection-heading .eyebrow{font-size:16px;color:var(--gray);margin-bottom:5px}
.collection-heading h2{font-size:32px}
.collection-hint{font-size:17px;color:var(--gray);padding-bottom:5px}
.collection-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between;margin-bottom:28px}
.gallery-filters{display:flex;flex-wrap:wrap;gap:10px}
.filter-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;background:#fff;border:1px solid var(--mid);border-radius:999px;color:var(--ink);font-size:17px;font-weight:600;line-height:1.6;padding:10px 18px;cursor:pointer;transition:background-color .16s,color .16s,border-color .16s}
.filter-button:hover{background:#edf5fa;border-color:var(--blue)}
.filter-button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.filter-count{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;opacity:.8}
.gallery-status{font-size:15px;color:var(--gray);font-weight:500;line-height:1.7;min-height:26px}
.gallery-status:empty{display:none}
.photo-grid{columns:3;column-gap:24px}
.photo-card{display:inline-block;vertical-align:top;break-inside:avoid;width:100%;margin:0 0 30px;padding:0}
.photo-open{display:block;position:relative;width:100%;border-radius:20px;overflow:hidden;background:#edf3f6;line-height:0;isolation:isolate}
.photo-open:focus-visible{outline-offset:5px}
.photo-open img{display:block;width:100%;height:auto;transition:filter .2s}
.photo-open:hover img{filter:brightness(1.035)}
.photo-expand{display:grid;place-items:center;position:absolute;right:13px;bottom:13px;width:38px;height:38px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.9);color:var(--blue);font-size:23px;font-weight:500;line-height:1;box-shadow:0 2px 12px rgba(20,40,60,.08);transition:background-color .16s,transform .16s}
.photo-open:hover .photo-expand,.photo-open:focus-visible .photo-expand{background:#fff;transform:translate(1px,-1px)}
.photo-caption{padding:13px 3px 0;line-height:1.5}
.photo-category{display:block;color:var(--gray);font-size:13px;font-weight:500;letter-spacing:.06em;margin-bottom:5px}
.photo-title{display:block;font-size:19px;font-weight:600;line-height:1.6}
.gallery-empty{padding:40px 24px;border:1px solid var(--mid);border-radius:20px;text-align:center;font-size:19px;color:var(--gray)}
.gallery-afterword{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 32px;margin:22px 8px 48px;border-radius:24px;background:#eff6fa}
.gallery-afterword .eyebrow{font-size:15px;color:var(--gray);margin-bottom:7px}
.gallery-afterword h2{font-size:27px}
.gallery-afterword p:last-child{font-size:18px;margin-top:7px}
.gallery-afterword .button{flex-shrink:0;font-size:18px;min-height:54px;background:#fff}
.gallery-modal-open{overflow:hidden}
.photo-dialog{width:min(1180px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:min(92svh,1000px);max-height:calc(100svh - 24px);margin:auto;padding:0;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:#13202a;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.3);overflow:hidden}
.photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.photo-dialog:not([open]){display:none}
.gallery-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.photo-dialog::backdrop{background:rgba(13,24,34,.84)}
.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px 10px}
.dialog-position{font-size:16px;line-height:1.5;font-weight:500;font-variant-numeric:tabular-nums;color:#d8e6ef}
.dialog-close{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:94px;min-height:46px;border:1px solid #8ba3b5;border-radius:999px;padding:5px 15px;background:transparent;color:#fff;font-size:16px;line-height:1.5;cursor:pointer}
.close-symbol{font-size:29px;line-height:1;font-weight:400}
.dialog-close:hover,.dialog-arrow:hover{background:#294152}
.photo-dialog button:focus-visible,.photo-dialog a:focus-visible{outline:3px solid var(--light);outline-offset:3px}
.dialog-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;margin:0 20px}
.dialog-image{display:block;width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.dialog-stage[data-state="loading"] .dialog-image,.dialog-stage[data-state="error"] .dialog-image{opacity:0}
.dialog-loading,.dialog-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:0;padding:24px;text-align:center;color:#d8e6ef;font-size:18px;line-height:1.8}
.dialog-error a{text-decoration:underline;text-underline-offset:5px;margin-top:10px;min-height:44px;display:inline-flex;align-items:center;gap:8px;color:#fff}
.dialog-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 20px;padding:16px 23px 18px}
.dialog-caption{min-width:0}
.dialog-category{font-size:13px;font-weight:500;color:#b6d6ec;letter-spacing:.06em;line-height:1.5;margin-bottom:4px}
.dialog-caption h2{font-size:22px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.dialog-navigation{display:flex;gap:10px}
.dialog-arrow{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;padding:0;border:1px solid #8ba3b5;border-radius:50%;background:transparent;color:#fff;font-size:25px;line-height:1;cursor:pointer}
.dialog-arrow:disabled{opacity:.3;cursor:default}
.dialog-keyboard-tip{grid-column:1/-1;font-size:12px;font-weight:400;color:#acbfce;line-height:1.6;letter-spacing:.02em}
@media(min-width:1500px){.gallery-page .page-shell{max-width:1400px}.photo-grid{column-gap:28px}}
@media(max-width:1050px){.gallery-intro{gap:28px;padding:36px 32px}.gallery-intro h1{font-size:52px}.gallery-tagline{font-size:20px}.gallery-intro-copy{padding-left:25px;font-size:18px}.photo-grid{columns:2}.gallery-afterword{padding:28px}.gallery-afterword h2{font-size:26px}}
@media(max-width:760px){.gallery-header{gap:20px}.gallery-header nav{gap:9px}.gallery-header nav a{padding:8px 14px;font-size:16px;min-height:48px}.gallery-intro{grid-template-columns:1fr;gap:22px;padding:32px 28px}.gallery-intro-copy{border-left:0;border-top:1px solid rgba(57,88,162,.28);padding:20px 0 0;font-size:19px}.gallery-intro-copy p+p{margin-top:6px}.gallery-jump{margin-top:10px}.gallery-tagline{max-width:none;font-size:20px;margin-top:12px}.photo-collection{padding-top:34px}.collection-heading{align-items:start;flex-direction:column;gap:7px;margin-bottom:19px}.collection-hint{font-size:16px;padding:0}.collection-heading h2{font-size:29px}.photo-grid{column-gap:18px}.photo-card{margin-bottom:25px}.photo-open{border-radius:17px}.photo-title{font-size:18px}.gallery-afterword{align-items:start;flex-direction:column;gap:22px;padding:27px;margin-top:10px}.gallery-afterword h2{font-size:26px}.gallery-afterword .button{width:auto}.dialog-keyboard-tip{display:none}}
@media(max-width:600px){.gallery-header{padding:22px 8px 23px}.gallery-header nav{width:100%;gap:8px}.gallery-header nav a{min-width:0;padding:9px 7px;font-size:16px;gap:4px}.gallery-intro{border-radius:22px;padding:28px 23px;gap:20px}.gallery-intro h1{font-size:44px;letter-spacing:.02em}.gallery-title-block .eyebrow{font-size:12px;margin-bottom:12px}.gallery-tagline{font-size:19px;line-height:1.8}.gallery-intro-copy{font-size:18px;line-height:1.9;padding-top:18px}.gallery-jump{font-size:17px}.collection-toolbar{gap:13px;margin-bottom:23px}.gallery-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.filter-button{font-size:16px;padding:10px 13px;min-height:49px;gap:8px}.filter-count{font-size:13px}.gallery-status{font-size:14px;min-height:24px}.photo-grid{columns:1}.photo-card{margin-bottom:28px}.photo-open{border-radius:20px}.photo-caption{padding-top:12px}.photo-category{font-size:14px}.photo-title{font-size:20px}.photo-expand{width:40px;height:40px;right:14px;bottom:14px}.gallery-afterword{margin:8px 8px 34px;padding:25px 22px;border-radius:22px;gap:21px}.gallery-afterword h2{font-size:25px;line-height:1.6}.gallery-afterword p:last-child{font-size:18px}.gallery-afterword .button{width:100%;font-size:18px}.photo-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100svh - 24px);max-height:calc(100svh - 24px);border-radius:18px}.dialog-header{padding:12px 12px 10px;gap:9px}.dialog-position{font-size:14px}.dialog-close{gap:8px;min-width:81px;min-height:44px;padding:5px 12px;font-size:15px}.dialog-stage{margin:0 8px}.dialog-footer{padding:16px 14px 18px;gap:10px}.dialog-caption h2{font-size:20px}.dialog-category{font-size:12px}.dialog-navigation{gap:8px}.dialog-arrow{flex-basis:46px;width:46px;height:46px;font-size:23px}}
@media(max-width:360px){.gallery-intro h1{font-size:40px}.gallery-header nav a{font-size:15px}.dialog-footer{grid-template-columns:1fr}.dialog-navigation{justify-content:flex-end}.photo-collection{padding-left:5px;padding-right:5px}}
@media(prefers-reduced-motion:reduce){.filter-button,.photo-open img,.photo-expand{transition:none}}
