/* An authored coverflow in the existing paper, ink and scarlet world.
   Depth comes from transforming real edition imagery, not simulated bindings. */
.carousel-enhanced{--carousel-step:320px;--carousel-card:320px}
.carousel-enhanced .carousel-viewport{perspective:1200px;overflow:hidden;touch-action:pan-y;padding:12px 0 0}
.carousel-enhanced .shelf{display:block;position:relative;height:470px;transform-style:preserve-3d;margin:0;max-width:none}
.carousel-enhanced .book{position:absolute;top:8px;left:calc(50% - var(--carousel-card)/2);width:var(--carousel-card);transform:translate3d(calc(var(--card-x)*var(--carousel-step)),0,var(--card-z)) rotateY(var(--card-turn)) scale(var(--card-scale));opacity:var(--card-opacity);transform-origin:center;backface-visibility:hidden;transition:transform 650ms cubic-bezier(.16,1,.3,1),opacity 650ms ease-out;text-align:center}
.carousel-enhanced .book .cover-image{transition:none;transform:none;width:100%;height:auto}
.carousel-enhanced .book h3{font:24px/1.2 Georgia,serif;letter-spacing:-.02em;margin:18px 0 6px;text-wrap:balance}
.carousel-enhanced .book>p{font-size:13px}
.carousel-enhanced .book .single-buy{width:fit-content;gap:26px;margin:12px auto 0;padding:8px 0;font-size:12px}
.carousel-enhanced .book:not(.carousel-active) h3,.carousel-enhanced .book:not(.carousel-active)>p,.carousel-enhanced .book:not(.carousel-active) .single-buy{visibility:hidden}
.carousel-enhanced .book-details-button{outline-offset:-5px}
.carousel-controls{display:flex;align-items:center;justify-content:center;gap:36px;margin-top:8px}
.carousel-navigation{display:flex;align-items:center;gap:18px}
.carousel-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px;background:transparent;border:1px solid #cbc8be;color:#1d2221}
.carousel-controls button:hover{border-color:#ba2925;color:#ba2925}
.carousel-controls svg{width:22px;height:22px;flex:none}
.carousel-count{font-size:12px;min-width:35px;text-align:center;font-variant-numeric:tabular-nums}
.carousel-controls .carousel-pause{border:0;padding:8px 0;font-size:12px;min-width:135px;justify-content:flex-start}
.carousel-controls .carousel-pause:disabled{color:#545750;opacity:1;cursor:default}
.carousel-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.carousel-cover-note{font-size:11px;color:#545750;text-align:center;margin:18px 0 0}
.related-books.carousel-enhanced h2{margin-bottom:32px}
@media(max-width:1000px){.carousel-enhanced{--carousel-step:245px;--carousel-card:280px}.carousel-enhanced .shelf{height:430px}}
@media(max-width:640px){.carousel-enhanced{--carousel-step:175px;--carousel-card:230px}.carousel-enhanced .carousel-viewport{margin:0 -22px;padding-top:10px}.carousel-enhanced .shelf{height:385px}.carousel-enhanced .book{top:8px}.carousel-enhanced .book h3{font-size:23px;max-width:22ch;margin-top:15px}.carousel-enhanced .book>p{font-size:12px}.carousel-enhanced .book .single-buy{margin-top:10px}.carousel-controls{gap:22px;margin-top:0;flex-wrap:wrap}.carousel-navigation{gap:14px}.carousel-controls .carousel-pause{min-width:130px}.carousel-cover-note{font-size:10px}.carousel-enhanced .book[data-depth="2"]{opacity:0;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.carousel-enhanced .book{transition:none}}
