/* X-IMAGE 023: desktop-only layout correction, isolated from mobile. */
.xi-grid-density-desktop{display:none}
@media (min-width:1024px) and (min-height:951px), (min-width:1024px) and (orientation:landscape) {
 html body.portfolio-page .xi-sticky-gallery-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters{display:flex!important;justify-content:flex-start!important;align-items:center!important;align-content:flex-start!important;gap:8px!important;flex-wrap:wrap!important;width:100%!important;margin:0 0 14px!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters>.filter-button{flex:0 0 auto!important;width:auto!important;margin:0!important;white-space:nowrap!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;margin:0 0 14px!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes{display:inline-flex!important;flex:0 0 auto!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 116px!important;box-sizing:border-box!important;width:116px!important;min-width:116px!important;max-width:116px!important;min-height:39px!important;padding:7px 10px!important;margin:0!important;white-space:nowrap!important;font-size:14px!important;line-height:1.3!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random]{position:relative!important;padding-right:26px!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random] .xi-random-icon{position:static!important;right:auto!important;top:auto!important;transform:none!important;width:15px!important;height:15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random] .xi-random-icon svg{width:17px!important;height:17px!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-end!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;padding:0!important;margin:0!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:none!important;visibility:hidden!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{display:flex!important;align-items:center!important;gap:12px!important;white-space:nowrap!important}
 html body.portfolio-page .xi-desktop-density-label{font-size:13px;color:#657e95;letter-spacing:.04em}
 html body.portfolio-page .xi-desktop-density-buttons{display:flex!important;align-items:center!important;gap:8px!important}
 html body.portfolio-page .xi-desktop-density-buttons>button{appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;position:static!important;box-sizing:border-box!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #b9c9d8!important;border-radius:9px!important;background:#fff!important;color:#5b7188!important;font:600 17px/1 system-ui,sans-serif!important;text-shadow:none!important;box-shadow:none!important;transform:none!important;letter-spacing:0!important;cursor:pointer!important}
 html body.portfolio-page .xi-desktop-density-buttons>button.active{color:#2375b2!important;border-color:#6385a1!important;text-shadow:0 0 7px rgba(30,137,208,.65)!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}
 html body.portfolio-page[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
 html body.portfolio-page[data-grid-columns="4"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
 html body.portfolio-page[data-grid-columns="6"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}}/* V138 consistency: removed obsolete 1024-1250px 92px mode-button override; desktop 110px baseline lives in portfolio-controls-clean-138.css. *//* Mobile: never show desktop density controls; original portrait/landscape controls remain untouched. */


@media (max-width:1023px){html body.portfolio-page .xi-grid-density-desktop{display:none!important}}/* 025: Keep all four desktop choices visible. Two-column view retains natural image proportions; no forced crop/background. */


@media (min-width:1024px){html body.portfolio-page .xi-desktop-density-buttons>button[data-desktop-columns="6"]{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}}/* 026: Desktop category page keeps nine category pills separate from mode and density row. */


@media (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;align-content:flex-start!important;min-width:0!important;width:100%!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters>.filter-button{flex:0 0 auto!important;width:auto!important;max-width:none!important;margin:0!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:14px!important;flex-wrap:wrap!important;min-width:0!important;width:100%!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{display:flex!important}
 /* The desktop 2-column card is as tall as its width permits, without cutting the work. */
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images{height:auto!important;aspect-ratio:1.5/1!important;position:relative!important;overflow:hidden!important;background:#e6edf3!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image{height:100%!important;width:100%!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:transparent!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image::before{content:"";position:absolute;inset:-12px;background-image:var(--xi-work-bg);background-size:cover;background-position:center;filter:blur(16px);opacity:.55;pointer-events:none}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image img{position:relative!important;z-index:1!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
}/* 027: strict desktop layout, never let category pills inherit the wide spaced row. */


@media (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important;align-items:stretch!important;gap:0!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters{display:flex!important;position:relative!important;inset:auto!important;float:none!important;clear:both!important;grid-column:1/-1!important;justify-content:flex-start!important;justify-items:start!important;align-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0 0 12px!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters>.filter-button{display:inline-flex!important;position:static!important;float:none!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;max-width:none!important;justify-content:center!important;margin:0!important;transform:none!important;white-space:nowrap!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;position:relative!important;inset:auto!important;float:none!important;clear:both!important;grid-column:1/-1!important;justify-content:space-between!important;align-items:center!important;align-content:center!important;flex-wrap:wrap!important;gap:12px!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0 0 12px!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density{position:static!important;float:none!important;flex:0 0 auto!important;min-width:0!important;max-width:100%!important;transform:none!important;margin-left:auto!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{display:flex!important;position:static!important;visibility:visible!important;opacity:1!important;gap:12px!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:none!important;visibility:hidden!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes{display:inline-flex!important;position:static!important;flex:0 0 auto!important;gap:0!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode{flex:0 0 116px!important;width:116px!important;min-width:116px!important;max-width:116px!important;box-sizing:border-box!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random]{padding-right:24px!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random] .xi-random-icon{transform:translateY(-50%)!important;transition:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random] .xi-random-icon svg{transform-origin:center!important;transform:rotate(0deg);transition:transform .55s cubic-bezier(.2,.7,.2,1)!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode=random].xi027-spinning .xi-random-icon svg{animation:xi027-spin .65s ease-in-out 1!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card{box-shadow:0 5px 18px rgba(34,62,91,.13)!important;overflow:hidden!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info>span:first-child{display:inline-block!important;visibility:visible!important;opacity:1!important;position:static!important;width:auto!important;height:auto!important;font-size:12px!important;line-height:1.5!important;color:#62819a!important;margin:0 0 3px!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images{aspect-ratio:1.5/1!important;overflow:hidden!important;background:#e9eef3!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:#e9eef3!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image::before{content:""!important;display:block!important;position:absolute!important;inset:-15px!important;z-index:0!important;background-image:var(--xi-work-bg)!important;background-size:cover!important;background-position:center!important;filter:blur(20px)!important;opacity:.68!important;transform:scale(1.06)!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image img{position:relative!important;z-index:1!important;display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.15))!important}
}
@keyframes xi027-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@media (min-width:1024px) and (max-width:1240px){html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{justify-content:flex-start!important}html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density{margin-left:0!important}}/* 029: hard isolate desktop category/mode/density rows, including sticky and category pages */


@media (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav,
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;gap:10px!important;overflow:visible!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters{display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters>.filter-button{flex:0 0 auto!important;margin:0!important;position:static!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;flex-flow:row wrap!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density{position:relative!important;inset:auto!important;margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{display:flex!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image{position:relative!important;isolation:isolate!important;background:#e8edf2!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image>.xi029-blur{display:block!important;position:absolute!important;inset:-22px!important;z-index:0!important;background-size:cover!important;background-position:center!important;filter:blur(18px)!important;opacity:.78!important;transform:scale(1.06)!important;pointer-events:none!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images .work-image>img{position:relative!important;z-index:1!important;object-fit:contain!important;width:100%!important;height:100%!important;filter:drop-shadow(0 5px 10px rgba(0,0,0,.24))!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card{box-shadow:0 7px 20px rgba(33,63,95,.17)!important}
}
@media (max-width:1023px){.xi029-blur{display:none!important}}/* 030: desktop only; prevent mobile density ghost controls and category spreading */


@media screen and (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters{display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;align-content:flex-start!important;align-items:center!important;column-gap:9px!important;row-gap:9px!important;width:100%!important;position:static!important;transform:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.portfolio-filters>button{flex:0 0 auto!important;width:auto!important;margin:0!important;position:static!important}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:100%!important;position:static!important;transform:none!important}
 html body.portfolio-page .xi-grid-density .xi-grid-density-portrait,html body.portfolio-page .xi-grid-density .xi-grid-density-landscape,html body.portfolio-page .xi-grid-density-portrait,html body.portfolio-page .xi-grid-density-landscape{display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important;overflow:hidden!important;pointer-events:none!important;position:absolute!important}
 html body.portfolio-page .xi-grid-density-desktop{display:flex!important;visibility:visible!important;opacity:1!important;position:static!important}
 html body.portfolio-page .xi-desktop-density-buttons{display:flex!important;gap:8px!important}
 html body.portfolio-page .xi-desktop-density-buttons>button{display:flex!important;visibility:visible!important;opacity:1!important}
 html body.portfolio-page .xi-work-mode[data-mode=random].active .xi-random-icon svg{animation:xi030-rotate 2.8s linear infinite!important}
 html body.portfolio-page .xi-work-mode[data-mode=random].xi027-spinning .xi-random-icon svg{animation:xi030-rotate .65s linear 1!important}
 /* 2 columns: quiet fill matching the mobile single-column idea, without loud blurred duplicates */
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-images{background:#eef2f5!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-image{background:#eef2f5!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-image::before{display:none!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-image>.xi029-blur{inset:0!important;filter:blur(24px) saturate(.65)!important;opacity:.22!important;transform:scale(1.08)!important}
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-image>img{object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,.12))!important}
}
@keyframes xi030-rotate{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html body.portfolio-page .xi-work-mode[data-mode=random].active .xi-random-icon svg{animation:none!important}}/* 031: compact desktop controls right-aligned, category pills independent. */


@media screen and (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;width:100%!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density{margin-left:auto!important;justify-content:flex-end!important;flex:0 0 auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{gap:8px!important;}
 html body.portfolio-page .xi-desktop-density-label{font-size:12px!important;white-space:nowrap!important;}
 html body.portfolio-page .xi-desktop-density-buttons{gap:6px!important;}
 html body.portfolio-page .xi-desktop-density-buttons>button{flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:32px!important;min-height:32px!important;font-size:14px!important;border-radius:8px!important;}
 html body.portfolio-page .xi-work-mode[data-mode=random] .xi-random-icon{animation:xi031-random-spin 3s linear infinite!important;transform-origin:center center!important;}
 html body.portfolio-page .xi-work-mode[data-mode=random] .xi-random-icon svg{animation:none!important;}
 html body.portfolio-page .xi-gallery-panel .work-grid{transition:column-gap .32s ease,row-gap .32s ease!important;}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card{transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .35s ease,box-shadow .25s ease!important;}
}
@keyframes xi031-random-spin{from{transform:translateY(-50%) rotate(0deg)}to{transform:translateY(-50%) rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html body.portfolio-page .xi-work-mode[data-mode=random] .xi-random-icon{animation:none!important}}/* 032: reverse the random-arrow rotation direction; no layout changes. */


@keyframes xi031-random-spin{from{transform:translateY(-50%) rotate(0deg)}to{transform:translateY(-50%) rotate(-360deg)}}/* 033: animate the actual SVG counter-clockwise. Prior animation targeted wrapper and was overridden by its positioning transform. */


@media (min-width:1024px){
 html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{animation:none!important;transform:translateY(-50%)!important;}
 html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon svg{animation:xi033-ccw 2.8s linear infinite!important;transform-origin:50% 50%!important;transform-box:fill-box!important;transition:none!important;}
}
@keyframes xi033-ccw{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
@media (prefers-reduced-motion:reduce){html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon svg{animation:none!important}}/* 034: category pages desktop density: compact, subtle depth, anchored to right edge. */


@media screen and (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;width:100%!important;max-width:none!important;min-width:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-grid-density{display:flex!important;position:static!important;float:none!important;margin:0 0 0 auto!important;margin-left:auto!important;align-self:center!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop{display:flex!important;align-items:center!important;justify-content:flex-end!important;width:auto!important;gap:8px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label{font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;width:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;font-size:14px!important;font-weight:500!important;line-height:1!important;border-radius:9px!important;box-shadow:0 2px 6px rgba(42,69,98,.12)!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button[aria-pressed="true"]{box-shadow:0 2px 7px rgba(37,97,148,.2),0 0 9px rgba(61,135,196,.12)!important;}
}/* 035: rotate only while Random Works is selected, counterclockwise. */


html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon,html body.portfolio-page .xi-work-mode[data-mode="random"]:not(.active) .xi-random-icon svg{
  animation: none !important;
}
html body.portfolio-page .xi-work-mode[data-mode="random"].active .xi-random-icon svg {
  animation: xi035-random-ccw 2.8s linear infinite !important;
  transform-origin: center center !important;
  transform-box: fill-box !important;
  transition: none !important;
}
@keyframes xi035-random-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  html body.portfolio-page .xi-work-mode[data-mode="random"].active .xi-random-icon svg { animation: none !important; }}/* 036: Independent soft-pill desktop density buttons, mobile styles untouched. */


@media (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons{gap:9px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button{
  appearance:none!important;box-sizing:border-box!important;
  flex:0 0 49px!important;width:49px!important;min-width:49px!important;max-width:49px!important;
  height:35px!important;min-height:35px!important;max-height:35px!important;
  border:1px solid #c6d3de!important;border-radius:999px!important;
  background:linear-gradient(180deg,#fff 0%,#f4f6f8 100%)!important;
  color:#62788c!important;font:500 16px/1 system-ui,sans-serif!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 2px 5px rgba(32,61,85,.15)!important;
  text-shadow:none!important;transform:none!important;
  transition:background .2s ease,box-shadow .2s ease,border-color .2s ease,color .2s ease!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button[aria-pressed="true"]{
  color:#1679b7!important;border-color:#8aaac4!important;
  background:linear-gradient(180deg,#e9eff4,#fff)!important;
  box-shadow:inset 0 2px 4px rgba(53,87,112,.15),0 1px 4px rgba(48,98,137,.13)!important;
  text-shadow:0 0 5px rgba(52,147,214,.42)!important;
 }
}/* 037: lower-profile, less-rounded desktop buttons only. */


@media (min-width:1024px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button{
  height:27px!important;min-height:27px!important;max-height:27px!important;
  border-radius:11px!important;
 }
}/* 039: category-page desktop density controls anchored to right edge.
   Override legacy positioning on category pages; leave mobile untouched. */


@media screen and (min-width:1024px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{position:relative!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav>.xi-modes-density-row{
   position:relative!important;display:flex!important;flex-direction:row!important;
   width:100%!important;min-width:0!important;max-width:none!important;
   justify-content:flex-end!important;align-items:center!important;
   margin-left:0!important;margin-right:0!important;transform:none!important;
   padding-left:0!important;padding-right:0!important;box-sizing:border-box!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-grid-density{
   position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
   float:none!important;display:flex!important;flex:0 0 auto!important;
   width:max-content!important;max-width:100%!important;min-width:0!important;
   margin:0 0 0 auto!important;transform:none!important;justify-content:flex-end!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-desktop{
   position:static!important;display:flex!important;justify-content:flex-end!important;
   width:max-content!important;max-width:100%!important;margin-left:auto!important;transform:none!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-desktop-density-buttons{
   position:static!important;left:auto!important;right:auto!important;
   display:flex!important;justify-content:flex-end!important;transform:none!important;
   width:max-content!important;margin-left:auto!important;
 }
}/* 040: category pages: anchor controls to the right independently of flex flow. */


@media screen and (min-width:1024px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row {
   position:relative!important;display:block!important;width:100%!important;
   min-height:34px!important;box-sizing:border-box!important;
   margin:0 0 12px!important;padding:0!important;overflow:visible!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
   position:absolute!important;top:0!important;right:0!important;bottom:auto!important;left:auto!important;
   display:flex!important;width:max-content!important;max-width:100%!important;
   margin:0!important;padding:0!important;transform:none!important;
   justify-content:flex-end!important;float:none!important;z-index:3!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density > .xi-grid-density-desktop {
   display:flex!important;position:static!important;margin:0!important;transform:none!important;
 }
}/* 044: desktop only. Distinct pale inactive digits and readable selected pulse. */



@keyframes xi045-selected-digit-pulse {
  0%,100% { color:#004f8f; text-shadow:0 0 2px rgba(0,79,143,.24); }
  50% { color:#a3cbe8; text-shadow:0 0 2px rgba(83,145,188,.16); }
}
@media screen and (min-width:1024px) {
  html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
    animation:none!important;
    color:#9bafbf!important;
    text-shadow:none!important;
  }
  html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button .xi-density-digit {
    display:inline-block!important;
    color:#9bafbf;
    
    filter:none!important;
    animation:none!important;
    font-weight:400!important;
    text-shadow:none;
  }
  html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit {
    /* No !important color: it would override animated keyframe color. */
    color:#004f8f;
    font-weight:600!important;
    animation:none;
  }}
@media (prefers-reduced-motion:reduce) {
  html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit {
    animation:none!important;color:#004f8f!important;
  }}/* 045: stronger selected digit pulse, inactive digits unchanged. *//* 061 | Desktop portfolio home only. Mobile (<=1023px) and category pages untouched. */





@media screen and (min-width:1024px) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:flex!important; flex-flow:row wrap!important; align-items:center!important;
  justify-content:space-between!important; align-content:flex-start!important;
  gap:8px 16px!important; width:100%!important; min-width:0!important; max-width:100%!important;
  margin:0 0 12px!important; padding:0!important; position:relative!important;
  left:auto!important; right:auto!important; transform:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:flex!important; flex:0 0 512px!important; width:512px!important; min-width:512px!important;
  max-width:512px!important; gap:0!important; align-items:stretch!important; justify-content:flex-start!important;
  position:relative!important; left:auto!important; right:auto!important; transform:none!important;
  margin:0!important; padding:0!important; border-bottom:0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode {
  display:flex!important; align-items:center!important; justify-content:center!important;
  flex:0 0 128px!important; width:128px!important; min-width:128px!important; max-width:128px!important;
  height:46px!important; min-height:46px!important; max-height:46px!important;
  box-sizing:border-box!important; margin:0!important; padding:8px 8px!important;
  border-radius:13px 13px 0 0!important; border-bottom:0!important;
  font-size:17px!important; line-height:1.2!important; white-space:nowrap!important; position:relative!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode:is(.active,[aria-selected="true"])::after {content:none!important;display:none!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  display:flex!important; flex:0 0 auto!important; align-items:center!important; justify-content:flex-end!important;
  position:static!important; float:none!important; margin:0 0 0 auto!important;
  max-width:100%!important; visibility:visible!important; opacity:1!important; transform:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important; visibility:visible!important; opacity:1!important;
 }
}/* 062: isolated desktop portfolio-home tabs and responsive controls.
   No selectors apply below 1024px; mobile 058 baseline remains unchanged. */


@media screen and (min-width:1024px) {
 html body.portfolio-page .xi-sticky-gallery-nav {
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row {
   display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
   align-items:center!important;justify-content:space-between!important;
   align-content:flex-start!important;column-gap:16px!important;row-gap:8px!important;
   position:relative!important;left:auto!important;right:auto!important;top:auto!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:34px!important;margin:0 0 12px!important;
   padding:0!important;transform:none!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
   display:flex!important;flex:0 0 368px!important;flex-wrap:nowrap!important;
   width:368px!important;min-width:368px!important;max-width:368px!important;
   height:34px!important;min-height:34px!important;align-items:stretch!important;
   gap:0!important;position:relative!important;left:auto!important;right:auto!important;
   margin:0!important;padding:0!important;transform:none!important;
   border-bottom:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode {
   display:flex!important;align-items:center!important;justify-content:center!important;
   flex:0 0 92px!important;width:92px!important;min-width:92px!important;max-width:92px!important;
   height:34px!important;min-height:34px!important;max-height:34px!important;
   box-sizing:border-box!important;margin:0!important;padding:8px!important;
   border-radius:13px 13px 0 0!important;border-bottom:0!important;
   font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;
   position:relative!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode:is(.active,[aria-selected="true"])::after {content:none!important;display:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
   display:flex!important;flex:0 0 auto!important;align-items:center!important;
   justify-content:flex-end!important;position:static!important;
   top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
   float:none!important;order:2!important;margin:0 0 0 auto!important;
   width:max-content!important;max-width:100%!important;height:auto!important;
   visibility:visible!important;opacity:1!important;transform:none!important;
   overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {
   display:flex!important;visibility:visible!important;opacity:1!important;
   position:static!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
   display:flex!important;visibility:visible!important;opacity:1!important;
 }
}/* 064 desktop controls: structural selectors independent of transient body classes */



@media screen and (min-width:1024px) {
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row {display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;gap:8px 16px!important;width:100%!important;max-width:100%!important;margin:0 0 12px!important;position:relative!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {display:flex!important;flex:0 0 368px!important;width:368px!important;max-width:368px!important;min-width:368px!important;margin:0!important;transform:none!important;position:relative!important;border-bottom:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {display:flex!important;flex:0 0 auto!important;order:2!important;margin:0 0 0 auto!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;width:max-content!important;max-width:100%!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop, html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {display:flex!important;flex-flow:row nowrap!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait, html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape {display:none!important;}
}/* 065: final desktop overrides are embedded in portfolio.html head, after linked CSS. *//* 104: compact, fixed typography for desktop portfolio mode tabs.
   Preserve active indicator and existing selected-digit animation. */




@media screen and (min-width:1024px) {
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
   flex:0 0 368px!important;width:368px!important;min-width:368px!important;max-width:368px!important;
   height:34px!important;min-height:34px!important;max-height:34px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode {
   flex:0 0 92px!important;width:92px!important;min-width:92px!important;max-width:92px!important;
   height:34px!important;min-height:34px!important;max-height:34px!important;
   font-size:14px!important;line-height:1.2!important;letter-spacing:normal!important;
   padding:5px 7px!important;
 }
}/* V138 WORKING DRAFT: tablet 768-1023; desktop >=1024. Browser QA pending. *//* X-IMAGE portfolio desktop controls - phase 2: consolidated desktop baseline.
   Old xi109 / xi119 / xi128 overrides removed; one desktop control block follows. *//* SOURCE: xi097-desktop-controls-consolidated *//* 097: Consolidated desktop-only portfolio controls. One baseline, one pulse, no mobile edits. */





@keyframes xi097-digit-pulse {0%,100%{text-shadow:0 0 1px rgba(0,79,143,.2)}50%{text-shadow:0 0 12px #36a5f7,0 0 18px #36a5f7}}
@keyframes xi097-tab-pulse {0%,100%{filter:brightness(1)}50%{filter:brightness(1.16)}}
@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
html body.portfolio-page .xi-sticky-gallery-nav {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row {display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;column-gap:12px!important;row-gap:10px!important;position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:48px!important;margin:0 0 20px!important;padding:0!important;border:0!important;border-bottom:2px solid #54718a!important;box-shadow:none!important;overflow:visible!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row::before,html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row::after{content:none!important;display:none!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes {display:flex!important;flex:0 0 440px!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;width:440px!important;min-width:0!important;max-width:440px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-bottom:0!important;box-shadow:none!important;overflow:visible!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes::before,html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes::after{content:none!important;display:none!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode {display:flex!important;flex:0 0 110px!important;align-items:center!important;justify-content:center!important;position:relative!important;transform:none!important;box-sizing:border-box!important;width:110px!important;min-width:0!important;max-width:110px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:.375rem .25rem!important;border-radius:11px 11px 0 0!important;font-size:16px!important;white-space:nowrap!important;cursor:pointer!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode:is(.active,[aria-selected="true"]) {animation:xi097-tab-pulse 1.35s ease-in-out infinite!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode:is(.active,[aria-selected="true"])::after {content:none!important;display:none!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density {display:flex!important;flex:0 0 auto!important;align-self:center!important;align-items:center!important;justify-content:flex-end!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:0 0 0 auto!important;padding:0!important;visibility:visible!important;opacity:1!important;overflow:visible!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:10px!important;position:static!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label {display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;height:26px!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1!important;color:#657e95!important;white-space:nowrap!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:9px!important;position:static!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button {display:inline-flex!important;flex:0 0 34px!important;align-items:center!important;justify-content:center!important;position:relative!important;transform:none!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:1.625rem!important;min-height:1.625rem!important;max-height:1.625rem!important;margin:0!important;padding:0!important;border:1px solid #c6d3de!important;border-radius:7px!important;background:linear-gradient(180deg,#fff,#f4f6f8)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 2px 5px rgba(32,61,85,.15)!important;color:#62788c!important;cursor:pointer!important;visibility:visible!important;opacity:1!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button:is(.active,[aria-pressed="true"]) {border-color:#83afcf!important;background:linear-gradient(#e8f3fb,#fff)!important;box-shadow:0 0 0 2px rgba(91,168,224,.12),0 2px 8px rgba(41,107,161,.2)!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button .xi-density-digit {display:inline-block!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important;line-height:1!important;font-size:14px!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button:is(.active,[aria-pressed="true"]) .xi-density-digit {color:#004f8f!important;font-weight:600!important;animation-name:xi097-digit-pulse!important;animation-duration:1.2s!important;animation-timing-function:ease-in-out!important;animation-iteration-count:infinite!important;animation-play-state:running!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:none!important;visibility:hidden!important;}
html body.portfolio-page .xi-gallery-panel {margin-top:0!important;padding-top:0!important;}
html body.portfolio-page .xi-gallery-panel>.work-grid {margin-top:0!important;transition:opacity .24s ease,filter .24s ease,transform .24s ease;}}
@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-work-modes {display:flex!important;grid-template-columns:none!important;flex:0 0 440px!important;width:440px!important;min-width:440px!important;max-width:440px!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode {max-width:110px!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button {flex-basis:2rem!important;width:34px!important;min-width:34px!important;max-width:34px!important;}
html body.portfolio-page .xi-gallery-panel>.work-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;}
html body.portfolio-page:has(.xi-desktop-density-buttons>[data-desktop-columns="2"][aria-pressed="true"]) .xi-gallery-panel>.work-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
html body.portfolio-page:has(.xi-desktop-density-buttons>[data-desktop-columns="3"][aria-pressed="true"]) .xi-gallery-panel>.work-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
html body.portfolio-page:has(.xi-desktop-density-buttons>[data-desktop-columns="4"][aria-pressed="true"]) .xi-gallery-panel>.work-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
html body.portfolio-page:has(.xi-desktop-density-buttons>[data-desktop-columns="6"][aria-pressed="true"]) .xi-gallery-panel>.work-grid {grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media (prefers-reduced-motion:reduce) {html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode:is(.active,[aria-selected="true"]),html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button:is(.active,[aria-pressed="true"]) .xi-density-digit{animation:none!important;}}/* 132: one desktop baseline; 131 geometry merged into 130 rules. *//* X-IMAGE 130/131: desktop baseline for modes, shared divider, gallery gap.
   Only applies >=900px; leave tablet and mobile rules untouched. */



@media screen and (min-width:1024px) {
 html body.portfolio-page .xi-sticky-gallery-nav {
  position:relative!important;top:0!important;border:0!important;
  padding-bottom:0!important;margin-bottom:0!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:flex!important;flex-flow:row nowrap!important;justify-content:space-between!important;
  align-items:flex-end!important;position:relative!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:0!important;margin:0!important;gap:12px!important;
  flex-wrap:nowrap!important;justify-content:space-between!important;
  border:0!important;border-bottom:2px solid #54718a!important;
  background:transparent!important;overflow:visible!important;
 }
 /* 016: desktop geometry and single structural divider at all desktop widths. */
 html body.portfolio-page .page-content .container .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:space-between!important;align-items:flex-end!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
  border-top:0!important;border-left:0!important;border-right:0!important;
  border-bottom:2px solid #54718a!important;
  background-image:none!important;box-shadow:none!important;
 }
 html body.portfolio-page .page-content .container .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  flex:0 0 440px!important;width:440px!important;min-width:440px!important;max-width:440px!important;
  margin:0 auto 0 0!important;margin-left:0!important;margin-right:auto!important;left:0!important;right:auto!important;transform:none!important;
  border:0!important;border-bottom:0!important;outline:0!important;background-image:none!important;
 }
 html body.portfolio-page .page-content .container .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  flex:0 0 auto!important;margin:0 0 0 auto!important;align-self:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row::before,
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row::after {content:none!important;display:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:flex!important;flex:0 0 440px!important;align-self:flex-end!important;
  align-items:stretch!important;justify-content:flex-start!important;gap:0!important;
  position:relative!important;z-index:auto!important;box-sizing:border-box!important;
  width:440px!important;min-width:440px!important;max-width:440px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0!important;margin:0 auto 0 0!important;margin-left:0!important;align-self:flex-end!important;transform:none!important;left:0!important;right:auto!important;border:0!important;border-bottom:0!important;box-shadow:none!important;background:transparent!important;
 }
 /* 007: one divider only; neutralize legacy mode/nav lines in the existing desktop baseline. */
 html body.portfolio-page .xi-sticky-gallery-nav::before,
 html body.portfolio-page .xi-sticky-gallery-nav::after {content:none!important;display:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {border:0!important;border-bottom:0!important;box-shadow:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes::before {content:none!important;display:none!important;border:0!important;background:none!important;box-shadow:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode {
  display:flex!important;flex:0 0 110px!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:110px!important;min-width:110px!important;max-width:110px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;padding:4px 3px!important;font-size:16px!important;line-height:23px!important;
  border:1px solid #b0c6d8!important;border-bottom:0!important;border-radius:11px 11px 0 0!important;
  background:#fff!important;color:#647a8c!important;box-shadow:none!important;outline:none!important;
  transform:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode:is(.active,[aria-selected="true"]) {
  background:#00447e!important;color:#fff!important;border-color:#00447e!important;
  border-bottom:0!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.25)!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode:is(.active,[aria-selected="true"]) {animation:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {
  display:inline-flex!important;position:static!important;inset:auto!important;flex:0 0 20px!important;
  width:20px!important;height:20px!important;align-items:center!important;justify-content:center!important;
  vertical-align:middle!important;margin:0!important;transform:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon svg {
  display:block!important;width:20px!important;height:20px!important;position:static!important;
  transform-origin:center center!important;transform-box:view-box!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"].active .xi-random-icon svg {animation:xi033-ccw 2.8s linear infinite!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode::before {content:none!important;display:none!important;}
 /* 011: restore the original v135 moving tab marker without redesign. */
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes::after {
  content:""!important;display:block!important;position:absolute!important;
  left:0!important;right:auto!important;top:auto!important;bottom:-1px!important;
  width:var(--xi-mode-indicator-w,0px)!important;height:4px!important;
  border:0!important;border-radius:4px!important;
  background:#8fc4ed!important;box-shadow:0 0 8px rgba(84,151,207,.7)!important;
  transform:translateX(var(--xi-mode-indicator-x,0px))!important;
  transition:transform .43s cubic-bezier(.2,.8,.2,1),width .43s cubic-bezier(.2,.8,.2,1)!important;
  pointer-events:none!important;z-index:3!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode::after {content:none!important;display:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode[data-mode="random"] {gap:4px!important;padding:0 4px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {display:flex!important;align-self:center!important;align-items:center!important;flex:0 0 auto!important;position:static!important;inset:auto!important;transform:translateY(-5px)!important;margin:0 0 0 auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density .xi-grid-density-desktop {display:flex!important;align-items:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {height:26px!important;min-height:26px!important;max-height:26px!important;align-items:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label {display:flex!important;align-items:center!important;align-self:center!important;justify-content:center!important;box-sizing:border-box!important;height:26px!important;min-height:26px!important;max-height:26px!important;line-height:normal!important;margin:0!important;padding:2px 0 0!important;vertical-align:middle!important;position:static!important;top:auto!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {height:26px!important;align-items:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit {animation:xi097-digit-pulse 1.35s ease-in-out infinite!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {gap:5px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
  box-sizing:border-box!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;padding:0!important;border-radius:7px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button .xi-density-digit {font-size:14px!important;}
 /* Desktop: mobile portrait/landscape density groups must not appear alongside 2/3/4/6. */
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density > .xi-grid-density-portrait,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density > .xi-grid-density-landscape {
  display:none!important;visibility:hidden!important;opacity:0!important;
  position:absolute!important;width:0!important;height:0!important;
  overflow:hidden!important;pointer-events:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button::before,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button::after {content:none!important;display:none!important;}
 html body.portfolio-page .xi-gallery-panel {margin-top:0!important;padding-top:16px!important;}
 html body.portfolio-page .xi-gallery-panel > .work-grid {margin-top:0!important;}
}/* 133: 1024–1199 CSS pixels: preserve desktop tab geometry, no shrink.
   The 440px tabs + right-side controls fit; do not trigger the old wrap rule. */



@media screen and (min-width:1024px) and (max-width:1199px) {
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row {
  flex-flow:row nowrap!important;flex-wrap:nowrap!important;justify-content:space-between!important;
  align-items:flex-end!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  row-gap:0!important;column-gap:8px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  flex:0 0 440px!important;width:440px!important;min-width:440px!important;max-width:440px!important;
  align-self:flex-end!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
  margin:0 0 0 auto!important;justify-content:flex-end!important;align-self:center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel {padding-top:16px!important;}
}
@media (prefers-reduced-motion:reduce) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button .xi-density-digit {animation:none!important;}}/* 020: desktop layout uses grid tracks, not legacy centered flex tabs.
   Remove the old tab-group rule at its source (styles.css) separately. */


@media screen and (min-width:1024px) {
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:grid!important;grid-template-columns:440px minmax(0,1fr)!important;
  align-items:end!important;justify-content:stretch!important;
  padding:0!important;margin-left:0!important;margin-right:0!important;
  border:0!important;border-bottom:2px solid #54718a!important;
  background:none!important;box-shadow:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  grid-column:1!important;grid-row:1!important;justify-self:start!important;
  display:flex!important;position:relative!important;inset:auto!important;
  width:440px!important;min-width:440px!important;max-width:440px!important;
  margin:0!important;padding:0!important;transform:none!important;
  border:0!important;border-bottom:0!important;box-shadow:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  grid-column:2!important;grid-row:1!important;justify-self:end!important;
  position:static!important;margin:0!important;transform:translateY(-5px)!important;
 }
}/* v051: Nine-category pages show category thumbnails, never the home four-mode tabs.
   The old v049 hide rule was overridden by the higher-specificity v138 display:flex!important.
   This override is category-only; the portfolio home and 044 marker stay unchanged. */


html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:none!important;
}
html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-work-modes {
  display:none!important;
}/* 052: category-only desktop spacing. Give the nine category buttons more
   breathing room above, and tighten the space below them. Home and mobile untouched. */


@media screen and (min-width:1024px) {
 html body.portfolio-page.xi-category-view .page-content {
  padding-top:28px!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  margin-top:-24px!important;
 }
}/* 053: Refined from user comparison: +12px above nine categories, -16px below. *//* v054: Actual nine-category vertical geometry. Desktop only.
   Move category pills 12px away from header; reduce the gap to the density row.
   Keep home four modes, category thumbnails, and mobile untouched. */




@media screen and (min-width:1200px) {
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {
  margin-top:12px!important;
  margin-bottom:-12px!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  margin-top:-20px!important;
 }
}/* 055: Restore 12px breathing room between category pills and the baseline.
   Keep the nine-category position and thumbnail geometry from 054. *//* 056: Match the category density-control bottom gap to portfolio home.
   Home already uses translateY(-5px); lift category controls a further 5px.
   No change to the baseline, tabs, grid or mobile. */




@media screen and (min-width:1024px) {
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  transform:translateY(-5px)!important;
 }
}/* v057: Correct category density controls back down 5px to match the home offset. *//* 058: compact 768–1023 CSS px. Isolate legacy centered tabs and
   scattered category controls; do not alter desktop >=1024 or mobile <=767. */




@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:0!important;width:100%!important;min-width:0!important;
 }
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {
  display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;
  align-items:center!important;align-content:flex-start!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;position:relative!important;
  transform:none!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button {
  flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
  margin:0!important;transform:none!important;
 }
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:flex!important;flex-flow:row nowrap!important;align-items:flex-end!important;
  justify-content:space-between!important;gap:8px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:12px 0 0!important;padding:0!important;
  position:relative!important;inset:auto!important;transform:none!important;
  border:0!important;border-bottom:2px solid #54718a!important;
  box-shadow:none!important;background:none!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row::before,
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row::after {
  content:none!important;display:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:flex!important;flex:0 0 440px!important;justify-content:flex-start!important;
  align-self:flex-end!important;position:relative!important;inset:auto!important;
  width:440px!important;min-width:440px!important;max-width:440px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;padding:0!important;transform:none!important;
  border:0!important;box-shadow:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes::before {
  content:none!important;display:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes::after {
  content:""!important;display:block!important;position:absolute!important;
  left:0!important;right:auto!important;top:auto!important;bottom:-1px!important;
  width:var(--xi-mode-indicator-w,0px)!important;height:4px!important;
  border:0!important;border-radius:4px!important;background:#8fc4ed!important;
  box-shadow:0 0 8px rgba(84,151,207,.7)!important;
  transform:translateX(var(--xi-mode-indicator-x,0px))!important;
  transition:transform .43s cubic-bezier(.2,.8,.2,1),width .43s cubic-bezier(.2,.8,.2,1)!important;
  pointer-events:none!important;z-index:3!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  display:flex!important;flex:0 0 auto!important;align-self:center!important;
  justify-content:flex-end!important;position:static!important;inset:auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  margin:0 0 0 auto!important;padding:0!important;
  transform:translateY(-5px)!important;float:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:flex-end!important;gap:8px!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  position:static!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label {
  position:static!important;display:inline-flex!important;flex:0 0 auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  margin:0!important;transform:none!important;white-space:nowrap!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  display:flex!important;flex-flow:row nowrap!important;flex:0 0 auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  margin:0!important;gap:5px!important;position:static!important;transform:none!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:none!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  margin-top:4px!important;
 }
 html body.portfolio-page .xi-gallery-panel {padding-top:16px!important;margin-top:0!important;}
}/* 059: compact layout: category buttons remain in their own clickable row.
   Legacy landscape DOM relocation is restricted to <=767px in portfolio.html. */


@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
 html body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters {
  position:relative!important;z-index:2!important;pointer-events:auto!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > button.filter-button {
  position:relative!important;z-index:2!important;pointer-events:auto!important;cursor:pointer!important;
 }
 html body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading h1 {
  font-size:24px!important;line-height:1.2!important;
 }
}/* 060 — Compact category hit-testing fix.
   Keep category buttons in the top hit-test layer. The lower mode/density
   row may visually overlap this row because of legacy compact geometry;
   its empty surface must not intercept category button clicks. */


@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {
  position:relative!important;
  z-index:20!important;
  isolation:isolate!important;
  pointer-events:auto!important;
 }
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters > button.filter-button {
  position:relative!important;
  z-index:21!important;
  pointer-events:auto!important;
  cursor:pointer!important;
 }
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  z-index:1!important;
  pointer-events:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row .xi-work-modes,
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav > .xi-modes-density-row button {
  pointer-events:auto!important;
 }
}/* 061: verified 1150px category hit-test repair.
   The density row visually overlaps the lower portion of category buttons.
   Keep existing geometry, place category filters above that row in stacking order. */


@media screen and (min-width:1024px) {
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {
  position:relative!important;z-index:30!important;pointer-events:auto!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  position:relative!important;z-index:1!important;
 }
}/* 062: compact 768–1023: use the same desktop control geometry, not the
   legacy 92x34 tabs / 32px pill buttons. Preserve 061 category hit layers. */


@media screen and (min-width:768px) and (min-height:501px) and (max-width:1023px) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode {
  flex:0 0 110px!important;width:110px!important;min-width:110px!important;max-width:110px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  font-size:16px!important;line-height:23px!important;border-radius:11px 11px 0 0!important;
  padding:4px 3px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
  flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  border-radius:7px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button .xi-density-digit {font-size:14px!important;}
}/* 063: Anchor category density controls to the same baseline gap as portfolio home.
   The category row's negative top margin must not affect the control-to-line gap.
   Do not alter nine-category hit-test stacking from 061. */


@media screen and (min-width:768px) and (min-height:501px) {
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  position:relative!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  position:absolute!important;right:0!important;bottom:var(--xi-density-line-gap, 13px)!important;top:auto!important;left:auto!important;
  transform:none!important;margin:0!important;align-self:auto!important;
 }
}/* 064: Shared desktop/compact control geometry. Use one visual baseline from
   768px upward, without changing the mobile layout or category hit layers. */


@media screen and (min-width:768px) and (min-height:501px) and (max-width:1599px) {
 html body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters {
   justify-content:flex-start!important;align-items:center!important;align-content:flex-start!important;
   column-gap:8px!important;row-gap:8px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > button.filter-button {
   flex:0 0 auto!important;align-self:center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode {
   box-sizing:border-box!important;flex:0 0 110px!important;
   width:110px!important;min-width:110px!important;max-width:110px!important;
   height:38px!important;min-height:38px!important;max-height:38px!important;
   margin:0!important;padding:4px 3px!important;line-height:23px!important;
   border:1px solid #b0c6d8!important;border-bottom:0!important;
   border-radius:11px 11px 0 0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode:is(.active,[aria-selected="true"]) {
   border:1px solid #00447e!important;border-bottom:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
   box-sizing:border-box!important;flex:0 0 34px!important;
   width:34px!important;min-width:34px!important;max-width:34px!important;
   height:26px!important;min-height:26px!important;max-height:26px!important;
   border-radius:7px!important;
 }
}/* 068: Restore the original (063) in-flow density positioning.
   Do not override .xi-grid-density with absolute positioning on home pages. *//* 072: Removed 071 absolute positioning that raised the home density controls.
   Preserve the established in-flow alignment at each breakpoint. *//* 073: One line-relative baseline for desktop/compact density controls.
   Replace earlier centered alignment and -5px offsets at their effective source.
   This is independent of flex/grid row height and preserves the nine-category hit layer. */






@media screen and (min-width:768px) and (min-height:501px) {
 html body.portfolio-page .xi-sticky-gallery-nav { --xi-density-line-gap:13px; }
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:grid!important;grid-template-columns:440px minmax(0,1fr)!important;
  align-items:end!important;justify-content:stretch!important;
 }
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  grid-column:1!important;grid-row:1!important;justify-self:start!important;align-self:end!important;
 }
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  /* Anchor directly to the row whose bottom border draws the long blue line. */
  grid-column:2!important;grid-row:1!important;
  position:absolute!important;right:0!important;left:auto!important;
  top:auto!important;bottom:var(--xi-density-line-gap)!important;
  justify-self:auto!important;align-self:auto!important;margin:0!important;
  transform:none!important;
 }
 html body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  bottom:var(--xi-density-line-gap)!important;
 }
}/* 074: Home density and its long blue underline share the SAME positioning box.
   Override legacy flex/grid centering, transforms and margins at the source. */


@media screen and (min-width:768px) and (min-height:501px) {
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  position:relative!important;overflow:visible!important;
 }
}/* 075: Fix the real button baseline, not just the outer density wrapper.
   Legacy compact rules gave the wrapper 28/32px height and padding-bottom,
   while the visible 26px buttons sat above its bottom.  Keep the established
   13px line gap, but make wrapper, desktop controls and buttons all 26px high. */


@media screen and (min-width:768px) and (min-height:501px) {
 html body.portfolio-page .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  height:26px!important;min-height:26px!important;max-height:26px!important;
  padding:0!important;align-items:flex-end!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {
  height:26px!important;min-height:26px!important;max-height:26px!important;
  align-items:flex-end!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  height:26px!important;min-height:26px!important;max-height:26px!important;
  align-items:flex-end!important;padding:0!important;border:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
  height:26px!important;min-height:26px!important;max-height:26px!important;
  align-self:flex-end!important;transform:none!important;margin:0!important;
 }
}/* 076: Keep the density caption on the same 26px baseline as the four buttons.
   Reduce the line gap by 3px for a modest downward move of the entire control.
   Apply only to portfolio desktop/compact (not mobile). */


@media screen and (min-width:768px) and (min-height:501px) {
 html body.portfolio-page .xi-sticky-gallery-nav { --xi-density-line-gap:10px; }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important;align-items:flex-end!important;height:26px!important;
  min-height:26px!important;max-height:26px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label {
  display:flex!important;box-sizing:border-box!important;flex:0 0 auto!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  padding:0!important;margin:0!important;align-self:flex-end!important;
  align-items:center!important;justify-content:center!important;
  line-height:26px!important;position:static!important;inset:auto!important;
  transform:none!important;vertical-align:baseline!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  height:26px!important;min-height:26px!important;max-height:26px!important;
  align-self:flex-end!important;align-items:flex-end!important;
 }
}/* 077: Desktop home: four compact, equal-width mode tabs; reserve real space
   for the complete density caption and 2/3/4/6 controls.  Tablet and phone
   keep their independent layouts. */


@media screen and (min-width:1024px) {
 html body.portfolio-page:not(.xi-category-view) .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:grid!important;grid-template-columns:440px minmax(0,1fr)!important;
  width:100%!important;min-width:0!important;gap:0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes {
  display:flex!important;grid-column:1!important;grid-row:1!important;
  flex:0 0 440px!important;width:440px!important;min-width:440px!important;max-width:440px!important;
  justify-content:flex-start!important;gap:0!important;margin:0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-work-modes > button.xi-work-mode {
  box-sizing:border-box!important;flex:0 0 110px!important;
  width:110px!important;min-width:110px!important;max-width:110px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;padding:4px 3px!important;font-size:16px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  grid-column:2!important;right:0!important;left:auto!important;
  width:max-content!important;min-width:max-content!important;max-width:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important;flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label {
  display:flex!important;visibility:visible!important;opacity:1!important;width:auto!important;
  min-width:max-content!important;max-width:none!important;white-space:nowrap!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  display:flex!important;flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
  flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
 }
}/* v202: slim purple category strip title on the same content edge (page heroes: see styles.css v202). */


@media (min-width:768px){
 html body.portfolio-page #portfolio-hero.portfolio-category-hero:not(#xi-x) .page-heading{
  left:max(24px,calc((100% - 1112px)/2))!important;right:auto!important;padding-left:0!important}
}/* v230 selected number (2/3/4/6 buttons) pulses like the landscape-phone buttons, whatever the screen size or motion setting */


@keyframes xi230-digit-pulse{0%,100%{opacity:1;text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25)}50%{opacity:.38;text-shadow:0 0 6px rgba(42,135,225,.98),0 0 11px rgba(42,135,225,.82)}}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit:not(#xi-x){animation:xi230-digit-pulse 1.6s ease-in-out infinite!important;-webkit-animation:xi230-digit-pulse 1.6s ease-in-out infinite!important}/* v231 same glow as the portrait 1/2/3 buttons */

@keyframes xi231-glow{from{text-shadow:0 0 1px rgba(53,142,222,.25)}to{text-shadow:0 0 6px rgba(53,142,222,.95),0 0 10px rgba(53,142,222,.55)}}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit:not(#xi-x){animation:xi231-glow 1.3s ease-in-out infinite alternate!important;-webkit-animation:xi231-glow 1.3s ease-in-out infinite alternate!important}/* v234 desktop/tablet selected digit: portrait pulse */


@keyframes xi053-selected-numeral-pulse{0%,100%{opacity:1;text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25)}50%{opacity:.48;text-shadow:0 0 5px rgba(42,135,225,.95),0 0 10px rgba(42,135,225,.75)}}
html body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:is(.active,[aria-pressed="true"]) .xi-density-digit:not(#xi-x){animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;-webkit-animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important}/* 101: restore 089 tablet portrait homepage and nine-category density only.
   Desktop homepage, phone <=599px, and existing 077 rules are left untouched. *//* Tablet portrait with CSS width below 768px: keep a full 2/3/4/6 group on a new line. */


@media screen and (min-width:600px) and (max-width:1023px) and (orientation:portrait) {
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav>.xi-modes-density-row {
  display:flex!important; flex-flow:row wrap!important; height:auto!important;
  min-height:44px!important; gap:8px!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-work-modes {
  display:flex!important; flex:0 0 auto!important; width:auto!important;
  max-width:100%!important; gap:0!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-grid-density {
  display:flex!important; visibility:visible!important; opacity:1!important; position:relative!important; inset:auto!important;
  flex:0 0 250px!important; width:250px!important; min-width:250px!important;
  max-width:250px!important; margin-left:auto!important; transform:none!important;
  overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important; width:250px!important; min-width:250px!important;
  visibility:visible!important; opacity:1!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-desktop-density-label {
  display:flex!important; flex:0 0 84px!important; width:84px!important;
  white-space:nowrap!important; align-items:center!important; justify-content:flex-end!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  display:flex!important; flex:0 0 156px!important; width:156px!important;
  gap:6px!important; flex-wrap:nowrap!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-desktop-density-buttons>button {
  display:flex!important; flex:0 0 34px!important; width:34px!important;
  min-width:34px!important; height:26px!important;
 }
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait,
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-landscape {display:none!important}
}
@media screen and (min-width:600px) and (max-width:1023px) and (orientation:portrait) {
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav>.xi-modes-density-row>.xi-work-modes {flex:0 0 440px!important;width:440px!important;min-width:440px!important;max-width:100%!important;display:flex!important;flex-wrap:nowrap!important}
 html:root:root body.portfolio-page.xi-desktop-tabs-062:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode {flex:0 0 110px!important;width:110px!important;min-width:110px!important;max-width:110px!important}}/* 089: Nine-category controls. Four home tabs hidden; density row stacks above the opaque filter strip. */



@media screen and (min-width:600px) and (min-height:501px) {
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-work-modes {
  display:none!important; visibility:hidden!important; pointer-events:none!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row {
  display:flex!important; flex-wrap:wrap!important; justify-content:flex-end!important;
  align-items:center!important; width:100%!important; height:auto!important;
  min-height:32px!important; overflow:visible!important; position:relative!important; z-index:40!important;
  inset:auto!important; transform:none!important; padding:0!important; margin:0!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  display:flex!important; flex:0 0 246px!important; width:246px!important;
  min-width:246px!important; max-width:100%!important; position:relative!important;
  inset:auto!important; transform:none!important; margin:0 0 0 auto!important;
  padding:0!important; visibility:visible!important; opacity:1!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-desktop {
  display:flex!important; align-items:center!important; flex-wrap:nowrap!important;
  width:246px!important; min-width:246px!important; height:32px!important; justify-content:flex-end!important; gap:6px!important;
  position:static!important; inset:auto!important; transform:none!important;
  visibility:visible!important; opacity:1!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-desktop-density-label {
  display:flex!important; flex:0 0 84px!important; width:84px!important;
  align-items:center!important; justify-content:flex-end!important; height:32px!important; line-height:normal!important; margin:0!important; padding:0!important; white-space:nowrap!important; visibility:visible!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-desktop-density-buttons {
  display:flex!important; flex:0 0 156px!important; width:156px!important;
  gap:6px!important; align-items:center!important; height:32px!important; flex-wrap:nowrap!important; position:static!important;
  inset:auto!important; transform:none!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-desktop-density-buttons > button {
  display:flex!important; flex:0 0 34px!important; width:34px!important;
  min-width:34px!important; max-width:34px!important; height:26px!important; margin:0!important; padding:0!important; align-items:center!important; justify-content:center!important; line-height:26px!important;
  position:relative!important; inset:auto!important; transform:none!important;
 }
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait,
 html:root:root body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape {display:none!important}
}/* 144: Tablet category density spacing (768–1199px).
   One rule for both orientations; no negative offsets or duplicate gap owners.
   Homepage four-mode controls, phones and desktop >=1200px are unaffected. */



@media screen and (min-width:768px) and (min-height:501px) and (max-width:1199px) {
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav {
  gap:0!important;row-gap:0!important;
 }
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {
  /* 135: one fixed pill-row box for tablet portrait and landscape. */
  display:flex!important;align-items:center!important;align-content:center!important;
  box-sizing:border-box!important;height:41px!important;min-height:41px!important;
  max-height:41px!important;flex-wrap:nowrap!important;
  margin:0!important;padding:10px 0 0!important;
 }
 /* 137: correct only the pill alignment inside the existing 41px row.
    Portrait is raised 5px from 135; landscape is raised 1px.
    No transform, margin offset or change to downstream rows. */
 @media (orientation:portrait) {
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {padding-top:0!important}
  /* 142: portrait-only visual correction, replacing 140 test; keep row geometry unchanged. */
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters > .filter-button {position:relative!important;top:12px!important}
 }
 @media (orientation:landscape) {
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .portfolio-filters {padding-top:8px!important}
 }
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
  box-sizing:border-box!important;display:flex!important;flex-flow:row nowrap!important;
  justify-content:flex-end!important;align-items:center!important;position:relative!important;
  width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
  padding:7px 0!important;margin:0!important;overflow:visible!important;
  inset:auto!important;transform:none!important;
 }
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
  display:flex!important;position:relative!important;flex:0 0 246px!important;
  width:246px!important;min-width:246px!important;max-width:246px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  align-self:center!important;align-items:center!important;margin:0 0 0 auto!important;
  padding:0!important;inset:auto!important;transform:none!important;
 }
 /* 152: Landscape category divider 1px higher. Keep density buttons and gallery thumbnails fixed. */
 @media (orientation:landscape) {
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
   height:45px!important;min-height:45px!important;max-height:45px!important;
  }
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
   top:0.5px!important;
  }
 }
 /* 151: Portrait only. Lower the category divider by extending its row 8px;
    compensate the density's centered position so the four controls stay put. */
 @media (orientation:portrait) {
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row {
   height:54px!important;min-height:54px!important;max-height:54px!important;
  }
  html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
   top:4px!important;
  }
 }
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-sticky-gallery-nav + .xi-gallery-panel {
  margin-top:0!important;padding-top:0!important;
 }
 html:root:root body.portfolio-page.xi-category-view .page-content > .container > .xi-gallery-panel > .work-grid {
  margin-top:15px!important;
 }
}/* Non-tablet category grid spacing: retain existing desktop and phone behavior. */

@media screen and (min-width:600px) and (max-width:767px),screen and (min-width:1200px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav + .xi-gallery-panel {
  margin-top:10px!important;padding-top:0!important;
 }
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid {
  margin-top:0!important;
 }
}/* 102: vertically center the desktop homepage density caption with its number buttons. */


@media screen and (min-width:768px) and (min-height:501px) {
 body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-desktop > .xi-desktop-density-label {
  display:flex!important; align-items:center!important; height:34px!important; line-height:normal!important; margin-top:0!important; margin-bottom:0!important;
 }
}/* 104: tablet portrait homepage — place density at right, on the same
   vertical baseline as its label; keep the completed desktop rules intact. */

@media screen and (min-width:600px) and (max-width:1023px) and (orientation:portrait) {
 html:root:root body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row {
   display:flex!important; flex-flow:row wrap!important;
   align-items:center!important; justify-content:space-between!important;
   height:auto!important; min-height:38px!important;
   row-gap:6px!important; overflow:visible!important;
 }
 html:root:root body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density {
   display:flex!important; visibility:visible!important; opacity:1!important;
   position:relative!important; inset:auto!important; transform:none!important;
   flex:0 0 246px!important; width:246px!important; min-width:246px!important;
   max-width:246px!important; margin:0 0 0 auto!important;
   align-self:center!important; align-items:center!important; z-index:3!important;
 }
 html:root:root body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-desktop {
   display:flex!important; visibility:visible!important; opacity:1!important;
   width:246px!important; min-width:246px!important;
   height:34px!important; align-items:center!important; justify-content:flex-end!important; gap:6px!important;
 }
 html:root:root body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-desktop-density-label {
   display:flex!important; visibility:visible!important; opacity:1!important;
   height:34px!important; line-height:normal!important;
   align-items:center!important; justify-content:flex-start!important;
   margin:0!important; padding:0!important;
 }
 html:root:root body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-desktop-density-buttons {
   display:flex!important; visibility:visible!important; opacity:1!important;
   flex-wrap:nowrap!important; align-items:center!important;
   margin:0!important;
 }
}/* v198: ONE spacing between the tab line (under the category pills / work-mode tabs / column
   buttons) and the first row of thumbnails, in every state: all work-mode tabs, 2/3/4/6 columns,
   every category, tablet portrait + landscape and desktop. Previously the gap was 28px on the
   home tabs, 10-15px in categories and 3px after a tab tap on portrait tablets, because the tab row,
   the gallery panel and the grid each added their own margin/padding. Now every one of those
   layers is zeroed and the gallery panel's top padding is the only source. */


@media (min-width:768px) and (min-height:600px){
 html body.portfolio-page .xi-sticky-gallery-nav:not(#xi-gap){margin-bottom:0!important;padding-bottom:0!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-gap){margin-bottom:0!important}
 html body.portfolio-page .xi-gallery-panel:not(#xi-gap){--xi-line-gap:16px;margin-top:0!important;padding-top:var(--xi-line-gap)!important}
 html body.portfolio-page .xi-gallery-panel .work-grid:not(#xi-gap){margin-top:0!important;padding-top:0!important}
}