/* V10 additive only: the existing .author-book remains completely unchanged for ONE book. */
#books .book-stage.books-duo{isolation:isolate}
#books .book-stage .author-book-back{z-index:2;left:104px;top:109px;width:145px;height:218px;transform:rotate(9deg) perspective(480px) rotateY(-7deg);box-shadow:16px 18px 29px rgba(9,43,88,.31)}
#books .book-stage.books-duo>.author-book:not(.author-book-back){z-index:3}
#books .book-stage .author-book-back img{object-fit:cover;width:100%;height:100%;display:block}
@media(max-width:1250px){#books .book-stage .author-book-back{left:25%;top:107px;width:125px;height:188px}}
@media(max-width:430px){#books .book-stage .author-book-back{left:21%;top:107px;width:100px;height:150px;transform:rotate(10deg) perspective(420px) rotateY(-7deg);box-shadow:10px 13px 23px rgba(9,43,88,.29)}}

/* V10.1 — THIRD optional peeking cover. Primary .author-book remains exactly V7.2 in one-cover mode. */
#books .book-stage.books-trio{isolation:isolate}
#books .book-stage.books-trio>.author-book-third{
 left:158px;top:159px;width:124px;height:188px;z-index:1;
 transform:rotate(17deg) perspective(480px) rotateY(-11deg);
 box-shadow:18px 23px 27px rgba(7,43,85,.26);
}
#books .book-stage.books-trio>.author-book-back{z-index:2}
#books .book-stage.books-trio>.author-book:not(.author-book-third):not(.author-book-back){z-index:3}
#books .book-stage.books-trio>.author-stamp{z-index:5}
#books .book-stage .author-book-third img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:1250px){
 #books .book-stage.books-trio>.author-book-third{left:37%;top:157px;width:109px;height:165px}
}
@media(max-width:430px){
 #books .book-stage.books-trio>.author-book-third{
  left:38%;top:181px;width:85px;height:128px;
  transform:rotate(15deg) perspective(360px) rotateY(-8deg);
  box-shadow:9px 13px 17px rgba(7,43,85,.25)
 }
}
@media(prefers-reduced-motion:reduce){#books .book-stage .author-book-third{transition:none}}

/* V10.10 — MOBILE ONLY, AND ONLY IF 2 OR 3 FEATURED COVERS ARE PUBLISHED.
   Single-cover V7.2 portrait/cover positions and all desktop styling stay intact.
   Use the existing real cover elements, rather than duplicate images. */
@media(max-width:760px){
  #books .book-stage:is(.books-duo,.books-trio){
    --multi-portrait-height:clamp(258px,80vw,365px);
    --multi-cover-height:clamp(132px,40vw,188px);
    height:calc(var(--multi-portrait-height) + var(--multi-cover-height) + 96px);
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:0;
    isolation:isolate;
  }
  /* Portrait occupies its own upper area. No cover can overlay the face. */
  #books .book-stage:is(.books-duo,.books-trio)>.author-stage-sheen{
    left:50%;right:auto;top:8px;
    width:min(90%,380px);
    height:calc(var(--multi-portrait-height) + 8px);
    transform:translateX(-50%);
  }
  #books .book-stage:is(.books-duo,.books-trio)>.author-portrait{
    left:50%;right:auto;top:16px;
    width:min(72%,310px);
    height:calc(var(--multi-portrait-height) - 8px);
    transform:translateX(-50%);
  }
  /* The existing image nodes become a compact cover row BELOW the portrait.
     Their original DOM order is preserved; CSS order reflects owner slots 1–3. */
  #books .book-stage:is(.books-duo,.books-trio)>.author-book{
    position:relative;
    top:auto;left:auto;right:auto;bottom:auto;
    flex:0 0 auto;
    align-self:flex-end;
    margin-bottom:72px;
    transform-origin:50% 90%;
  }
  #books .book-stage:is(.books-duo,.books-trio)>.author-book:not(.author-book-back):not(.author-book-third){
    order:1;
    width:calc(var(--multi-cover-height) * .68);
    height:var(--multi-cover-height);
    z-index:3;
    transform:rotate(-7deg);
  }
  #books .book-stage:is(.books-duo,.books-trio)>.author-book-back{
    order:2;
    width:calc(var(--multi-cover-height) * .65);
    height:calc(var(--multi-cover-height) * .96);
    margin-left:-9px;
    z-index:2;
    transform:rotate(7deg);
  }
  #books .book-stage.books-trio>.author-book-third{
    order:3;
    width:calc(var(--multi-cover-height) * .61);
    height:calc(var(--multi-cover-height) * .91);
    margin-left:-10px;
    z-index:1;
    transform:rotate(12deg);
  }
  #books .book-stage:is(.books-duo,.books-trio)>.author-stamp{
    left:50%;right:auto;bottom:0;
    transform:translateX(-50%);
    width:max-content;max-width:calc(100% - 12px);
    z-index:5;
  }
}
