.page-curtain {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2147483647;
  width: 120vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  background: var(--curtain-color, #39452b);
  will-change: transform;
}

/* Slanted leading edge for a wipe travelling from right to left. */
.page-curtain[data-direction="left"] {
  clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

/* Slanted leading edge for a wipe travelling from left to right. */
.page-curtain[data-direction="right"] {
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
