a:focus-visible,
button:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}
body {
  font-family: Inter, system-ui, sans-serif;
}
section[id] {
  scroll-margin-top: 5rem;
}
.mobile-navigation {
  padding: 0.5rem 0 1rem;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgb(0 0 0 / 10%);
}
.mobile-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem;
}
.gallery-open {
  overflow: hidden;
}
.image-dialog {
  max-width: min(calc(100% - 2rem), 1000px);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
.image-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}
.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
}
.image-dialog button {
  display: block;
  min-height: 44px;
  margin-left: auto;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
