html.jh-photo-open { overflow: hidden; }

.jh-zoom-dialog {
  border: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  color: #fff7f2;
  background: #1b1423;
  overflow: hidden;
}

.jh-zoom-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.jh-zoom-dialog::backdrop { background: #1b1423; }

.jh-zoom-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .6rem;
}

.jh-zoom-toolbar button {
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #b9a0c7;
  border-radius: 4px;
  color: inherit;
  background: #30223b;
  cursor: pointer;
}

.jh-zoom-toolbar button:hover:not(:disabled) { background: #51375f; }
.jh-zoom-toolbar button:disabled { opacity: .55; cursor: default; }
.jh-zoom-viewport { overflow: auto; overscroll-behavior: contain; }
.jh-zoom-canvas { display: grid; place-items: center; min-width: 100%; min-height: 100%; width: max-content; }
.jh-zoom-image { display: block; max-width: none; max-height: none; object-fit: contain; }
.jh-zoom-image[hidden] { display: none; }
.jh-zoom-status { min-height: 2rem; padding: .3rem .6rem; font-size: .9rem; text-align: center; }
