.website-gallery-page { background: #f5f8f8; }
.gallery-main { min-height: 60vh; padding: clamp(42px, 7vw, 84px) 20px 88px; }
.gallery-shell { width: min(1180px, 100%); margin: 0 auto; }
.gallery-heading, .gallery-unavailable { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.gallery-eyebrow { margin: 0 0 10px; color: #08717e; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-heading h1, .gallery-unavailable h1 { margin: 0; color: #082f43; font-family: var(--font-display, Georgia, serif); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
.gallery-heading > p:last-child, .gallery-unavailable > p:not(.gallery-eyebrow) { margin: 16px auto 0; color: #526b77; font-size: 1.05rem; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(8,47,67,.09); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(8,47,67,.07); }
.gallery-card__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-card picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dce8e9; }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-card__open:hover img, .gallery-card__open:focus-visible img { transform: scale(1.035); }
.gallery-card figcaption { padding: 12px 15px 14px; color: #355361; font-size: .92rem; line-height: 1.45; }
.gallery-unavailable { padding: 56px 24px; border: 1px solid rgba(8,47,67,.1); border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(8,47,67,.06); }
.gallery-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; margin-top: 22px; padding: 0 21px; border-radius: 999px; background: #06293b; color: #fff; font-weight: 750; text-decoration: none; }
dialog[open].gallery-viewer { display: grid; }
.gallery-viewer { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(1100px, calc(100vw - 32px)); height: min(900px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: 0; padding: 58px 68px 24px; box-sizing: border-box; overflow: hidden; border: 0; border-radius: 20px; background: #061923; color: #fff; }
.gallery-viewer::backdrop { background: rgba(1, 14, 23, .88); }
.gallery-viewer__figure { display: grid; min-width: 0; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; margin: 0; place-items: center; }
.gallery-viewer__figure img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-viewer__figure figcaption { align-self: end; padding-top: 10px; color: rgba(255,255,255,.82); text-align: center; }
.gallery-viewer__close, .gallery-viewer__step { position: absolute; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; cursor: pointer; }
.gallery-viewer__close { top: 12px; right: 12px; font-size: 1.7rem; }
.gallery-viewer__step { top: 50%; transform: translateY(-50%); }
.gallery-viewer__step--previous { left: 12px; }
.gallery-viewer__step--next { right: 12px; }
.gallery-viewer button:focus-visible, .gallery-card__open:focus-visible { outline: 3px solid #10a6ba; outline-offset: 3px; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } }
@media (max-width: 560px) {
  .gallery-main { padding: 38px 14px 64px; }
  .gallery-heading { margin-bottom: 26px; }
  .gallery-grid { gap: 10px; }
  .gallery-card { border-radius: 13px; }
  .gallery-card figcaption { padding: 9px 10px 11px; font-size: .82rem; }
  .gallery-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 52px 44px 18px; border-radius: 14px; }
  .gallery-viewer__step { width: 36px; height: 36px; font-size: 1.7rem; }
  .gallery-viewer__step--previous { left: 4px; }
  .gallery-viewer__step--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-card img { transition: none; } }
