/* Mobile composition slider for the “Варианты композиции” section.
   Uses the same interaction rhythm as the homepage “Все проекты” slider,
   but with a shorter mobile aspect ratio and a compact text block below. */

body.page-wall-panels .hi-panels-composition-mobile{display:none;}

@media (max-width:900px){
  body.page-wall-panels #materials-together .hi-panels-solution-stage{
    display:none;
  }
  body.page-wall-panels .hi-panels-composition-mobile{
    display:block;
    width:100%;
    margin-top:18px;
  }
  body.page-wall-panels .hi-panels-composition-showcase{
    width:100vw;
    max-width:none;
    margin:0 calc(50% - 50vw);
    position:relative;
    background:transparent;
  }
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__viewport{
    position:relative;
    overflow:hidden;
    width:100%;
    height:100vw;
    display:block;
    padding:0;
    background:transparent;
    touch-action:auto;
    -ms-touch-action:auto;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
    user-select:none;
    -webkit-user-select:none;
  }
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__track{
    position:relative;
    z-index:1;
    display:flex;
    align-items:stretch;
    justify-content:flex-start;
    width:100%;
    min-width:100%;
    height:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overflow-anchor:none;
    scroll-snap-type:x mandatory;
    scroll-behavior:auto;
    scroll-padding-inline:0;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    -ms-touch-action:pan-y;
    scrollbar-width:none;
    transform:none;
    transition:none;
    will-change:auto;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__track::-webkit-scrollbar{display:none;}
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__image--prev,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__image--next,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__image--current{display:block;}
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__image,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__image--native{
    flex:0 0 100%;
    display:block;
    width:100%;
    aspect-ratio:1 / 1;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:cover;
    object-position:center;
    scroll-snap-align:center;
    scroll-snap-stop:always;
    transform:translate3d(0,0,0);
    will-change:auto;
    backface-visibility:hidden;
    -webkit-user-select:none;
    user-select:none;
    -webkit-touch-callout:none;
  }
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__backdrop,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__fullbleed-frame,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__viewport::after,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__meta,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__cta-wrap,
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__scrubber{display:none !important;}
  body.page-wall-panels .hi-panels-composition-showcase.is-swipe-dragging .portfolio-showcase__track,
  body.page-wall-panels .hi-panels-composition-showcase.is-swipe-animating .portfolio-showcase__track,
  body.page-wall-panels .hi-panels-composition-showcase.is-scrubbing .portfolio-showcase__track{
    scroll-snap-type:none;
    scroll-behavior:auto !important;
    -webkit-overflow-scrolling:auto;
  }

  body.page-wall-panels .hi-panels-composition-copy{
    padding:8px 0 0;
  }
  body.page-wall-panels .hi-panels-composition-copy__meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    margin:0 0 2px;
  }
  body.page-wall-panels .hi-panels-composition-copy__arrows{
    display:flex;
    align-items:center;
    gap:0;
    margin-left:auto;
    flex:0 0 auto;
  }
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav{
    appearance:none;
    position:static;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#f1efeb;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:color .2s ease;
  }
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav span{
    font:300 30px/1 Arial,sans-serif;
    transform:translateY(-1px);
  }
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav:hover,
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav.is-key-active{
    color:#d1ba8d;
  }
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav:focus-visible{
    color:#d1ba8d;
    outline:1px solid #d1ba8d;
    outline-offset:-5px;
  }

  body.page-wall-panels .hi-panels-composition-copy__index,
  body.page-wall-panels .hi-panels-composition-copy__eyebrow{
    color:#d1ba8d;
    font:600 11px/1.3 Inter, Arial, sans-serif;
    letter-spacing:.18em;
    text-transform:uppercase;
  }
  body.page-wall-panels .hi-panels-composition-copy__index{
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }
  body.page-wall-panels .hi-panels-composition-copy__title{
    margin:0 0 14px;
    color:#f4f0ea;
    font:700 22px/1.16 Inter, Arial, sans-serif;
  }
  body.page-wall-panels .hi-panels-composition-copy__text,
  body.page-wall-panels .hi-panels-composition-copy__note{
    margin:0;
    color:rgba(241,236,229,.92);
    font:400 15px/1.64 Inter, Arial, sans-serif;
  }
  body.page-wall-panels .hi-panels-composition-copy__note{
    display:none;
  }
}

@media (max-width:560px){
  body.page-wall-panels .hi-panels-composition-copy__title{font-size:20px;}
}

/* v26: tabs change the material; the gallery has independent photo navigation. */
@media (max-width:900px){
  body.page-wall-panels .hi-panels-composition-showcase .portfolio-showcase__track{
    touch-action:pan-x pan-y;
    -ms-touch-action:pan-x pan-y;
    overscroll-behavior-x:contain;
  }
  body.page-wall-panels .hi-panels-composition-showcase.is-single .portfolio-showcase__track{overflow-x:hidden;}
  body.page-wall-panels .hi-panels-composition-copy__arrows[hidden]{display:none;}
  body.page-wall-panels .hi-panels-composition-copy__arrows .portfolio-showcase__nav:disabled{
    opacity:.28;cursor:default;
  }
}

/* v28: a compact VK-style photo counter, without arrows obscuring the image. */
@media (max-width:900px){
  body.page-wall-panels #materials-together .hi-panels-composition-showcase .hi-panels-photo-counter--mobile{
    position:absolute;
    z-index:8;
    top:12px;
    right:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(0,0,0,.52);
    color:#fff;
    font:600 12px/1.25 Inter,Arial,sans-serif;
    font-variant-numeric:tabular-nums;
    letter-spacing:0;
    pointer-events:none;
  }
  body.page-wall-panels #materials-together .hi-panels-composition-showcase .hi-panels-photo-counter--mobile[hidden]{
    display:none !important;
  }
  body.page-wall-panels #materials-together .hi-panels-composition-copy__index{
    display:none;
  }
}
