.image-viewer-trigger {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-image > .image-viewer-trigger {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.image-viewer-trigger:focus-visible {
  outline: 3px solid #a56700;
  outline-offset: -3px;
}

.image-viewer {
  width: min(96vw, 100rem);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: .5rem;
  background: #171717;
  color: #fff;
}

.image-viewer::backdrop { background: rgb(0 0 0 / 84%); }

.image-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .75rem;
}

.image-viewer-toolbar span { flex: 1 1 15rem; }

.image-viewer-toolbar button {
  padding: .5rem .75rem;
  border: 1px solid #aaa;
  border-radius: .25rem;
  background: #252525;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.image-viewer-stage {
  overflow: auto;
  max-height: 75dvh;
}

.image-viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75dvh;
  margin: auto;
}

.image-viewer-stage.actual-size img {
  max-width: none;
  max-height: none;
  margin: 0;
}
