/* A conversation's photo over the page (assets/lightbox.js) */
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 18, 26, .94); color: #fff; overflow: hidden; }
.lb:focus { outline: none; }
.lb::backdrop { background: none; }
.lb[open] { display: flex; flex-direction: column; }
.lb-top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 20px; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lb-n { flex: none; font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.lb-b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.lb-b:hover { background: rgba(255, 255, 255, .14); }
.lb-b:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px calc(20px + env(safe-area-inset-bottom)); }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; cursor: zoom-in; transition: opacity .15s; }
.lb.wait .lb-stage img { opacity: 0; }
.lb.wait .lb-stage::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.lb-bad { display: none; margin: 0; }
.lb.bad .lb-bad { display: block; }
.lb.bad .lb-stage img { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; background: rgba(255, 255, 255, .1); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb.one .lb-prev, .lb.one .lb-next { display: none; }
/* full size: scrolled about */
.lb.full .lb-stage { display: block; overflow: auto; scrollbar-width: none; padding: 0; text-align: center; }
.lb.full .lb-stage::-webkit-scrollbar { display: none; }
.lb.full .lb-stage img { display: inline-block; max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px calc(72px + env(safe-area-inset-bottom)); }
  .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }
