/* Home page: the "Made at Loom Wave" examples.
   Laptops and tablets (768px and wider): two rows stacked down the page: the
   client row (varsity jackets, football jerseys), then the two quarter zips.
   Phones: the four examples sit in one row that slides sideways (swipe, or the
   arrow buttons), so the page stays short.
   The section's class "lw-proof-slideshow" switches the phone row on; remove
   that class in index.html to stack the rows on phones too. */
@media (min-width:768px){
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls{display:none}
  /* air between the client row (jackets, jerseys) and the garment row under it */
  html[data-prototype-page="/"] #previous-work .lw-proof-home-support + .lw-proof-home-pair{margin-top:clamp(44px,5vw,76px)}
}
/* the jersey photo is cropped to a square: keep the sleeve with the full Loom Wave mark in view */
html[data-prototype-page="/"] #previous-work [data-proof-open="loom-wave-detail"] img{object-position:100% 50%!important}
@media (max-width:767px){
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery{
    display:flex!important;align-items:flex-start;gap:12px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;
    overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    margin:0!important;padding:0 20px 6px!important;width:100%!important;scroll-padding-inline:20px;
  }
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery::-webkit-scrollbar{display:none}
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery:focus-visible{outline:3px solid #a47a31;outline-offset:5px}
  /* the three row wrappers disappear, so all six cards line up in the one row */
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow :is(.lw-proof-home-pair,.lw-proof-home-video-pair,.lw-proof-home-support){display:contents!important}
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery article{
    flex:0 0 86%!important;width:auto!important;max-width:none!important;
    min-width:0;margin:0!important;scroll-snap-align:start;
  }
  /* every slide's picture has the same square shape */
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery article .lw-proof-open{
    aspect-ratio:1/1!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  }
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery article .lw-proof-caption{padding-top:16px}
  /* arrows and counter, matching the client reviews */
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:16px 0 0;padding:0 20px}
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-status{margin:0 auto 0 0!important;color:#625b4e;font:500 12px/1 Arial,sans-serif;letter-spacing:.14em}
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls button{
    display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #cfd1cf;border-radius:50%;
    background:#f7f7f5;color:#666864;font:400 18px/1 Arial,sans-serif;cursor:pointer;
    transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
  }
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls button:last-child{border-color:#eca936;background:#fff2d9;color:#292a26}
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls button:focus-visible{outline:3px solid #a47a31;outline-offset:5px}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  html[data-prototype-page="/"] #previous-work.lw-proof-slideshow .lw-proof-home-gallery{scroll-behavior:auto}
  html[data-prototype-page="/"] #previous-work .lw-proof-slide-controls button{transition:none}
}
