/* One coordinate system for all three lossless painting slices. */
[data-book]{position:relative;isolation:isolate;border:0;background:none;overflow:visible}
.book-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}
.book-content{position:relative;box-sizing:border-box;display:flow-root;overflow-wrap:anywhere}
[data-book="spread"]:not([data-book-single]) .book-content{display:grid;grid-template-columns:596fr 128fr 596fr;padding:7.2916666667% 7.03125%}
.book-left{grid-column:1;min-width:0}
.book-right{grid-column:3;min-width:0}
[data-book-single] .book-content{padding:13.4615384615% 12.9807692308% 13.4615384615% 15.3846153846%}
/* On a phone the library book is one page: what the book is, then what is in it. */
[data-book="spread"][data-book-single] .book-content{display:flex;flex-direction:column}
[data-book="spread"][data-book-single] :is(.book-left,.book-right){display:contents}
/* The strip of left page fades into the dark instead of ending on a hard cut. */
[data-book-single] .book-art{-webkit-mask-image:linear-gradient(90deg,transparent,#000 6.5%);mask-image:linear-gradient(90deg,transparent,#000 6.5%)}
