/* White paper, original MIO ink and mint. The photographs keep their own colors. */
.mio-book-surface{position:relative;isolation:isolate;perspective:1700px;transform-style:preserve-3d}
.mio-book-surface:before{content:'';position:absolute;inset:5px -3px -5px 3px;border:1px solid var(--mio-line,#dcebed);border-radius:inherit;background:var(--paper,#fff);box-shadow:2px 3px 0 var(--paper,#fff),3px 4px 0 var(--mio-line,#dcebed),5px 6px 0 var(--paper,#fff),0 18px 32px -18px #12191a55;z-index:-1;pointer-events:none}
.mio-page-turn{position:absolute;inset:0;z-index:12;display:block;perspective:1500px;pointer-events:none;border-radius:inherit;overflow:visible}
.mio-page-still,.mio-page-front,.mio-page-back{position:absolute;top:0;bottom:0;display:block;overflow:hidden;background:var(--paper,#fff);border-radius:inherit}
.mio-page-still{left:0;width:50%;border-top-right-radius:0;border-bottom-right-radius:0}
.mio-page-leaf{position:absolute;top:0;bottom:0;left:50%;width:50%;transform-origin:left center;transform-style:preserve-3d;display:block}
.mio-page-front,.mio-page-back{inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.mio-page-front{transform:translateZ(.6px)}.mio-page-back{transform:rotateY(180deg) translateZ(.6px)}
.mio-page-turn :is(.mio-page-still,.mio-page-front,.mio-page-back)>img{position:absolute!important;inset:0 auto 0 0!important;width:200%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:var(--mio-book-fit,cover)!important;object-position:center!important;border-radius:0!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;animation:none!important;transition:none!important;pointer-events:none}
.mio-page-turn .mio-page-front>img{left:-100%!important}
.mio-page-turn.is-backward .mio-page-still{left:50%;border-radius:0}
.mio-page-turn.is-backward .mio-page-still>img{left:-100%!important}
.mio-page-turn.is-backward .mio-page-leaf{left:0;transform-origin:right center}
.mio-page-turn.is-backward .mio-page-front>img{left:0!important}
.mio-page-turn.is-backward .mio-page-back>img{left:-100%!important}
.mio-page-shade{position:absolute;inset:0;background:linear-gradient(90deg,#12191a00,#12191a);opacity:0;pointer-events:none;transform:translateZ(1px);border-radius:inherit}
.mio-page-turn.is-backward .mio-page-shade{background:linear-gradient(270deg,#12191a00,#12191a)}
.mio-book-gallery [data-gallery-track]{position:relative!important;display:block!important;overflow:visible!important;scroll-snap-type:none!important;touch-action:pan-y}
.mio-book-gallery [data-gallery-track]>[data-gallery-full]{display:none!important;width:100%!important;position:relative!important;overflow:hidden;border-radius:inherit}
.mio-book-gallery [data-gallery-track]>[data-gallery-full].mio-book-current{display:block!important}
.mio-book-gallery [data-gallery-track]>[data-gallery-full]>img{width:100%;height:100%;object-fit:cover}
.mio-book-gallery .mio-gallery-bar{margin-top:18px}
.mio-book-gallery :is([data-gallery-prev],[data-gallery-next]){min-width:44px;min-height:44px}
.mio-book-gallery [data-gallery-track] .mio-page-turn img{animation:none!important}
.mio-lightbox-stage.mio-book-surface>img{position:relative;z-index:1}
.mio-lightbox-stage.mio-book-surface>button{z-index:20}
.mio-media-stage.mio-book-surface>img,.mio-media-stage.mio-book-surface>canvas{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){.mio-page-turn{display:none!important}.mio-book-surface{transform-style:flat}}
/* Base print and turning leaf use the same crop; zoom remains available in the CRM. */
.mio-book-surface>img,.mio-book-gallery .mio-book-current>img{animation:none!important;scale:1!important;rotate:none!important;translate:none!important}
