.gallery-page { --gallery-ink: #0a1b2d; --gallery-muted: #526679; --gallery-blue: #0067d0; color: var(--gallery-ink); background: #fff; padding-bottom: clamp(3rem, 7vw, 7rem); }
.gallery-albums-section { padding: clamp(3rem, 6vw, 6rem) 0; }
.gallery-section-heading { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; margin-bottom: 2rem; }
.gallery-section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -.045em; margin: 0; }
.gallery-section-heading span { color: #526679; font-size: .85rem; }
.gallery-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.6rem; }
.gallery-album-card { min-width: 0; }
.gallery-album-card a { color: #0a1b2d; text-decoration: none; display: block; }
.gallery-album-card__image { overflow: hidden; position: relative; aspect-ratio: 4/3; border-radius: 20px; background: #edf2f6; }
.gallery-album-card .gallery-cover__photo { transition: transform .35s ease; }
.gallery-album-card a:hover .gallery-cover__photo { transform: scale(1.035); }
.gallery-album-card__count { position: absolute; z-index: 2; bottom: 1rem; left: 1rem; padding: .45rem .8rem; border-radius: 99px; background: rgba(8, 24, 40, .86); color: #fff; font-size: .75rem; font-weight: 600; }
.gallery-album-card__date { display: block; font-size: .75rem; color: #526679; margin-top: 1.15rem; }
.gallery-album-card h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.03em; margin: .45rem 0 .7rem; overflow-wrap: anywhere; }
.gallery-album-card__action { display: flex; align-items: center; justify-content: space-between; color: #0067d0; font-size: .8rem; font-weight: 650; }
.gallery-album-card a:focus-visible, .gallery-photo a:focus-visible { outline: 3px solid #0067d0; outline-offset: 6px; border-radius: 18px; }
.gallery-album-header { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.gallery-album-header__copy { min-width: 0; }
.gallery-back { display: inline-block; color: var(--gallery-muted); font-size: .8rem; text-decoration: none; margin-bottom: 2.5rem; }
.gallery-back:hover { color: var(--gallery-blue); }
.gallery-kicker { font-size: .7rem; letter-spacing: .13em; font-weight: 750; text-transform: uppercase; color: var(--gallery-blue); margin: 0 0 1rem; }
.gallery-album-header h1 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 750; line-height: 1.05; letter-spacing: -.05em; margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.gallery-meta { display: flex; gap: .8rem 1.5rem; flex-wrap: wrap; align-items: center; color: var(--gallery-muted); font-size: .8rem; }
.gallery-meta > span { padding: .35rem .7rem; background: #eef5fb; border-radius: 99px; color: var(--gallery-blue); }
.gallery-album-description { margin-top: 1.5rem; color: var(--gallery-muted); font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.gallery-album-description p { margin: 0; }
.gallery-album-description p + p { margin-top: .85rem; }
.gallery-album-description a { color: var(--gallery-blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.gallery-album-description a:hover { color: #004c9c; }
.gallery-album-description a:focus-visible { outline: 3px solid var(--gallery-blue); outline-offset: 3px; border-radius: 3px; }
.gallery-album-header__cover { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 24px; background: #edf2f6; }
.gallery-photos-section { scroll-margin-top: 8rem; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.gallery-photo { min-width: 0; margin: 0; }
.gallery-photo a { display: block; position: relative; aspect-ratio: 4/3; background: #edf2f6; border-radius: 14px; overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-photo__expand { position: absolute; bottom: .7rem; right: .7rem; display: grid; place-items: center; width: 32px; height: 32px; background: rgba(8, 24, 40, .8); border-radius: 50%; color: white; transition: background .2s; }
.gallery-photo a:hover .gallery-photo__expand { background: #0067d0; }
.gallery-photo figcaption { margin: .65rem 0 0; color: var(--gallery-muted); line-height: 1.6; font-size: .8rem; overflow-wrap: anywhere; }
.gallery-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 2rem; margin-top: 3rem; font-size: .8rem; }
.gallery-pagination a { color: #0067d0; text-decoration: none; padding: .8rem .9rem; border: 1px solid #dce5ee; border-radius: 10px; font-weight: 650; }
.gallery-pagination a:hover { background: #f2f7fd; }
.gallery-pagination [aria-disabled] { color: #687787; padding: .8rem 0; }
.gallery-preview-notice { padding: .8rem 1rem; text-align: center; background: #eaf3ff; font-size: .8rem; color: #174a7c; }
.gallery-empty { padding: 3rem; border: 1px solid #e2e8ef; border-radius: 20px; text-align: center; }
.gallery-empty p { color: var(--gallery-muted); }
.gallery-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 1rem clamp(.5rem, 3vw, 3rem); border: 0; background: #08111df5; color: #fff; overscroll-behavior: contain; }
.gallery-lightbox::backdrop { background: #08111d; }
.gallery-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .5rem; }
.gallery-lightbox__bar { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: .8rem; color: #d0d9e2; }
.gallery-lightbox button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #ffffff45; border-radius: 50%; background: #ffffff0a; color: #fff; font: inherit; cursor: pointer; }
.gallery-lightbox button:hover { background: #ffffff20; }
.gallery-lightbox button:disabled { opacity: .3; cursor: default; }
.gallery-lightbox button:focus-visible { outline: 3px solid #aeea00; outline-offset: 3px; }
.gallery-lightbox__stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: clamp(.3rem, 2vw, 2rem); min-height: 0; touch-action: pan-y pinch-zoom; }
.gallery-lightbox__stage figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; margin: 0; }
.gallery-lightbox__stage img { display: block; height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.gallery-lightbox__stage figcaption { padding-top: .75rem; max-height: 6rem; overflow: auto; font-size: .8rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; color: #dce4ed; }
.gallery-lightbox__status { margin: 0; min-height: 1.2rem; text-align: center; font-size: .8rem; }
.gallery-lightbox [data-gallery-retry] { border-radius: 8px; justify-self: center; padding: .5rem 1rem; }
.gallery-lightbox [hidden] { display: none !important; }
html.gallery-dialog-open { overflow: hidden; }
@media (max-width: 60rem) { .gallery-album-header { grid-template-columns: 1fr; gap: 1.5rem; } .gallery-album-header__cover { aspect-ratio: 16/9; } .gallery-back { margin-bottom: 1.75rem; } }
@media (max-width: 48rem) { .gallery-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; } .gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .gallery-album-card__image { border-radius: 14px; } .gallery-album-card__count { left: .6rem; bottom: .6rem; padding: .3rem .55rem; font-size: .65rem; } .gallery-album-card h3 { font-size: 1.05rem; } .gallery-lightbox__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .gallery-lightbox__stage figure { grid-row: 1; grid-column: 1; } .gallery-lightbox__stage [data-gallery-previous], .gallery-lightbox__stage [data-gallery-next] { grid-row: 2; grid-column: 1; margin-top: .5rem; } .gallery-lightbox__stage [data-gallery-previous] { justify-self: start; } .gallery-lightbox__stage [data-gallery-next] { justify-self: end; } }
@media (max-width: 30rem) { .gallery-album-grid { grid-template-columns: 1fr; } .gallery-album-card h3 { font-size: 1.2rem; } .gallery-pagination { gap: .5rem; } .gallery-pagination a { padding: .75rem; } }
@media (prefers-reduced-motion: reduce) { .gallery-album-card .gallery-cover__photo, .gallery-photo__expand { transition: none; } }
