html,
body {
  height: 100%;
}
body {
  overflow: hidden;
}
#viewer[hidden] {
  display: none;
}

#viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#viewport {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overflow-anchor: none;
  background: #232729;
}
canvas {
  display: block;
  position: sticky;
  left: 0;
  top: 0;
  touch-action: pan-x pan-y;
  cursor: grab;
}
canvas.dragging {
  cursor: grabbing;
}
