/* Shared art-field policy; original image bytes, aspect ratios and text remain intact. */
.art-normalized{--art-wide-span:116%;--art-field-softness:18px;--art-field-opacity:.16;--art-portrait-height:clamp(300px,55svh,640px);--art-wide-height:clamp(240px,36svh,380px)}
.art-normalized.book-nav-paged:not(.book-nav-legacy) .art{isolation:isolate}
.art-normalized.book-nav-paged:not(.book-nav-legacy) .art::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--art-source);background-size:cover;background-position:center;filter:blur(var(--art-field-softness));opacity:var(--art-field-opacity);mask-image:radial-gradient(ellipse at center,#000 10%,transparent 74%);pointer-events:none}
@media(min-width:1051px) and (min-height:581px){
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene.wide .art{width:var(--art-wide-span);max-width:none;overflow:visible;align-self:stretch}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene.wide.right .art{justify-self:end}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene.wide .art img{width:100%;height:auto;max-height:100%;object-fit:contain;mask-image:linear-gradient(90deg,#000 0%,#000 72%,transparent 100%),linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene.wide.right .art img{mask-image:linear-gradient(270deg,#000 0%,#000 72%,transparent 100%),linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent)}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene:not(.wide) .art::before{display:none}
}
@media(max-width:1050px),(max-height:580px){
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .art{height:var(--art-portrait-height);width:100%}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .scene.wide .art{height:var(--art-wide-height)}
 .art-normalized.book-nav-paged:not(.book-nav-legacy) .art img{object-fit:contain;object-position:center;mask-image:linear-gradient(180deg,#000 0%,#000 89%,transparent 100%)}
 .living-artbook.art-normalized.seamless-book .mobileart{height:calc(min(100vw / var(--art-ratio,1.167),55svh) + 64px);padding-top:64px;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(#000 87%,transparent 100%)}
}

/* Full-height is the default for new configurable chapters. Approved legacy books keep their layout. */
@media(min-width:1051px) and (min-height:581px){
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene .art,
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene.wide.right .art{width:104%;height:100%;max-width:none;align-self:stretch;overflow:hidden;display:block;position:relative}
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene .art{justify-self:start}
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene.right .art{justify-self:end}
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene .art img,
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene.wide.right .art img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:var(--art-focus,50% 50%);mask-image:linear-gradient(90deg,#000 0%,#000 76%,transparent 100%);mask-composite:add}
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene.right .art img,
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene.wide.right .art img{mask-image:linear-gradient(270deg,#000 0%,#000 76%,transparent 100%)}
}
.art-normalized.art-full-height .art::before{display:none}
@media(max-width:1050px),(max-height:580px){
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene .art{height:clamp(360px,64svh,680px);width:100%}
 .art-normalized.art-full-height.book-nav-paged:not(.book-nav-legacy) .scene .art img{width:100%;height:100%;object-fit:cover;object-position:var(--art-mobile-focus,var(--art-focus,50% 50%));mask-image:linear-gradient(180deg,#000 0%,#000 88%,transparent 100%)}
}
