/* Realistic book covers: scoped to blog library only */
.library-grid{perspective:1200px}
.library-item{perspective:1100px}
.library-cover-link{display:block;perspective:1000px;overflow:visible!important;isolation:isolate;padding:10px 12px 18px 20px}
.library-book{position:relative!important;transform-style:preserve-3d;transform-origin:left center;transform:rotateY(-13deg) rotateZ(-1deg);transition:transform .85s cubic-bezier(.2,.75,.2,1),filter .6s!important;box-shadow:inset 5px 0 9px #0007,inset 14px 0 15px #ffffff12,inset -3px 0 4px #0005,7px 10px 0 -4px #e8ddcb,9px 13px 0 -5px #b6a894,18px 24px 35px #0a071350!important;border:2px solid #b8a078!important;border-left:9px solid #251526!important;border-radius:3px 10px 10px 3px!important;overflow:visible!important;background:radial-gradient(ellipse at 72% 24%,#ffffff19,transparent 55%),repeating-linear-gradient(115deg,#ffffff05 0 1px,transparent 1px 5px),linear-gradient(145deg,color-mix(in srgb,var(--cover) 86%,white),var(--cover) 60%,#160d21)!important}
.library-book::before{content:'';position:absolute;z-index:3;pointer-events:none;inset:9px;border:1px solid #d9b77c9c;border-radius:2px 7px 7px 2px;box-shadow:inset 0 0 0 4px #e2c38d12,0 0 0 1px #120c1a77}
.library-book::after{content:'';position:absolute;z-index:-1;pointer-events:none;top:3%;bottom:3%;left:-14px;width:13px;background:linear-gradient(90deg,#1b1020,#6b4964 25%,#2c1833 58%,#0f0a14);transform:rotateY(-70deg);transform-origin:right center;border-radius:3px 0 0 3px;box-shadow:inset 2px 0 2px #ffffff22}
.library-book > *{position:relative;z-index:4;text-shadow:0 2px 3px #0007}
.library-book .book-art{filter:drop-shadow(1px 2px 1px #100b18a8);text-shadow:0 1px 0 #fff8,0 3px 4px #0009!important}
.library-cover-link:hover .library-book,.library-cover-link:focus-visible .library-book{transform:rotateY(-29deg) rotateZ(-2deg) translateY(-10px) translateX(9px);filter:brightness(1.13)}
.library-item:nth-child(2) .library-book{transform:rotateY(-10deg) rotateZ(1deg)}
.library-item:nth-child(3) .library-book{transform:rotateY(-15deg) rotateZ(-1.5deg)}
.library-item:nth-child(2) .library-cover-link:hover .library-book,.library-item:nth-child(3) .library-cover-link:hover .library-book{transform:rotateY(-29deg) rotateZ(-2deg) translateY(-10px) translateX(9px)}
@media(max-width:650px){.library-cover-link{padding:9px 12px 16px 18px}.library-book{transform:rotateY(-8deg)!important}.library-cover-link:active .library-book{transform:rotateY(-20deg) translateY(-4px)!important}}
@media(prefers-reduced-motion:reduce){.library-book{transition:none!important}}
