/* lb-fit (Luca, iPhone 2026-11-30 21:56): the opened card on a phone. The video's max-height:100% resolved against an
   auto grid row, so it was ignored: the video ran past the bottom of the screen, the description and the Sound pill sat
   on it and on its own text, and Close kept a 70 px empty band on top. Now: the media starts just under the safe area,
   its height is computed from the screen, and every control lives in a bar BELOW it (description over one row of
   counter / Sound / Close), so nothing ever covers the picture or the video. */
@media (max-width: 640px) {
  .lb { --lbbar: 96px; padding: calc(var(--safe-t, 0px) + 8px) 10px calc(var(--safe-b, 0px) + var(--lbbar)); background: rgba(5,5,8,.97); }
  .lb .lb-m { height: 100%; }
  .lb .lb-m img, .lb .lb-m video { width: auto; height: auto; max-width: 100%;
    max-height: calc(100vh - var(--safe-t, 0px) - var(--safe-b, 0px) - 8px - var(--lbbar));
    max-height: calc(100svh - var(--safe-t, 0px) - var(--safe-b, 0px) - 8px - var(--lbbar)); }
  .lb .cap { left: 14px; right: 14px; bottom: calc(var(--safe-b, 0px) + 50px); max-height: 34px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
  .lb .x { top: auto; right: 10px; bottom: calc(var(--safe-b, 0px) + 6px); padding: 8px 12px; min-height: 36px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,10,.6); }
  .lb .snd { position: fixed; left: 50%; bottom: calc(var(--safe-b, 0px) + 6px); min-height: 36px; padding: 8px 14px; }
  .lb .ct { left: 14px; right: auto; bottom: calc(var(--safe-b, 0px) + 18px); text-align: left; }
}
/* lb-open (Luca, live 2026-12-01 00:55, logged in): the user icon sat on the opened card's Close button. While a reel,
   a carousel or a photograph is open the icon and its menu are away, on every screen size; they return on Close. */
body.lb-open .cm-btn, body.lb-open .cm-sheet { display: none !important; }
