/* Original Javanese line work stays on the paper and in its outer margins.
   These are paint-only layers: no measured height and no interactive surface. */
.theme-thm32 .thm32-world { overflow:clip; }
.theme-thm32 .thm32-world::before,
.theme-thm32 .thm32-world::after {
    content:'';
    position:absolute;
    z-index:-1;
    pointer-events:none;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
}
.theme-thm32 .thm32-world::before {
    width:clamp(175px,22vw,330px);
    height:clamp(275px,56dvh,530px);
    left:-30px;
    bottom:22px;
    background-image:url('../img/janur-melati.svg');
    opacity:.28;
}
.theme-thm32 .thm32-world::after {
    width:clamp(105px,13vw,185px);
    height:clamp(205px,48dvh,405px);
    right:1.8vw;
    top:clamp(105px,16dvh,165px);
    background-image:url('../img/wayang-purwa.svg');
    opacity:.22;
}
.theme-thm32[data-book-paginated='true'] .thm32-leaf__column {
    isolation:isolate;
    --thm32-paper-ornament-width:150px;
    --thm32-paper-ornament-height:170px;
}
.theme-thm32[data-book-paginated='true'] .thm32-leaf__column::before {
    content:'';
    position:absolute;
    z-index:-1;
    pointer-events:none;
    right:calc(var(--thm32-leaf-pad-x) * -.55);
    bottom:calc(var(--thm32-leaf-pad-y) * -.6);
    width:min(52%,var(--thm32-paper-ornament-width));
    height:var(--thm32-paper-ornament-height);
    background:bottom right / contain no-repeat url('../img/sekar-botanical.svg');
    opacity:.18;
}
.theme-thm32[data-book-paginated='true'] .thm32-leaf__column:nth-last-child(2)::before {
    right:auto;
    left:calc(var(--thm32-leaf-pad-x) * -.55);
    transform:scaleX(-1);
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='intro'],[data-book-chapter='couple'],[data-book-chapter='events']) .thm32-leaf__column {
    --thm32-paper-ornament-width:130px;
    --thm32-paper-ornament-height:215px;
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='intro'],[data-book-chapter='couple'],[data-book-chapter='events']) .thm32-leaf__column::before {
    background-image:url('../img/janur-melati.svg');
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='story'],[data-book-chapter='gallery'],[data-book-chapter='video']) .thm32-leaf__column:last-child {
    --thm32-paper-ornament-width:110px;
    --thm32-paper-ornament-height:195px;
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='story'],[data-book-chapter='gallery'],[data-book-chapter='video']) .thm32-leaf__column:last-child::before {
    background-image:url('../img/wayang-purwa.svg');
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='quote'],[data-book-chapter='closing']) .thm32-leaf__column:last-child {
    --thm32-paper-ornament-width:125px;
    --thm32-paper-ornament-height:180px;
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='quote'],[data-book-chapter='closing']) .thm32-leaf__column:last-child::before {
    background-image:url('../img/gunungan-sekar.svg');
}
.theme-thm32[data-book-paginated='true'] :is([data-book-chapter='rsvp'],[data-book-chapter='wishes']) .thm32-leaf__column::before {
    opacity:.11;
    --thm32-paper-ornament-height:125px;
}
@media(max-width:900px) {
    .theme-thm32 .thm32-world::before { width:190px; height:340px; left:-30px; bottom:37px; opacity:.22; }
    .theme-thm32 .thm32-world::after { width:115px; height:230px; right:0; top:145px; opacity:.18; }
    .theme-thm32[data-book-paginated='true'] .thm32-leaf__column { --thm32-paper-ornament-width:115px; --thm32-paper-ornament-height:155px; }
    .theme-thm32[data-book-paginated='true'] :is([data-book-chapter='intro'],[data-book-chapter='couple'],[data-book-chapter='events']) .thm32-leaf__column { --thm32-paper-ornament-height:185px; }
    .theme-thm32[data-book-paginated='true'] :is([data-book-chapter='story'],[data-book-chapter='gallery'],[data-book-chapter='video'],[data-book-chapter='quote'],[data-book-chapter='closing']) .thm32-leaf__column:last-child { --thm32-paper-ornament-height:160px; }
}
@media(max-width:500px) {
    .theme-thm32 .thm32-world::before { width:135px; height:270px; left:-30px; bottom:40px; opacity:.2; }
    .theme-thm32 .thm32-world::after { width:88px; height:190px; right:0; top:154px; opacity:.18; }
    .theme-thm32[data-book-paginated='true'] .thm32-leaf__column::before { width:70%; opacity:.14; }
    .theme-thm32[data-book-paginated='true'] .thm32-leaf__column { --thm32-paper-ornament-height:125px; }
    .theme-thm32[data-book-paginated='true'] :is([data-book-chapter='intro'],[data-book-chapter='couple'],[data-book-chapter='events']) .thm32-leaf__column { --thm32-paper-ornament-height:155px; }
    .theme-thm32[data-book-paginated='true'] :is([data-book-chapter='story'],[data-book-chapter='gallery'],[data-book-chapter='video'],[data-book-chapter='quote'],[data-book-chapter='closing']) .thm32-leaf__column:last-child { --thm32-paper-ornament-height:140px; }
    .theme-thm32[data-book-paginated='true'] :is([data-book-chapter='rsvp'],[data-book-chapter='wishes']) .thm32-leaf__column::before { opacity:.09; --thm32-paper-ornament-height:100px; }
}
