/* r-slides5 (9709d662). */
/* 1. Phones (<= 760 px): the Design theme strip «.thgal» was a sideways rail that cut off its last card («قالب لؤلؤي» at 390).
      It now wraps onto rows inside the panel and scrolls up/down within at most two rows, like the transition gallery. */
@media (max-width:760px){
  :root #rpanel .rg:has(.thgal){flex:1 0 100%;max-width:100%;min-width:0}
  :root #rpanel .rg:has(.thgal) :is(.rgi,.rgr){width:100%;max-width:100%;min-width:0}
  :root #rpanel .thgal{flex-wrap:wrap;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;max-width:100%;width:100%;max-height:140px;align-content:flex-start;justify-content:flex-start}
}
/* 2. Touch and short sideways screens: the section headers in the format pane («التخطيط» …) were 36 px tall; make them 44 px. */
@media (pointer:coarse),(orientation:landscape) and (max-height:500px){
  #ed summary{min-height:44px;display:flex;align-items:center;box-sizing:border-box}
}
/* 3. Slide show on touch screens: the show's controls («السابق», «التالي», «قلم», «مؤشر ليزر», «كل الشرائح») were 36x36 at 390; make them 44x44. */
@media (pointer:coarse){
  #show :is(button,[role=button]){min-width:44px;min-height:44px}
}
