[data-photo-viewer]:hover,
.photo-viewer-dialog button:hover {
  filter: none;
}

.photo-viewer-dialog {
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.photo-viewer-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}

.photo-viewer-image-button {
  display: block;
  width: 100%;
  max-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.photo-viewer-dialog .photo-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 56px);
  float: right;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0;
  padding: 0;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #172536;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.photo-viewer-dialog button:focus-visible {
  outline: 2px solid #fff;
}

.photo-viewer-content {
  position: relative;
  display: block;
  max-height: inherit;
}

.photo-viewer-content > :is(img, svg:not(.window-opening-arrow)) {
  display: block;
  width: 100%;
  max-height: inherit;
  object-fit: contain;
}
