.space-filters[hidden],
.lightbox:not([open]) {
  display: none;
}

.space-gallery {
  margin-top: 24px;
}

.space-gallery .project {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
}

.space-gallery .project.hidden {
  display: none;
}

.space-gallery .project img {
  filter: none;
}

.space-gallery .project-overlay {
  opacity: 1;
}

.space-gallery .project:focus-visible,
.space-filters .filter-btn:focus-visible {
  outline: 3px solid #3a4a3f;
  outline-offset: 4px;
}

.gallery-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border-inline-start: 3px solid #8b7355;
  background: #f4f1ec;
  color: #3a4a3f;
  font: 400 1rem/1.65 Kanit, sans-serif;
}

.gallery-notice a {
  display: inline-block;
  margin-inline-start: .5em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}

dialog.lightbox[open] {
  display: flex;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  opacity: 1;
  pointer-events: auto;
}

dialog.lightbox::backdrop {
  background: transparent;
}

dialog.lightbox button:focus-visible {
  outline: 3px solid #c6a15b;
  outline-offset: 4px;
}
