.gallery-page, .gallery-page *, .gallery-lightbox, .gallery-lightbox * { box-sizing: border-box; }
.gallery-page { clear: both; max-width: 1280px; margin: 0 auto; padding: 70px 40px 24px; color: #172c4e; }
.gallery-heading { max-width: 740px; }
.gallery-eyebrow { color: #637795; font: 700 12px/1.5 'Comfortaa', sans-serif; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.gallery-heading h1 { font-size: clamp(30px, 4.5vw, 54px); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.gallery-intro { margin-top: 20px; max-width: 630px; color: #657184; font-size: 15px; line-height: 1.9; }
.gallery-years { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 52px; }
.gallery-years a { display: inline-flex; align-items: center; gap: 14px; padding: 11px 18px; color: #203e69; border: 1px solid #d4dce7; background: #fff; border-radius: 100px; font-size: 14px; transition: background .2s, border-color .2s; }
.gallery-years a:hover { background: #e6edf8; border-color: #92aacd; color: #173c77; }
.gallery-years span { font: 12px/1.2 Arial, sans-serif; color: #6d7c92; }
.gallery-section { margin-bottom: 52px; scroll-margin-top: 28px; }
.gallery-section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.gallery-section-heading::after { content: ''; height: 1px; background: #d6dce5; flex: 1; }
.gallery-section-heading h2 { font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.gallery-section-heading > span { font-size: 12px; color: #6a7688; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #dce3ed; box-shadow: 0 3px 15px #172c4e09; transition: box-shadow .25s, transform .25s; }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #172c4e20; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px; color: #fff; font-size: 12px; background: linear-gradient(transparent 55%, #0b1f3c80); opacity: 0; transition: opacity .25s; }
.gallery-card:hover .gallery-card-overlay, .gallery-card:focus-visible .gallery-card-overlay { opacity: 1; }
.gallery-expand { display: grid; place-items: center; width: 30px; height: 30px; background: #ffffff30; border: 1px solid #ffffff70; border-radius: 50%; font: 20px Arial, sans-serif; }
.gallery-page a:focus-visible, .gallery-lightbox button:focus-visible, .gallery-lightbox a:focus-visible { outline: 3px solid #6599e4; outline-offset: 4px; }
.gallery-empty { margin: 40px 0; color: #657184; }
.gallery-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 20px 28px; margin: 0; background: #0b1320f7; color: #fff; }
.gallery-lightbox[open] { display: flex; flex-direction: column; }
.gallery-lightbox::backdrop { background: #0b1320; }
html.gallery-is-open, html.gallery-is-open body { overflow: hidden; }
.lightbox-bar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.lightbox-caption { font-size: 14px; color: #e1e9f6; }
.gallery-lightbox button { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid #ffffff30; border-radius: 50%; color: #fff; background: #ffffff0d; cursor: pointer; font: 32px/1 Arial, sans-serif; transition: background .2s; }
.gallery-lightbox button:hover { background: #ffffff25; }
.lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 0; touch-action: pan-y pinch-zoom; }
.lightbox-image { display: block; min-width: 0; max-width: calc(100% - 132px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lightbox-image.is-loading { opacity: .25; }
.lightbox-image[hidden], .lightbox-error[hidden] { display: none; }
.lightbox-prev { margin-right: auto; }
.lightbox-next { margin-left: auto; }
.lightbox-error { text-align: center; color: #d2dbea; line-height: 1.8; }
.lightbox-bottom { min-height: 36px; font-size: 11px; color: #9eacc2; }
.lightbox-original { color: #d8e6ff; transition: color .2s; }
.lightbox-original:hover { color: #fff; }
.gallery-lightbox .lightbox-stage button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}
@media (min-width: 1450px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .gallery-page { padding: 42px 20px 12px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-years { margin-bottom: 36px; }
    .gallery-section-heading h2 { font-size: 22px; }
    .gallery-section-heading { gap: 12px; }
    .gallery-lightbox { padding: 12px; }
    .lightbox-stage { gap: 0; }
    .lightbox-image { max-width: 100%; }
    .lightbox-prev, .lightbox-next { position: absolute; z-index: 1; bottom: 20px; background: #0b1320b3 !important; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-bottom { align-items: flex-start; font-size: 10px; gap: 12px; }
    .lightbox-bottom > span { max-width: 55%; }
}
@media (max-width: 420px) {
    .gallery-page { padding-right: 16px; padding-left: 16px; }
    .gallery-grid { gap: 10px; }
    .gallery-card { border-radius: 8px; }
    .gallery-intro { font-size: 13px; }
    .gallery-section-heading > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-page *, .gallery-lightbox * { transition: none !important; } }
