/* w5 a4ecb199 — tablet + print/export audit (2026-10-26).
   Tablets and small laptops (761–1440 px): the transition / animation / theme galleries were a 760 px sideways strip inside a ribbon
   that itself scrolls sideways — a scroll inside a scroll on touch, with the timing controls pushed off the edge (1024 landscape:
   «المدة», «تطبيق على الكل», «معاينة» cut). Each gallery is now a compact grid (2 rows) that scrolls down inside itself, the way
   Office galleries do, so the whole tab fits the width. */
@media (min-width:761px) and (max-width:1440px){
  :root #rpanel.rbody :is(.fxgal,.thgal){display:grid;flex:0 0 auto;width:clamp(240px,30vw,460px);max-width:none;min-width:0;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:2px 4px 2px 2px;scrollbar-width:thin;scroll-snap-type:y proximity}
  :root #rpanel.rbody .fxgal{grid-template-columns:repeat(auto-fill,minmax(66px,1fr));max-height:142px}
  :root #rpanel.rbody .thgal{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));max-height:128px} /* one row + half of the next: shows it scrolls */
  :root #rpanel.rbody :is(.fxgal .fx,.thgal .thsw){scroll-snap-align:start;min-width:0}
  :root #rpanel.rbody .fxgal .fx{width:auto}
  :root #rpanel.rbody .thgal .thsw{width:auto}
  :root #rpanel.rbody .thgal .thsw .thp{width:100%}
}
