[data-enlarge] {
  cursor: zoom-in;
}

[data-enlarge]:focus-visible {
  outline: 2px solid #7ce8ef;
  outline-offset: 4px;
}

html:has(.pbc-image-viewer[open]) {
  overflow: hidden;
}

.pbc-image-viewer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.pbc-image-viewer::backdrop {
  background: rgb(0 1 19 / 94%);
}

.pbc-image-viewer__canvas {
  display: flex;
  box-sizing: border-box;
  height: 100%;
  padding: 58px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.pbc-image-viewer__picture {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.pbc-image-viewer[data-scalable] .pbc-image-viewer__picture {
  cursor: zoom-in;
}

.pbc-image-viewer[data-actual-size] .pbc-image-viewer__picture {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.pbc-image-viewer__close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #bdc5df;
  border-radius: 50%;
  color: #fff;
  background: #0b1533;
  font: 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.pbc-image-viewer__close:focus-visible {
  outline: 2px solid #7ce8ef;
  outline-offset: 3px;
}
