/* Prohlížení obrázků (js/lightbox.js, od 11. 11. 2026). Stejné pro web i pro stránky hesel z databáze. */
.vlb-odkaz { cursor: zoom-in; }
html.vlb-otevreno, html.vlb-otevreno body { overflow: hidden; }
.vlb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 50px 70px 40px; background: rgba(15, 15, 12, 0.97); animation: vlb-in 0.2s ease-out; }
.vlb[hidden] { display: none; }
@keyframes vlb-in { from { opacity: 0; } to { opacity: 1; } }
.vlb-obsah { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.vlb-obsah img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; margin: 0; object-fit: contain; background: #fff; border-radius: 3px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); transition: opacity 0.15s; }
/* Malé obrázky (např. 260 px z docx Průvodce) se zvětší aspoň na 60 % výšky okna, jinak by v okně byly maličké. */
.vlb-obsah img { min-height: min(60vh, 560px); }
.vlb.nacita .vlb-obsah img { opacity: 0.35; }
.vlb-obsah figcaption { max-width: 760px; margin-top: 14px; color: #eee; font-size: 15px; line-height: 1.5; text-align: center; }
.vlb-obsah figcaption * { color: inherit; }
.vlb-obsah figcaption .hw-soubor-zdroj { color: #aaa; }
.vlb button { position: absolute; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: 0.8; transition: opacity 0.15s, background 0.15s; }
.vlb button svg { display: block; }
.vlb button:hover, .vlb button:focus-visible { opacity: 1; }
.vlb button:focus-visible { outline: 2px solid #0db300; outline-offset: 2px; }
.vlb button[hidden] { display: none; }
.vlb-zavrit { top: 10px; right: 14px; width: 52px; height: 52px; border-radius: 50%; }
.vlb-zavrit svg { width: 30px; height: 30px; }
.vlb-zavrit:hover { background: rgba(255, 255, 255, 0.08); }
.vlb-predchozi, .vlb-dalsi { top: 50%; transform: translateY(-50%); width: 56px; height: 90px; border-radius: 6px; }
.vlb-predchozi svg, .vlb-dalsi svg { width: 36px; height: 36px; }
.vlb-predchozi:hover, .vlb-dalsi:hover { background: rgba(255, 255, 255, 0.08); }
.vlb-predchozi { left: 8px; }
.vlb-dalsi { right: 8px; }
/* Zoom: plocha s obrázkem; ve zvětšení se posouvá (kolečko, tažení, prst). */
.vlb-plocha { max-width: 100%; touch-action: pan-x pan-y; }
.vlb.vlb-zoom .vlb-plocha { overflow: auto; overscroll-behavior: contain; cursor: grab; background: rgba(255, 255, 255, 0.03); border-radius: 3px; }
.vlb.vlb-zoom .vlb-plocha.vlb-tahnu { cursor: grabbing; }
.vlb.vlb-zoom .vlb-plocha img { max-width: none; max-height: none; min-height: 0; display: block; box-shadow: none; border-radius: 0; user-select: none; }
.vlb-obsah img { cursor: zoom-in; }
.vlb.vlb-zoom .vlb-obsah img { cursor: inherit; }
.vlb-zoom-plus, .vlb-zoom-minus { top: 10px; width: 52px; height: 52px; border-radius: 50%; }
.vlb-zoom-plus { right: 126px; }
.vlb-zoom-minus { right: 70px; }
.vlb-zoom-plus svg, .vlb-zoom-minus svg { width: 26px; height: 26px; }
.vlb-zoom-plus:hover, .vlb-zoom-minus:hover { background: rgba(255, 255, 255, 0.08); }
.vlb button:disabled { opacity: 0.25; cursor: default; background: none; }
/* Dotyková zařízení bez myši: zoom prsty, tlačítka nejsou potřeba. */
@media (hover: none) and (pointer: coarse) { .vlb .vlb-zoom-plus, .vlb .vlb-zoom-minus { display: none; } }
.vlb-pocet { position: absolute; top: 18px; left: 22px; margin: 0; color: #bbb; font-size: 15px; }
@media only screen and (max-width: 600px) {
    .vlb { padding: 56px 10px 20px; }
    .vlb-obsah img { max-height: calc(100vh - 200px); }
    .vlb-predchozi, .vlb-dalsi { top: auto; bottom: 10px; transform: none; height: 56px; background: rgba(0, 0, 0, 0.35); }
    .vlb-obsah figcaption { font-size: 14px; margin-bottom: 60px; }
}
@media print { .vlb { display: none !important; } }
