.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gallery-book-link{position:absolute;left:26%;bottom:1%;width:12.5%;height:23%;z-index:18;display:block;transform:rotate(-12deg);transform-origin:50% 85%;filter:drop-shadow(0 10px 7px #0009);transition:transform .25s ease,filter .25s ease;cursor:pointer}
.gallery-book-link img{width:100%;height:100%;object-fit:contain}
.gallery-book-link:hover,.gallery-book-link:focus-visible{transform:rotate(-5deg) translateY(-3%);filter:drop-shadow(0 0 15px #d2a56c)}
.gallery-book-link:focus-visible{outline:3px solid white;outline-offset:5px}
.gallery-world{background:#130c08 url('scene/gallery-page.jpg') center/cover}
.gallery-world,.gallery-world *{cursor:url('scene/gallery-cursor.png') 24 24,auto!important}
.gallery-world::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 15%,#10070455 60%,#0b0400de 100%);pointer-events:none}
.gallery-book-stage{position:absolute;inset:6vh 9vw;display:grid;place-items:center;perspective:1800px}
.gallery-spread{position:relative;width:min(90vw,1160px);height:min(74vh,690px);display:grid;grid-template-columns:1fr 1fr;filter:drop-shadow(0 24px 25px #100600b8)}
.gallery-page{position:relative;overflow:hidden;background:#ba9161 url('scene/gallery-page.jpg') center/cover;border:1px solid #56371d;box-shadow:inset 0 0 40px #4a2b106b}
.gallery-page-left{border-radius:7px 0 0 7px}
.gallery-page-right{border-radius:0 7px 7px 0}
.gallery-page-left::after,.gallery-page-right::after{content:"";position:absolute;top:0;bottom:0;width:20px;pointer-events:none}
.gallery-page-left::after{right:0;background:linear-gradient(90deg,transparent,#4d2f174f)}
.gallery-page-right::after{left:0;background:linear-gradient(90deg,#4d2f174f,transparent)}
.gallery-media{position:absolute;inset:7%;display:grid;place-items:center;overflow:hidden;border:1px solid #6d4827;box-shadow:inset 0 0 22px #6d3d1a40}
.gallery-media img,.gallery-media video{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.gallery-turn{position:absolute;inset:0;transform-origin:left center;pointer-events:none;background:#ba9161 url('scene/gallery-page.jpg') center/cover;border-left:1px solid #5a3517;backface-visibility:hidden;opacity:0}
.gallery-world.turning-next .gallery-turn{opacity:1;animation:gallery-flip-next .72s cubic-bezier(.18,.56,.34,1) both}
.gallery-world.turning-prev .gallery-turn{opacity:1;transform-origin:right center;animation:gallery-flip-prev .72s cubic-bezier(.18,.56,.34,1) both}
.gallery-arrow,.gallery-close{position:absolute;z-index:5;border:0;background:#1e1008b8;cursor:pointer}
.gallery-arrow{top:50%;width:52px;height:82px;transform:translateY(-50%);border:1px solid #cc9d5d;border-radius:5px}
.gallery-arrow::before,.gallery-close::before,.gallery-close::after{content:"";position:absolute;background:#f2d1a4}
.gallery-arrow::before{width:18px;height:18px;top:30px;left:17px;border-right:3px solid #f2d1a4;border-bottom:3px solid #f2d1a4;transform:rotate(-45deg);background:none}
.gallery-next{right:3vw}
.gallery-prev{left:3vw}
.gallery-prev::before{transform:rotate(135deg);left:16px}
.gallery-close{top:20px;right:20px;width:42px;height:42px;border:1px solid #cc9d5d;border-radius:50%}
.gallery-close::before,.gallery-close::after{width:22px;height:2px;left:9px;top:19px;transform:rotate(45deg)}
.gallery-close::after{transform:rotate(-45deg)}
.gallery-arrow:focus-visible,.gallery-close:focus-visible{outline:3px solid white;outline-offset:3px}
.gallery-arrow:disabled{opacity:.28;cursor:default}
@keyframes gallery-flip-next{0%{transform:rotateY(0);opacity:1}
100%{transform:rotateY(-180deg);opacity:0}
}
@keyframes gallery-flip-prev{0%{transform:rotateY(180deg);opacity:0}
100%{transform:rotateY(0);opacity:1}
}
@media(max-width:700px){.gallery-book-link{left:24%;width:17%;height:18%;bottom:2%}
.gallery-book-stage{inset:17vh 11vw}
.gallery-spread{height:56vh}
.gallery-arrow{width:39px;height:60px}
.gallery-arrow::before{top:21px;left:11px}
.gallery-next{right:1vw}
.gallery-prev{left:1vw}
}
@media(prefers-reduced-motion:reduce){.gallery-world.turning-next .gallery-turn,.gallery-world.turning-prev .gallery-turn{animation-duration:.01ms}
.gallery-book-link{transition:none}
}
