/* Portfolio Chapter 01: compact horizontal cards like the homepage rails.
   No jumbo featured card, no vertical card grid, no forced full viewport height. */
body .znj-rebuild>.znj-r-screen.znj-work-showcase,
body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-work-showcase{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 padding-block:clamp(32px,5svh,68px)!important;overflow:visible!important;
}
body .znj-work-showcase>.znj-r-container,
body.znj-inner-scroll-enabled .znj-work-showcase>.znj-r-container{
 width:min(calc(100% - 40px),1320px)!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 flex:initial!important;min-height:0!important;max-height:none!important;
 gap:clamp(11px,1.65svh,19px)!important;margin-inline:auto!important;
}
.znj-work-showcase__intro{margin:0!important;align-items:end!important}
.znj-work-showcase__intro>.znj-work-showcase__count{
 color:#dbb982!important;font:700 11px/1.5 Manrope,Arial,sans-serif!important;
 white-space:normal!important;margin:0!important;padding:8px 12px!important;
 background:rgba(222,173,103,.07);border:1px solid rgba(226,185,115,.25);
 border-radius:999px;
}
.znj-work-showcase .znj-r-pills{margin:0!important;padding:0!important;flex-shrink:0}
body .znj-work-showcase .znj-work-showcase__rail,
body.znj-inner-scroll-enabled .znj-work-showcase .znj-work-showcase__rail{
 display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;
 gap:clamp(11px,1.35vw,18px)!important;width:100%!important;max-width:100%!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;
 -webkit-overflow-scrolling:touch;
 padding:6px 3px 13px!important;margin:0!important;
 scrollbar-width:none!important;touch-action:pan-x pan-y;
}
.znj-work-showcase__rail::-webkit-scrollbar{display:none}
body .znj-work-showcase__rail>.znj-r-card,
body.znj-inner-scroll-enabled .znj-work-showcase__rail>.znj-r-card{
 flex:0 0 clamp(245px,25vw,330px)!important;
 width:clamp(245px,25vw,330px)!important;
 max-width:clamp(245px,25vw,330px)!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 align-self:stretch!important;scroll-snap-align:start;
}
.znj-work-showcase__rail .znj-r-card-image{
 display:block!important;width:100%!important;height:clamp(128px,17svh,170px)!important;
 max-height:170px!important;aspect-ratio:auto!important;object-fit:cover!important;
}
.znj-work-showcase__rail .znj-r-card-body{
 padding:clamp(13px,1.35vw,19px)!important;gap:8px!important;
}
.znj-work-showcase__rail .znj-r-card p{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;overflow:hidden!important;
}
.znj-work-showcase .page-pagination,.znj-work-showcase .znj-r-note{margin:0!important}
.znj-work-showcase .znj-r-scroll-hint{margin:0!important}
.znj-work-showcase__rail:focus-visible{outline:2px solid #e5bf86;outline-offset:2px}
@media(max-width:900px){
 body .znj-rebuild>.znj-r-screen.znj-work-showcase,
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-work-showcase{
  padding-block:clamp(26px,4svh,46px)!important;
 }
 body .znj-work-showcase>.znj-r-container{width:calc(100% - 30px)!important}
 .znj-work-showcase__intro{align-items:flex-start!important}
 body .znj-work-showcase__rail>.znj-r-card,
 body.znj-inner-scroll-enabled .znj-work-showcase__rail>.znj-r-card{
  flex-basis:min(77vw,315px)!important;width:min(77vw,315px)!important;
  max-width:min(77vw,315px)!important;
 }
 .znj-work-showcase__rail .znj-r-card-image{height:145px!important}
}
@media(prefers-reduced-motion:reduce){.znj-work-showcase__rail{scroll-behavior:auto!important}}
