/*
 * WebXtent v0.8.79 — Developments phone gallery composition correction.
 *
 * Phone-only refinement after live mobile review. Desktop/tablet v0.8.78 are
 * deliberately untouched. Existing project/photo JS runtimes and Design
 * Studio owners remain canonical.
 */

@media (max-width:767px){

  body.wxt-scene-developments .wxt-development-showcase{
    padding:var(--wxt-dev-mobile-page-top,78px) 0 38px!important;
    --wxt-dev-gutter:var(--wxt-dev-mobile-gutter,14px)!important;
  }

  /* ---------------------------------------------------------------
   * PROJECT STAGE
   * ------------------------------------------------------------ */
  body.wxt-scene-developments .wxt-development-showcase__hero{
    width:calc(100% - (var(--wxt-dev-mobile-gutter,14px) * 2))!important;
    margin:0 var(--wxt-dev-mobile-gutter,14px)!important;
    min-height:650px!important;
    height:650px!important;
    max-height:none!important;
    border-radius:20px!important;
    background:#10171c!important;
  }

  /* The live screenshot exposed an image that visually ended halfway down the
   * hero. On phone the active project image must always own the full stage. */
  body.wxt-scene-developments .wxt-development-showcase__hero-image,
  body.wxt-scene-developments .wxt-development-showcase__hero-placeholder{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:none!important;
    object-fit:cover!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-shade{
    background:
      linear-gradient(
        180deg,
        rgba(5,10,12,.05) 0%,
        rgba(5,10,12,.04) 24%,
        rgba(5,10,12,.18) 48%,
        rgba(5,10,12,.72) 70%,
        rgba(5,10,12,.94) 100%
      )!important;
  }

  body.wxt-scene-developments .wxt-development-quick-search{
    top:92px!important;
    left:16px!important;
    right:16px!important;
  }

  body.wxt-scene-developments .wxt-development-quick-search__field{
    min-height:44px!important;
    border-radius:17px!important;
    background:linear-gradient(145deg,rgba(12,20,27,.78),rgba(13,22,30,.66))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 12px 28px rgba(0,0,0,.20)!important;
  }

  /* Current project becomes the one dominant title. Previous/next projects are
   * controlled explicitly in the gallery dock on phone, removing collision. */
  body.wxt-scene-developments .wxt-development-showcase__hero-copy{
    left:20px!important;
    right:20px!important;
    bottom:202px!important;
    max-width:none!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel{
    width:100%!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__item--previous,
  body.wxt-scene-developments .wxt-development-project-wheel__item--next,
  body.wxt-scene-developments .wxt-development-project-wheel__gesture-hint{
    display:none!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__item--current,
  body.wxt-scene-developments .wxt-development-project-wheel__ghost{
    max-width:12ch!important;
    font-size:clamp(34px,10vw,42px)!important;
    line-height:.92!important;
    letter-spacing:-.045em!important;
    text-transform:none!important;
    text-wrap:balance!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__contrast{
    left:-18px!important;
    width:calc(100% + 36px)!important;
    height:calc(100% + 54px)!important;
    border-radius:24px!important;
    filter:blur(8px)!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-caption{
    margin-top:8px!important;
    max-width:32ch!important;
    font-size:10px!important;
    line-height:1.35!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-location{
    margin-top:7px!important;
    font-size:9px!important;
    line-height:1.3!important;
    letter-spacing:.12em!important;
  }

  /* ---------------------------------------------------------------
   * MOBILE GALLERY DOCK
   * Row 1 = project controls.
   * Row 2 = photo controls.
   * ------------------------------------------------------------ */
  body.wxt-scene-developments .wxt-development-showcase__project-carousel{
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    gap:8px!important;
    padding:9px 9px 10px!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 14% 0%,rgba(255,255,255,.13),transparent 32%),
      linear-gradient(150deg,rgba(9,17,23,.88),rgba(7,13,18,.76))!important;
    border-color:rgba(255,255,255,.16)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 18px 42px rgba(0,0,0,.28)!important;
    backdrop-filter:blur(20px) saturate(118%)!important;
    -webkit-backdrop-filter:blur(20px) saturate(118%)!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-bar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    min-height:0!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-width:0!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-core{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex:1 1 auto!important;
    gap:8px!important;
    min-width:0!important;
    padding-right:0!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-accent{
    width:20px!important;
    flex:0 0 20px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-text{
    font-size:.60rem!important;
    font-weight:760!important;
    letter-spacing:.16em!important;
  }

  /* v0.8.66 hid these on touch because previous/next project names were
   * tappable. v0.8.79 hides those names, so the chevrons become the clear,
   * explicit project controls instead. */
  body.wxt-scene-developments .wxt-development-showcase.has-touch-project-nav .wxt-development-project-wheel__dock{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    top:auto!important;
    width:auto!important;
    height:32px!important;
    transform:none!important;
    display:flex!important;
    align-items:center!important;
    gap:3px!important;
    padding:2px!important;
    border-radius:999px!important;
    overflow:visible!important;
  }

  body.wxt-scene-developments .wxt-development-showcase.has-touch-project-nav .wxt-development-project-wheel__dock .wxt-development-project-wheel__chevron{
    display:grid!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-project-wheel__dock button.wxt-development-project-wheel__chevron,
  body.wxt-scene-developments .wxt-development-showcase .wxt-development-project-wheel__dock button.wxt-development-gallery-visibility-toggle{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    min-height:26px!important;
    border-radius:999px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav{
    display:grid!important;
    grid-template-columns:36px 36px minmax(58px,1fr) auto!important;
    align-items:center!important;
    justify-content:stretch!important;
    width:100%!important;
    gap:6px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-line,
  body.wxt-scene-developments .wxt-development-showcase__project-status{
    display:none!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:focus-visible{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    border-radius:12px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-position{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:58px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 8px!important;
    border:1px solid rgba(255,255,255,.11)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.045)!important;
    font-size:.92rem!important;
    font-variant-numeric:tabular-nums!important;
  }

  body.wxt-scene-developments .wxt-development-files-toggle{
    justify-self:end!important;
    min-height:36px!important;
    height:36px!important;
    border-radius:12px!important;
  }

  body.wxt-scene-developments .wxt-development-files-toggle__label{
    display:none!important;
  }

  /* ---------------------------------------------------------------
   * THUMBNAIL FILMSTRIP — compact landscape cards, two-up.
   * ------------------------------------------------------------ */
  body.wxt-scene-developments .wxt-development-showcase__project-track{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    max-height:none!important;
    gap:7px!important;
    padding:1px!important;
    opacity:1!important;
    visibility:visible!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    touch-action:pan-y!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus-visible{
    flex:0 0 calc((100% - 7px) / 2)!important;
    width:calc((100% - 7px) / 2)!important;
    min-height:96px!important;
    height:96px!important;
    border-radius:12px!important;
    scroll-snap-align:start!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__copy{
    left:8px!important;
    right:auto!important;
    bottom:8px!important;
    gap:0!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__copy strong{
    display:none!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__copy small{
    display:grid!important;
    place-items:center!important;
    min-width:24px!important;
    height:20px!important;
    padding:0 6px!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:999px!important;
    background:rgba(5,11,16,.54)!important;
    color:#fff!important;
    font-size:7.5px!important;
    letter-spacing:.10em!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__underline{
    display:none!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card.is-active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card[aria-current="true"]{
    border-color:rgba(217,173,89,.96)!important;
    box-shadow:0 0 0 2px rgba(217,173,89,.19),0 10px 24px rgba(0,0,0,.24)!important;
  }

  /* Gallery is always present on touch-first phone. Explicit manual collapse
   * remains respected; automatic idle must never make the interaction vanish. */
  body.wxt-scene-developments .wxt-development-showcase.is-gallery-idle:not(.is-gallery-manual-collapsed) .wxt-development-showcase__project-carousel{
    transform:translate3d(0,0,0)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  body.wxt-scene-developments .wxt-development-showcase.is-gallery-idle:not(.is-gallery-manual-collapsed) .wxt-development-showcase__project-track{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  /* ---------------------------------------------------------------
   * PROJECT OVERVIEW
   * The two large supporting-image cards are redundant with the gallery and
   * caused the oversized mobile cards shown in live review.
   * ------------------------------------------------------------ */
  body.wxt-scene-developments .wxt-development-showcase__lower{
    display:block!important;
    padding:18px var(--wxt-dev-mobile-gutter,14px) 30px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__summary{
    width:100%!important;
    max-width:none!important;
    padding:18px!important;
    border:1px solid rgba(255,255,255,.10)!important;
    border-radius:18px!important;
    background:
      radial-gradient(circle at 15% 0%,rgba(255,255,255,.07),transparent 34%),
      linear-gradient(145deg,rgba(18,27,33,.78),rgba(10,17,22,.70))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 16px 38px rgba(0,0,0,.18)!important;
    backdrop-filter:blur(18px) saturate(112%)!important;
    -webkit-backdrop-filter:blur(18px) saturate(112%)!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__eyebrow{
    margin-bottom:10px!important;
    color:rgba(225,233,235,.58)!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__summary h2{
    max-width:14ch!important;
    color:#f5f7f7!important;
    font-size:26px!important;
    line-height:.98!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__summary>p:not(.wxt-development-showcase__eyebrow){
    margin-top:12px!important;
    color:rgba(225,233,235,.72)!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__facts{
    gap:6px!important;
    margin-top:14px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__facts span{
    padding:7px 9px!important;
    border-color:rgba(255,255,255,.12)!important;
    background:rgba(255,255,255,.06)!important;
    color:rgba(236,240,241,.76)!important;
    font-size:8px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__previews{
    display:none!important;
  }
}

@media (max-width:380px){
  body.wxt-scene-developments .wxt-development-showcase__hero{
    min-height:620px!important;
    height:620px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-copy{
    left:17px!important;
    right:17px!important;
    bottom:198px!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__item--current,
  body.wxt-scene-developments .wxt-development-project-wheel__ghost{
    font-size:34px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus-visible{
    min-height:88px!important;
    height:88px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel{
    transition:none!important;
  }
}
