/* XSIDE Gallery v16. Stage lighting and layout repair; preserve established cards and controls. */
.experience-stage{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#0c0915;
}
/* Both light sources are anchored to the HEIGHT OF THE HERO, not the combined
   height of the hero + CTA/footer. They paint above the background and below
   all actual content; no rectangular light layer or horizontal neon bar. */
.experience-stage::before,
.experience-stage::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
  display:block;
  transform:translateZ(0);
}
/* Broad high light behind the browsers, spreading upwards instead of
   concentrating over the case title below the separator. */
.experience-stage::before{
  left:25%;right:-12%;top:-38vh;height:112vh;
  background:radial-gradient(ellipse 70% 66% at 55% 47%,
    rgba(148,62,210,.54) 0%,rgba(112,43,176,.34) 32%,
    rgba(72,29,119,.17) 65%,transparent 100%);
  filter:blur(35px);
}
.experience-stage::after{
  left:35%;right:-10%;top:-8vh;height:85vh;
  background:radial-gradient(ellipse 70% 67% at 51% 45%,
    rgba(165,76,232,.27) 0%,rgba(117,44,185,.16) 42%,transparent 100%);
  filter:blur(50px);
}
.experience-stage .gallery-shell,
.experience-stage .footer{
  position:relative;
  z-index:1;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
}
.experience-stage .footer{
  border:0!important;
  border-top:0!important;
  margin-top:0;
}
/* Disable previous light designs rather than stack new ones on top. */
.experience-stage .gallery-bg,
.experience-stage .gallery-gradient,
.experience-stage .world-flare,
.experience-stage .world-floor{display:none!important}
.experience-stage .gallery-world{
  background:none!important;
  isolation:auto!important;
  z-index:35;
}
.experience-stage .gallery-world::before,
.experience-stage .gallery-world::after{content:none!important;display:none!important}
/* The phone is in the same stacking context as the primary browser, above
   the thin detail separator, so the line never crosses the phone. */
.experience-stage .gallery-cards{isolation:auto;z-index:5}
.experience-stage .project-panel.is-active{z-index:40!important}
.experience-stage .project-panel.is-active .phone-clone{z-index:50}
.experience-stage .gallery-details{z-index:2}
.experience-stage .gallery-intro{z-index:40}
/* Use the existing two independent round SVG buttons. Position a full 36px
   ABOVE the line, rather than calculating relative to the footer itself. */
.experience-stage .gallery-content{position:relative}
.experience-stage .gallery-content > .intro-switch{
  position:absolute!important;
  bottom:calc(108px + 26px + 55px)!important;
  left:clamp(25px,4.7vw,82px)!important;
  z-index:65;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:15px!important;
  flex-wrap:nowrap!important;
  max-width:445px;
  pointer-events:auto!important;
}
.experience-stage .gallery-content > .intro-switch .gallery-controls{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-shrink:0!important;
  padding:0!important;
  margin:0!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
.experience-stage .gallery-content > .intro-switch .gallery-controls button{
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.33)!important;
  background:rgba(23,17,37,.55)!important;
  color:white!important;
  border-radius:50%!important;
  font-size:0!important;
  box-shadow:none!important;
}
.experience-stage .gallery-controls button::before,
.experience-stage .gallery-controls button::after{content:none!important;display:none!important}
.experience-stage .gallery-controls button svg{
  position:static!important;
  display:block!important;
  width:21px!important;
  height:21px!important;
  margin:auto!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  transform:none!important;
}
.experience-stage .gallery-controls button:hover,
.experience-stage .gallery-controls button:focus-visible{
  background:#d3fb52!important;
  border-color:#d3fb52!important;
  color:#111!important;
}
.experience-stage .gallery-position{white-space:nowrap!important}
@media (min-width:781px) and (max-height:830px){
  .experience-stage .gallery-content > .intro-switch{bottom:calc(92px + 18px + 54px)!important}
}
@media (max-width:780px){
  .experience-stage::before{top:6vh;left:-12%;right:-12%;height:65vh;filter:blur(29px)}
  .experience-stage::after{top:10vh;left:-10%;right:-10%;height:66vh;filter:blur(38px)}
  .experience-stage .gallery-content > .intro-switch{
    position:relative!important;
    left:auto!important;
    bottom:auto!important;
    margin:18px 0 22px!important;
    padding:0!important;
    align-self:stretch!important;
    flex-wrap:wrap!important;
    order:1!important;
  }
  .experience-stage .gallery-content > .gallery-details{order:2}
}

/* RESTORED EXACT IMAGE FITTING FROM v14: prevents inherited 225% zoom
   on mobile screenshots. Keep original source assets and the established
   browser/phone geometry unchanged. */
.experience-stage .project-panel .browser-window img,
.experience-stage .project-panel .phone-clone .mobile-screen img{
  position:absolute!important;
  top:0!important;left:0!important;
  width:100%!important;height:auto!important;max-width:none!important;
  transform:none!important;transition:none!important;
  object-position:top center!important;image-rendering:auto!important;
}
.experience-stage .project-panel.is-active{filter:none!important}
