/* Layout shell for the static rebuild: replaces Readymag's viewer chrome with normal document scrolling. */
html, body {
  height: auto;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}
@media (prefers-color-scheme: dark) {
  html, body { background: #fff; }
}
#app { position: relative; overflow: hidden; }
.rm-root { position: relative; transform-origin: 0 0; }
.rm-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.rm-root .mag,
.rm-root .mag .mag-pages-container {
  position: relative;
  min-width: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  background: transparent;
}
.rm-page { position: relative; z-index: 1; overflow: hidden; }
.rm-page .page-content-container { position: relative; overflow: visible; outline: 0; }
.rm-root .mag .mag-pages-container .above-pages-container.rm-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}
.rm-fixed .rmwidget { pointer-events: all; }
.rm-fixed .animation-container { pointer-events: none; }
[data-hover] .rmwidget { cursor: inherit; }
/* hover-reveal videos fill the exact box of the image beneath them */
.rm-fill video { object-fit: cover; display: block; }
.rm-fill { overflow: hidden; }
/* rotating crystals: press to enlarge */
.rm-pop { cursor: pointer; transform-origin: 50% 50%; -webkit-tap-highlight-color: transparent; user-select: none; }
.rmwidget.video > div:has(> .rm-fill) { width: 100%; height: 100%; }
