/* AZO V5.84 — desktop-only horizontal case-study rail.
   Mobile display and underlying case materials remain unchanged. */
@media (min-width:701px) {
  #work .azo-case-mobile-shell {
    display:block;
    width:100%;
    min-width:0;
    position:relative;
  }
  #work .azo-case-mobile-frame { display:block; min-width:0; overflow:hidden; }
  #work .azo-case-mobile-controls {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:clamp(12px,2vw,26px);
    margin:clamp(14px,2vw,26px) 0 clamp(16px,2vw,26px);
    width:100%;
  }
  #work .azo-case-mobile-picker {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:clamp(8px,1vw,13px);
    min-width:0;
  }
  #work .azo-case-mobile-pick {
    font:inherit;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:7px 15px 7px 7px;
    min-width:0;
    min-height:58px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:16px;
    background:rgba(255,255,255,.065);
    color:#fff;
    cursor:pointer;
    transition:background .24s ease,border-color .24s ease,box-shadow .24s ease;
    text-align:start;
  }
  #work .azo-case-mobile-pick:hover,
  #work .azo-case-mobile-pick.is-selected {
    border-color:rgba(255,255,255,.7);
    background:rgba(255,255,255,.2);
    box-shadow:inset 0 1px rgba(255,255,255,.23),0 10px 26px rgba(100,44,6,.14);
  }
  #work .azo-case-mobile-pick:focus-visible,
  #work .azo-case-mobile-arrows button:focus-visible {outline:2px solid #fff;outline-offset:3px}
  #work .azo-case-mobile-thumb {
    width:48px;
    height:45px;
    flex:none;
    border-radius:10px;
    object-fit:cover;
    object-position:center 40%;
  }
  #work .azo-case-mobile-name {
    font-size:clamp(12px,1vw,14px);
    font-weight:750;
    line-height:1.4;
    overflow-wrap:anywhere;
  }
  #work .azo-case-mobile-arrows {
    display:flex;
    flex:none;
    align-items:center;
    gap:11px;
    direction:ltr;
  }
  #work .azo-case-mobile-arrows button {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.4);
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.085);
    cursor:pointer;
    transition:background .24s ease,border-color .24s ease;
  }
  #work .azo-case-mobile-arrows button:hover {
    background:rgba(255,255,255,.22);
    border-color:rgba(255,255,255,.8);
  }
  #work .azo-case-mobile-arrows button svg {width:18px;height:18px}
  #work .azo-case-mobile-counter {
    font:600 12px/1 system-ui,sans-serif;
    letter-spacing:.08em;
    color:rgba(255,255,255,.85);
    min-width:58px;
    text-align:center;
  }
  #work .azo-case-mobile-shell .azo-cases-v580 {
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:clamp(14px,1.7vw,24px)!important;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0!important;
    padding:0 0 12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:0;
    scroll-behavior:smooth;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  #work .azo-case-mobile-shell .azo-cases-v580::-webkit-scrollbar {display:none}
  #work .azo-case-mobile-shell .azo-portfolio-case {
    flex:0 0 calc(100% - clamp(25px,4vw,64px))!important;
    width:calc(100% - clamp(25px,4vw,64px))!important;
    max-width:calc(100% - clamp(25px,4vw,64px))!important;
    min-width:0;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
}
html[dir='ltr'] #work .azo-case-mobile-arrows button svg{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce) {
  #work .azo-case-mobile-shell .azo-cases-v580{scroll-behavior:auto}
  #work .azo-case-mobile-pick,#work .azo-case-mobile-arrows button{transition:none}
}
