/* File: th_lightbox.css | Path: calcwood.tomashorsky.com/shared/th_lightbox.css
   Info: Styl sdíleného lightboxu (shared/js/th_lightbox.js): tmavé pozadí přes celou obrazovku, obrázky pod sebou do 1100 px,
   křížek vpravo nahoře 44 × 44 px. Poslední změna: 27-11-26: vznik. Verze: 27-11-26 v_1.00 */
html.th-lb-open, html.th-lb-open body { overflow: hidden; }
.th-lb {
    position: fixed; inset: 0; z-index: 1000000; background: rgba(0, 0, 0, 0.9);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 64px 16px 40px; box-sizing: border-box; cursor: zoom-out;
    animation: th-lb-in 0.2s ease;
}
@keyframes th-lb-in { from { opacity: 0; } to { opacity: 1; } }
.th-lb-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.th-lb-fig { margin: 0; }
.th-lb-fig img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); cursor: default; }
.th-lb-fig figcaption { margin-top: 10px; color: #bbb; font-size: 14px; text-align: center; }
.th-lb-close {
    position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #444; background: #1a1a1a; color: #fff; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.th-lb-close:hover, .th-lb-close:focus-visible { border-color: #f9c343; color: #f9c343; outline: none; }
.th-lb-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 768px) {
    .th-lb { padding: 60px 8px 24px; }
    .th-lb-inner { gap: 18px; }
}
