/* Flipbooks: the double-page spread is always shown, on every screen (Oct 2026). Loaded only on flipbook pages (body.flipsp). */
.flipsp .book-wrap{display:flex;justify-content:center}
.flipsp .book-wrap #book{min-width:0!important;min-height:0!important}
/* phones and small tablets held upright: the spread uses the whole screen width */
@media (orientation:portrait) and (max-width:800px){
.flipsp .book-wrap{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:0;padding:0 4px;box-sizing:border-box;scroll-margin-top:80px}
.flipsp .book-wrap #book{width:min(100%,calc((100vh - 160px)*var(--sr,1.6)))!important;width:min(100%,calc((100dvh - 160px)*var(--sr,1.6)))!important;max-width:none!important}
}
/* phone held sideways: the header scrolls away, the spread and its buttons fill the screen height */
@media (orientation:landscape) and (max-height:500px){
.flipsp header{position:relative!important;top:auto!important}
.flipsp .book-wrap{margin:4px 0 0!important;scroll-margin-top:4px}
.flipsp .book-wrap #book{width:min(100%,calc((100vh - 52px)*var(--sr,1.6)))!important;width:min(100%,calc((100dvh - 52px)*var(--sr,1.6)))!important;max-width:none!important}
.flipsp .ctrl{margin-top:6px!important}.flipsp .ctrl button{padding:7px 14px!important}
}
