/*
 * WebXtent v0.8.110 — Developments mobile reference restoration.
 *
 * Restores the accepted phone control geometry shown in the live reference:
 *   - PHOTOS remains a label row.
 *   - previous-project / gallery visibility / next-project sit underneath it on the left.
 *   - previous-photo / next-photo / counter remain a compact right-aligned group.
 *   - the project heading returns to the canonical 44px mobile scale.
 *
 * v0.8.106 thumbnail sizing/peek, navy glass, swipe behaviour and canonical
 * Design Studio variables remain untouched.
 */

@media (max-width:767px){

  /* Reference heading scale. Keep the existing canonical mobile variable so
   * Design Studio remains the owner, while this downstream layer restores the
   * accepted phone typography/cascade. */
  body.wxt-scene-developments .wxt-development-project-wheel__item--current,
  body.wxt-scene-developments .wxt-development-project-wheel__ghost{
    font-size:var(--wxt-dev-mobile-title-size,44px)!important;
    max-width:9.5ch!important;
    line-height:.90!important;
  }

  /* The accepted mobile tray reserves one label lane plus a compact navigation
   * lane. The enlarged v0.8.106 thumbnails remain below this bar unchanged. */
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-bar,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-bar{
    position:relative!important;
    min-height:92px!important;
    padding-bottom:44px!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-label,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label,
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-core,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-core{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-core,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-core{
    display:block!important;
  }

  /* Left group: project navigation directly below PHOTOS, using the canonical
   * authorable size/offset introduced in v0.8.94. */
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase.has-touch-project-nav .wxt-development-project-wheel__dock,
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-project-wheel__dock,
  body.wxt-scene-developments .wxt-development-project-wheel__dock{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:auto!important;
    top:calc(100% + var(--wxt-dev-mobile-project-control-offset-y,24px))!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
    align-self:auto!important;
    width:max-content!important;
    min-width:0!important;
    height:var(--wxt-dev-mobile-project-control-size,31px)!important;
    display:grid!important;
    grid-template-columns:repeat(3,var(--wxt-dev-mobile-project-control-size,31px))!important;
    gap:4px!important;
    align-items:center!important;
    justify-content:start!important;
    overflow:visible!important;
    z-index:8!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-project-wheel__dock .wxt-development-project-wheel__chevron,
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-project-wheel__dock button.wxt-development-gallery-visibility-toggle,
  body.wxt-scene-developments .wxt-development-project-wheel__dock .wxt-development-project-wheel__chevron,
  body.wxt-scene-developments .wxt-development-project-wheel__dock button.wxt-development-gallery-visibility-toggle{
    width:var(--wxt-dev-mobile-project-control-size,31px)!important;
    height:var(--wxt-dev-mobile-project-control-size,31px)!important;
    min-width:var(--wxt-dev-mobile-project-control-size,31px)!important;
    min-height:var(--wxt-dev-mobile-project-control-size,31px)!important;
    margin:0!important;
    padding:0!important;
    align-self:center!important;
    justify-self:center!important;
    border-radius:50%!important;
  }

  /* Right group: reference ordering is previous photo, next photo, then counter.
   * The optional Files control keeps the fourth slot. */
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav{
    position:absolute!important;
    right:0!important;
    left:auto!important;
    bottom:5px!important;
    display:grid!important;
    grid-template-columns:34px 34px minmax(94px,100px) 34px!important;
    align-items:center!important;
    justify-content:end!important;
    width:max-content!important;
    max-width:calc(100% - 108px)!important;
    min-height:42px!important;
    gap:5px!important;
    margin:0!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 [data-wxt-construct="developments.showcase.gallery.photo-prev"]{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:center!important;
  }

  body.wxt-scene-developments [data-wxt-construct="developments.showcase.gallery.photo-next"]{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:center!important;
  }

  body.wxt-scene-developments [data-wxt-construct="developments.showcase.gallery.counter"]{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:stretch!important;
    align-self:center!important;
  }

  body.wxt-scene-developments [data-wxt-construct="developments.showcase.files.toggle"]{
    grid-column:4!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0!important;
    border-radius:12px!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-position,
  body.wxt-scene-developments .wxt-development-showcase__project-position{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100px!important;
    min-width:94px!important;
    max-width:100px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 8px!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-files-toggle,
  body.wxt-scene-developments .wxt-development-files-toggle{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0!important;
    justify-content:center!important;
  }

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

@media (max-width:359px){
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav,
  body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav{
    grid-template-columns:30px 30px minmax(72px,88px) 30px!important;
    max-width:calc(100% - 104px)!important;
    gap:4px!important;
    min-height:40px!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle,
  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-files-toggle,
  body.wxt-scene-developments .wxt-development-files-toggle{
    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    height:30px!important;
    min-height:30px!important;
  }

  html.wxt-developments-mobile-viewport body.wxt-scene-developments .wxt-development-showcase__project-position,
  body.wxt-scene-developments .wxt-development-showcase__project-position{
    width:88px!important;
    min-width:72px!important;
    max-width:88px!important;
    height:40px!important;
    min-height:40px!important;
  }
}
