.q-gesture-viewport { touch-action: pan-y; }
.q-gesture-zoomed { touch-action: none; }

.q-gesture-scene {
  position: relative;
  transform-origin: center;
}

.q-gesture-turning, .q-gesture-zoomed {
  cursor: grab;
}

.q-gesture-turning {
  user-select: none;
}

.q-gesture-turning:active, .q-gesture-zoomed:active {
  cursor: grabbing;
}

.q-turn-paper {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 50% 55%;
}

.q-turn-beneath, .q-turn-remain, .q-turn-copy, .q-turn-hinge, .q-turn-face, .q-turn-blank {
  position: absolute;
  inset: 0;
}

.q-turn-beneath, .q-turn-copy, .q-turn-face {
  overflow: hidden;
}

.q-turn-copy > :first-child {
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  margin: 0;
}

.q-turn-hinge {
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
}

.q-turn-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.q-turn-reverse {
  transform: rotateY(180deg);
}

.q-turn-blank {
  border-inline: 1px solid #ad986a84;
  background: linear-gradient(90deg, #e6d8bb, #f5ecda 11%, #faf1de 83%, #e8dcc7);
}

.q-turn-shadow {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -23px;
  width: 46px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #322a1a68, transparent);
  will-change: transform, opacity;
}

.q-turn-lightweight .q-turn-shadow {
  visibility: hidden;
}

.q-turn-lightweight .q-turn-blank {
  background: #f4ead5;
}
