img.lb-zoom { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
dialog.lb { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 14, .94); color: #fff; }
dialog.lb::backdrop { background: rgba(12, 12, 14, .94); }
dialog.lb figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 3.5rem 4rem 3rem; box-sizing: border-box; }
dialog.lb img { display: block; max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); cursor: zoom-out; }
dialog.lb figcaption { max-width: 60rem; font: 400 .9rem/1.4 system-ui, sans-serif; text-align: center; color: #ddd; max-height: 4.2em; overflow: auto; }
dialog.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 400 2rem/1 system-ui, sans-serif; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0 0 .2rem; }
dialog.lb button:hover, dialog.lb button:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; outline-offset: 2px; }
dialog.lb .lb-x { top: 1rem; right: 1rem; }
dialog.lb .lb-p { left: 1rem; top: 50%; transform: translateY(-50%); }
dialog.lb .lb-n { right: 1rem; top: 50%; transform: translateY(-50%); }
dialog.lb .lb-c { position: absolute; top: 1.35rem; left: 1.25rem; font: 600 .85rem system-ui, sans-serif; color: #bbb; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { dialog.lb figure { padding: 3.5rem .5rem 2.5rem; } dialog.lb .lb-p, dialog.lb .lb-n { top: auto; bottom: 1rem; transform: none; } }
