.book-gallery{min-width:0;color:#111}
.book-gallery-stage{position:relative;aspect-ratio:1;background:#17164b;overflow:hidden;touch-action:pan-y}
.book-gallery-slide{position:absolute;inset:0;display:block}
.book-gallery-slide[hidden]{display:none!important}
.book-gallery-slide img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
.book-gallery-arrow{position:absolute;z-index:1;top:calc(50% - 23px);width:46px;height:46px;border:0;border-radius:50%;background:transparent;color:#fff;box-shadow:none;text-shadow:0 1px 4px #000b;font-size:29px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.book-gallery-arrow:hover{background:transparent}
.book-gallery-arrow[data-gallery-prev]{left:10px}
.book-gallery-arrow[data-gallery-next]{right:10px}
.book-gallery-thumbs{display:flex;gap:10px;padding:12px 14px 0;justify-content:center}
.book-gallery-thumb{width:60px;height:60px;padding:2px;border:2px solid #ddd;border-radius:9px;background:#fff;cursor:pointer;overflow:hidden}
.book-gallery-thumb img{width:100%;height:100%;object-fit:contain;display:block;border-radius:5px}
.book-gallery-thumb[aria-pressed="true"]{border-color:#111;box-shadow:0 2px 0 #111}
.book-gallery-caption{font-size:12px;line-height:1.5;text-align:center;padding:8px 12px 10px;margin:0!important;color:#444;min-height:36px;box-sizing:border-box}
.book-gallery--detail .book-gallery-stage{border:2px solid #111;border-radius:20px}
.book-gallery--detail .book-gallery-thumbs{justify-content:flex-start;padding:15px 0 0}
.book-gallery--detail .book-gallery-thumb{width:78px;height:78px}
.book-gallery--detail .book-gallery-caption{text-align:left;padding-left:0}
@media(max-width:480px){.book-gallery-arrow{width:42px;height:42px;top:calc(50% - 21px)}.book-gallery-thumb{width:56px;height:56px}}

[data-hide-previews] .book-gallery-thumbs{display:none}
[data-hide-previews] .book-gallery-caption{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
