/* RetrINK 0.1.229 — original Leah gallery, not Tony or sitewide gallery.
   The previous 768-1365px CSS hid five native category buttons on SCROLL
   and replaced them with FILTER: ALL. Five buttons fit the sticky bar. */
@media (min-width:768px) {
 nav.rtg185-sticky[aria-label="Leah gallery quick filters"] {
   display:flex!important;
   width:min(1180px,calc(100vw - 24px))!important;
   max-width:calc(100vw - 24px)!important;
   min-width:0!important;
   flex-wrap:wrap!important;
   justify-content:center!important;
   align-items:center!important;
   gap:10px!important;
 }
 nav.rtg185-sticky[aria-label="Leah gallery quick filters"] .rgm181-sticky-categories {
   display:flex!important;
   visibility:visible!important;
   opacity:1!important;
   flex:0 1 auto!important;
   max-width:calc(100% - 54px)!important;
   min-width:0!important;
   justify-content:center!important;
   align-items:center!important;
   flex-wrap:wrap!important;
   gap:7px!important;
 }
 nav.rtg185-sticky[aria-label="Leah gallery quick filters"] .rgm181-sticky-categories .rgm181-cat {
   display:inline-flex!important;
   min-width:0!important;
   min-height:36px!important;
   padding:7px 11px!important;
   font:800 12px/1.2 Arial,sans-serif!important;
   white-space:nowrap!important;
 }
 nav.rtg185-sticky[aria-label="Leah gallery quick filters"] .rgm181-dropdown {
   display:none!important;
 }
 nav.rtg185-sticky[aria-label="Leah gallery quick filters"] .rgm181-to-top {
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   flex:0 0 40px!important;height:40px!important;width:40px!important;
 }
}
/* Keep the original compact dropdown for phones only, not desktop zoom. */

/* v0.1.230 — respect Leah's original JS-controlled visibility.
   v0.1.229's desktop display:flex!important was more specific than the
   shared .rgm181-sticky[hidden] / .rtg185-sticky[hidden] rules and therefore
   displayed the bar at the top of the hero even while `hidden` was true.
   Keep the original 5-button desktop layout only while the gallery controller
   has actually revealed the bar; do not change its scroll/exit boundaries. */
nav.rtg185-sticky[aria-label="Leah gallery quick filters"][hidden] {
  display:none!important;
}

/* Leah's actual PageLayer row yb39106. The live Behind the Ink is generated
   from these original seven text widgets + the original image. On the editor
   canvas make the genuine widgets resemble that composition while retaining
   PageLayer click/select/edit handles. All rules are editor-only. */
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 {
 box-sizing:border-box!important;
 background:linear-gradient(165deg,#090e20,#080a19 65%,#090b1d)!important;
 background-image:linear-gradient(165deg,#090e20,#080a19 65%,#090b1d)!important;
 overflow:visible!important;
 padding:clamp(48px,5vw,76px) clamp(18px,3vw,42px) 72px!important;
 min-height:0!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 > .pagelayer-row-holder {
 display:grid!important;
 grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr)!important;
 align-items:start!important;
 align-content:start!important;
 gap:clamp(25px,3.8vw,55px)!important;
 min-width:0!important;
 min-height:0!important;
 height:auto!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 > .pagelayer-row-holder > :is(.p-dbb5281,.p-obg5374) {
 box-sizing:border-box!important;display:block!important;
 width:100%!important;max-width:100%!important;
 min-width:0!important;min-height:0!important;height:auto!important;
 flex:0 0 auto!important;align-self:start!important;
 position:relative!important;margin:0!important;transform:none!important;float:none!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-dbb5281 > .pagelayer-col-holder {
 display:block!important;align-items:initial!important;justify-content:initial!important;
 box-sizing:border-box!important;position:relative!important;
 width:100%!important;max-width:100%!important;
 min-width:0!important;min-height:0!important;height:auto!important;
 margin:0!important;padding:clamp(64px,8vw,125px) 0 0!important;
 transform:none!important;
}
/* The obsolete absolute-positioned 450px neon rectangle is NOT part of the
   approved story; hide it only in the editor preview, not the source. */
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-9xh9961,
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .pagelayer-parallax-window,
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .pagelayer-background-overlay {
 display:none!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-3t01721 {
 box-sizing:border-box!important;display:block!important;position:relative!important;
 width:100%!important;max-width:100%!important;
 margin:0!important;padding:0!important;transform:none!important;
 overflow:visible!important;background:none!important;border:0!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-3t01721 :is(.pagelayer-img,.pagelayer-image-holder,.pagelayer-img-holder) {
 width:100%!important;max-width:100%!important;transform:none!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-3t01721 img {
 box-sizing:border-box!important;display:block!important;
 width:100%!important;max-width:100%!important;
 height:clamp(345px,34vw,525px)!important;
 object-fit:cover!important;object-position:center 38%!important;
 border:1px solid rgba(128,183,204,.28)!important;border-radius:17px!important;
 filter:grayscale(1)!important;transform:none!important;
 box-shadow:0 25px 65px #0007!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-dbb5281 > .pagelayer-col-holder::after {
 content:'';display:block;height:1px;width:calc(100% - 30px);
 margin:13px 15px 0;background:linear-gradient(90deg,#51e8f9,#fd58cc,transparent);
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-obg5374 > .pagelayer-col-holder {
 box-sizing:border-box!important;display:flex!important;
 flex-direction:column!important;align-items:stretch!important;
 min-height:0!important;height:auto!important;
 width:100%!important;max-width:100%!important;
 padding:0!important;margin:0!important;gap:0!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-kk58623 {
 order:0!important;margin:0 0 29px!important;padding:0!important;
 width:100%!important;max-width:100%!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-kk58623 :is(h1,h2,h3) {
 margin:0!important;padding:0!important;color:#fff!important;
 font:800 clamp(35px,3.6vw,54px)/1.12 Georgia,'Times New Roman',serif!important;
 letter-spacing:-.035em!important;text-align:left!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-kk58623 em{font-style:normal!important;color:#ff50c6!important;}
/* The original six empty heading widgets created the visible 'Type / to open
   widget list' placeholders and extra gaps. They remain in PageLayer source. */
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 :is(.p-9ae584,.p-fmc7594,.p-y275367,.p-gxp7534,.p-msl4799,.p-flu4334){display:none!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-bva1521{order:1!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-pm33334{order:2!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-3kn16{order:3!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-5uk2618{order:4!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-onx30{order:5!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-8xu1476{order:6!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-xni8516{order:7!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step {
 box-sizing:border-box!important;position:relative!important;
 display:block!important;width:100%!important;max-width:100%!important;
 min-width:0!important;flex:0 0 auto!important;
 border-left:1px solid rgba(70,225,246,.33)!important;
 border-top:0!important;border-right:0!important;border-bottom:0!important;
 border-radius:0!important;
 padding:0 0 26px 27px!important;margin:0!important;
 transform:none!important;background:none!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step::before {
 content:'●  ' attr(data-rl229-chapter)!important;display:block!important;
 font:800 10px/1.45 Arial,sans-serif!important;letter-spacing:.19em!important;
 color:#4be8f7!important;white-space:normal!important;margin:0 0 8px!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step::after {
 content:attr(data-rl229-title)!important;display:block!important;position:absolute!important;
 left:27px;top:24px;right:0;min-height:24px;
 color:#fff!important;font:800 clamp(16px,1.2vw,19px)/1.26 Arial,sans-serif!important;
 letter-spacing:.005em!important;text-transform:uppercase!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step :is(h2,h3,p,li){
 display:block!important;box-sizing:border-box!important;list-style:none!important;
 margin:0!important;padding:0!important;
 color:#cfdaea!important;
 font:400 clamp(14px,1vw,17px)/1.58 Arial,sans-serif!important;
 text-align:left!important;text-transform:none!important;
 word-break:normal!important;overflow-wrap:break-word!important;
}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step :is(h2,h3){padding-top:34px!important;}
body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .rl229-story-step li::marker{content:'';}
@media(max-width:950px){
 body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 > .pagelayer-row-holder{
   grid-template-columns:minmax(0,1fr)!important;gap:27px!important;}
 body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-dbb5281 > .pagelayer-col-holder{
   padding-top:0!important;max-width:620px!important;margin:0 auto!important;}
 body:is(.rl227-canvas,.rl229-story-editor) .p-yb39106 .p-3t01721 img{height:auto!important;max-height:540px!important;}
}
