/*
 * Reader fullscreen on the embedding page (see embed.js). The doubled class and
 * !important win over theme rules that size or shift the reader iframe.
 */
html.folio-epaper-locked,
body.folio-epaper-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html body iframe.folio-epaper-reader-frame.folio-epaper-fullscreen.folio-epaper-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2147483647 !important;
}

html body .folio-epaper-flattened.folio-epaper-flattened {
  transform: none !important;
  perspective: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  contain: none !important;
  will-change: auto !important;
  z-index: auto !important;
  isolation: auto !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
