.project-links .common-gallery-open {
  display: block;
  width: 100%;
  padding: .7rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 680;
  text-align: start;
  cursor: pointer;
}
.project-links .common-gallery-open:hover { text-decoration: underline; text-underline-offset: .22em; }
.unit-dialog:has(.unit-gallery:not([hidden])) { width: min(100% - 2rem, 42rem); }
.unit-gallery { margin-block-start: 1rem; }
.unit-gallery figure { margin: 0; }
.unit-gallery figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--white);
}
.unit-gallery figcaption { margin-top: .5rem; color: var(--muted); font-size: .86rem; }
.unit-gallery-thumbnails {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .4rem .1rem;
  margin-top: .3rem;
}
.unit-gallery-thumbnails button {
  flex: 0 0 4.1rem;
  padding: 2px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}
.unit-gallery-thumbnails button[aria-pressed="true"] { border-color: var(--gold); }
.unit-gallery-thumbnails button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.unit-gallery-thumbnails img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
