/* Fixed book frames: covers intentionally stretch to fill, without letterboxing or cropping. */
.editorial-page .library-main .library-cover-link{--cover-slot-width:150px;--cover-slot-height:200px;display:flex;width:150px;max-width:none;height:200px;align-items:flex-end;justify-content:center}
.editorial-page .library-main .library-cover-link .book-cover:has(>img),
.editorial-page .library-main .library-cover-link .book-cover.has-pdf-cover,
.editorial-page .book-detail-cover .book-cover:has(>img),
.editorial-page .book-detail-cover .book-cover.has-pdf-cover,
.editorial-page .home-journal .home-book-cover .book-cover:has(>img){display:block;width:var(--cover-slot-width);height:var(--cover-slot-height);min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;margin:0;padding:0;flex:none;background:transparent;border:0;overflow:hidden}
.editorial-page .library-main .library-cover-link .book-cover>img,
.editorial-page .library-main .library-cover-link .book-cover>.pdf-book-cover,
.editorial-page .book-detail-cover .book-cover>img,
.editorial-page .book-detail-cover .book-cover>.pdf-book-cover,
.editorial-page .home-journal .home-book-cover .book-cover>img{display:block;position:static;inset:auto;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;object-fit:fill;object-position:center;background:transparent;margin:0;padding:0;border:0}
.editorial-page .book-cover.has-pdf-cover>.book-cover-text{display:none}
.editorial-page .book-cover>.pdf-book-cover[hidden]{display:none}
.editorial-page .book-detail-cover{--cover-slot-width:min(300px,calc((100vw - 112px)*.32));--cover-slot-height:420px;min-height:0;display:flex;align-items:center;justify-content:center}
.editorial-page .book-detail-cover .book-cover:has(>img),.editorial-page .book-detail-cover .book-cover.has-pdf-cover{border-radius:1px 3px 3px 1px;box-shadow:1px 0 0 #0002,3px 1px 0 #d5d0c5,4px 1px 0 #a79f92,6px 7px 12px #27201a20}
.editorial-page .home-journal .home-book-cover{--cover-slot-width:120px;--cover-slot-height:180px;justify-content:center}
@media(max-width:1150px){.editorial-page .book-detail-cover{--cover-slot-width:min(260px,calc((100vw - 112px)*.32));--cover-slot-height:380px}}
@media(max-width:760px){.editorial-page .library-main .library-cover-link{--cover-slot-width:115px;--cover-slot-height:165px;width:115px;height:165px}.editorial-page .book-detail-cover{--cover-slot-width:min(180px,calc((100vw - 40px)*.32));--cover-slot-height:280px}.editorial-page .home-journal .home-book-cover{--cover-slot-width:90px;--cover-slot-height:135px}}
@media(max-width:540px){.editorial-page .library-main .library-cover-link{--cover-slot-width:100px;--cover-slot-height:145px;width:100px;height:145px}.editorial-page .book-detail-cover{--cover-slot-width:min(230px,calc(100vw - 120px));--cover-slot-height:330px}}
@media(max-width:380px){.editorial-page .library-main .library-cover-link{--cover-slot-width:90px;--cover-slot-height:134px;width:90px;height:134px}}
/* Upload preview uses the same stretched book frame. */
#book-dialog .book-cover-slot{height:144px;min-height:0;align-items:center;justify-content:center}
#book-dialog .book-cover-slot .cover-preview{display:block;width:96px;height:144px;max-width:none;max-height:none;object-fit:fill;aspect-ratio:auto}
#book-dialog .book-cover-slot .cover-preview[hidden]{display:none}
@media(max-width:600px){#book-dialog .book-cover-slot{height:112px}#book-dialog .book-cover-slot .cover-preview{width:74px;height:112px;max-width:none;max-height:none}}
