/* open-speed (Luca, phone 2026-12-03 15:53): the opened photograph or video is never an empty box. viewer.js gives
   every layer the same box (computed from the screen and the picture's shape) and stacks them in one grid cell:
   .ph the blurred card, .mid the file the field already had, then the full picture or the video on top. */
.lb .lb-m picture { display: contents; }
.lb .lb-m > *, .lb .lb-m picture > img { grid-area: 1 / 1; }
.lb .lb-m img, .lb .lb-m video { max-width: none; max-height: none; object-fit: contain; }
.lb .lb-m .ph { z-index: 0; overflow: hidden; background: #0b0b0e; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb .lb-m .ph canvas { display: block; width: 100%; height: 100%; filter: blur(9px); transform: scale(1.1); visibility: hidden; }
.lb .lb-m .ph.has canvas { visibility: visible; }
.lb .lb-m img.mid { z-index: 1; box-shadow: none; pointer-events: none; opacity: 0; transition: opacity .12s linear; }
.lb .lb-m img.mid.in { opacity: 1; }
.lb .lb-m picture > img { z-index: 2; box-shadow: none; opacity: 0; transition: opacity .18s linear; }
.lb .lb-m picture > img.in { opacity: 1; }
.lb .lb-m video { z-index: 2; box-shadow: none; background: transparent; opacity: 0; transition: opacity .15s linear; }
.lb .lb-m video.in { opacity: 1; background: #000; }
.lb .snd { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .lb .lb-m img, .lb .lb-m video { transition: none; } }
