[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.overlay-open {
  overflow: hidden;
}

[data-toggle-events],
[data-toggle-photos] {
  background: transparent;
}

[data-toggle-events] {
  border: 0;
}

[data-filter][aria-pressed="true"] {
  background: #22346e !important;
  color: #fff !important;
  border-color: #22346e !important;
}

[data-filter][aria-pressed="false"] {
  background: #fff !important;
  color: #1a1c23 !important;
  border-color: rgba(26, 28, 35, .18) !important;
}

.gallery-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px 16px 32px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: zoom-out;
}

.gallery-viewer[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.gallery-viewer::backdrop {
  background: rgba(14, 20, 44, .94);
}

.gallery-viewer-layout {
  display: flex;
  width: min(100%, 1400px);
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 32px);
}

.gallery-viewer figure {
  min-width: 0;
  margin: 0;
  text-align: center;
  cursor: default;
  touch-action: pan-y pinch-zoom;
}

.gallery-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
}

.gallery-viewer figcaption {
  margin-top: 18px;
  font: 500 13px/1.6 'Shippori Mincho', serif;
  letter-spacing: .12em;
}

.gallery-viewer button {
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 8px 14px;
  font: 500 13px/1.2 'Shippori Mincho', serif;
  cursor: pointer;
}

.gallery-viewer [data-previous],
.gallery-viewer [data-next] {
  padding: 4px;
  border: 0;
  font-size: clamp(24px, 4vw, 36px);
}

.gallery-viewer [aria-pressed="true"] {
  background: #fff;
  color: #22346e;
}

.gallery-viewer-close {
  position: absolute;
  right: 24px;
  top: 20px;
}

@media (width < 1280px) {
  html:not(.site-interactive) .kb-hd {
    flex-wrap: wrap;
  }

  html:not(.site-interactive) .kb-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }

  html:not(.site-interactive) .kb-burger {
    display: none !important;
  }
}
