.foundation-gallery { padding: 28px 0 40px; background: linear-gradient(110deg, #f0f9ff, #fff); color: var(--foundation-navy, #151c50); }
.gallery-heading h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; }
.gallery-heading p { margin: 8px 0 0; color: #536b80; }
.gallery-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 20px; }
.gallery-types { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; border: 1px solid #dcecf6; border-radius: 6px; background: white; }
.gallery-types button, .gallery-year button, .gallery-year select { min-height: 38px; padding: 7px 14px; border: 0; border-radius: 5px; background: white; color: #263d67; font: inherit; font-size: .85rem; cursor: pointer; }
.gallery-types button[aria-pressed="true"] { background: #009fe3; color: white; }
.gallery-year { display: flex; align-items: center; gap: 6px; }
.gallery-year label { display: flex; min-height: 38px; align-items: center; font-size: .85rem; }
.gallery-year select, .gallery-year button { border: 1px solid #cee3f3; }
.gallery-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-card { display: flex; height: 100%; overflow: hidden; border: 1px solid #d7eafa; border-radius: 10px; background: white; box-shadow: 0 4px 12px #0878bb09; flex-direction: column; }
.gallery-cover { position: relative; display: block; height: 230px; flex: 0 0 230px; background: #e8f4fa; }
.gallery-cover img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.gallery-count { position: absolute; top: 10px; right: 10px; padding: 6px 10px; border-radius: 20px; background: #fffffff0; color: #15274b; font-size: .8rem; }
.gallery-card-copy { display: flex; flex: 1; padding: 12px 14px; flex-direction: column; }
.gallery-card-copy h2 { font-size: 1rem; margin: 0 0 8px; }
.gallery-card-copy p { font-size: .85rem; color: #536b80; margin: 0 0 8px; }
.foundation-gallery a { color: #007fbd; text-decoration: none; }
.gallery-card-copy a { margin-top: auto; font-size: .9rem; }
.gallery-back { display: inline-block; margin-bottom: 14px; font-size: .9rem; }
.gallery-photos { columns: 3; column-gap: 16px; margin-top: 22px; }
.gallery-photo { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: 7px; overflow: hidden; transition: box-shadow .2s ease; }
.gallery-photo img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.gallery-photo:hover, .gallery-photo:focus-visible { box-shadow: 0 8px 20px rgba(8, 75, 118, .16); }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.015); }
.foundation-gallery :focus-visible, .gallery-lightbox :focus-visible { outline: 3px solid #007fbd; outline-offset: 3px; }
.gallery-empty { grid-column: 1 / -1; padding: 24px 0; }
.gallery-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 16px; border: 0; background: #101b2aed; color: white; box-sizing: border-box; }
.gallery-lightbox::backdrop { background: #101b2a; }
.gallery-lightbox[open] { display: flex; flex-direction: column; }
.gallery-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-lightbox button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff50; border-radius: 50%; background: #fff; color: #13264a; font-size: 1.25rem; cursor: pointer; }
.gallery-lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; touch-action: pan-y; }
.gallery-lightbox figure { flex: 1; min-width: 0; margin: 0; text-align: center; }
.gallery-lightbox figure img { max-width: 100%; max-height: calc(100dvh - 145px); object-fit: contain; border-radius: 5px; }
.gallery-lightbox figcaption { margin-top: 10px; font-size: .9rem; }
@media (max-width: 900px) { .gallery-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-photos { columns: 2; } }
@media (max-width: 600px) { .gallery-albums { grid-template-columns: 1fr; } .gallery-photos { columns: 1; } .gallery-lightbox { padding: 8px; } .gallery-lightbox-stage { gap: 6px; } .gallery-lightbox-stage button { width: 44px; } .gallery-types button { padding: 8px 10px; } }
