/* frames_swipe layer (29 Nov 2026). Phone only. Off: ?frames_swipe=0. See js/frames-swipe.js. */
@media (max-width:899px){
 html.ff-frames_swipe .product-page .frame-real-grid,
 html.ff-frames_swipe .tp-pickers .frame-real-grid,
 html.ff-frames_swipe .set-pickers .frame-real-grid,
 html.ff-frames_swipe .set-page .frame-real-grid{
  display:grid;
  grid-auto-flow:column;
  justify-content:start !important;
  align-content:start;
  grid-template-rows:repeat(2,auto);
  grid-template-columns:none;
  grid-auto-columns:calc((100% - 1.5rem)/3.35);
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  padding:0 0 .45rem;
 }
 html.ff-frames_swipe .product-page .real-frames,
 html.ff-frames_swipe .set-page .real-frames,
 html.ff-frames_swipe .tp-pickers{min-width:0;max-width:100%}
 html.ff-frames_swipe .product-page .frame-real-grid > .frame-real,
 html.ff-frames_swipe .set-page .frame-real-grid > .frame-real{scroll-snap-align:start}
}
/* Same fix for the "Whole room" card picker on phones: it was a 36vh box with its own scroll.
   Two-row sideways strip; the stage around it never scrolls on its own. */
@media (max-width:899px){
 html.ff-frames_swipe:not(.rooms-picker-off) .tp-scenes:not([hidden]){
  display:grid !important;
  grid-auto-flow:column;
  justify-content:start !important;
  align-content:start;
  grid-template-rows:repeat(2,auto);
  grid-auto-columns:calc((100% - 1rem)/2.7);
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  gap:.5rem;
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
 }
 html.ff-frames_swipe:not(.rooms-picker-off) .tp-scenes:not([hidden]) .tp-scene{max-width:none;width:auto;scroll-snap-align:start}
 html.ff-frames_swipe:not(.rooms-picker-off) .tp-scenes:not([hidden]) .tp-scene img{width:100%;height:auto;aspect-ratio:104/58;object-fit:cover}
 html.ff-frames_swipe:not(.rooms-picker-off) body:has(.product-page) .product-stage:has([data-tp-scenes]:not([hidden])){overflow:visible}
}
