.pb-image-viewer {
  box-sizing: border-box;
  width: min(96vw, 1260px);
  max-width: none;
  max-height: 96vh;
  max-height: 96dvh;
  margin: auto;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
}

.pb-image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.pb-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.pb-image-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pb-image-stage img {
  display: block;
  min-width: 0;
  max-width: 100%;
  max-height: calc(96vh - 5rem);
  max-height: calc(96dvh - 5rem);
  object-fit: contain;
}

.pb-image-viewer button {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #aaa;
  border-radius: 0.25rem;
  background: #242424;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.pb-image-viewer button:hover {
  background: #414141;
  color: #fff;
}

.pb-image-viewer :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pb-image-stage button {
  width: 2.5rem;
  padding: 0.4rem 0;
  font-size: 1.5rem;
}

.pb-image-viewer button[hidden] {
  display: none;
}
