/* Small interaction styles; the original site's theme remains intact. */
@media (max-width: 1020px) {
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
    line-height: 1.5;
  }
}

.gallery-link { cursor: zoom-in; }
.gallery-link:focus-visible,
.wp-block-navigation button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.static-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.static-lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.static-lightbox__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.static-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-bottom: 8px;
}
.static-lightbox__count { font-size: 16px; }
.static-lightbox__image-area { position: relative; min-height: 0; }
.static-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.static-lightbox__caption {
  margin: 0;
  padding: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.static-lightbox button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
}
.static-lightbox button[hidden] { display: none; }
.static-lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.static-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.static-lightbox__previous,
.static-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.static-lightbox__previous { left: 0; }
.static-lightbox__next { right: 0; }
