/* Fill the browser viewing area. */

#image-viewer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #111;
}

/* Allow horizontal scrolling; hide vertical overflow. */

#image-scroll {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  direction: ltr;
}

/* Keep the image proportional and prevent it shrinking to fit. */

#large-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  user-select: none;
}

/* Controls float above the image. */

.image-controls {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.image-controls button {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #777;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: bold 20px Arial, sans-serif;
  cursor: pointer;
}

body {
}

ul.custom-box-list {
  list-style-type: square;
}

