/* Náhledy aplikace: mřížka snímků obrazovky a prohlížeč přes celé okno (js/nahledy.js).
   Společná komponenta prezentačních webů (Documentor, CryoDOC, NetReporter) – měnit ve všech stejně.
   Jen tokeny ze site.css, žádné inline styly (CSP style-src 'self'). */

.shots-group { margin: 40px 0 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.shots-group:first-of-type { margin-top: 8px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 24px; }
.shot { margin: 0; min-width: 0; }
.shot-link { display: block; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); aspect-ratio: 16 / 10; transition: border-color .2s, transform .2s; }
.shot-link img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* snímek telefonu (na výšku): celý, na tmavém podkladu */
.shot--mobil .shot-link img { object-fit: contain; object-position: center; padding: 10px 0; }
.shot-link::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(8, 9, 11, .78); color: var(--text-1); font-size: 15px; opacity: 0; transition: opacity .2s; }
.shot-link:hover, .shot-link:focus-visible { border-color: var(--accent); }
.shot-link:hover::after, .shot-link:focus-visible::after { opacity: 1; }
.shot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot-cap { margin: 12px 2px 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.shot-cap strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--text-1); }

/* prohlížeč */
.shot-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 11, .94); color: var(--text-1); }
.shot-dialog::backdrop { background: rgba(8, 9, 11, .7); }
.shot-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
/* pevná mřížka 1fr × 1fr: max-height: 100 % obrázku se pak počítá z výšky okna (jinak snímek na výšku přeteče pod popisek) */
.shot-dialog-fig { margin: 0; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 56px 72px 12px; }
.shot-dialog-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--border-hi); border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.shot-dialog-cap { display: flex; gap: 16px; align-items: baseline; justify-content: center; padding: 8px 24px 24px; font-size: 15px; line-height: 1.5; color: var(--text-2); text-align: center; }
.shot-dialog-cap strong { color: var(--text-1); font-weight: 500; }
.shot-dialog-pos { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-3); white-space: nowrap; }
.shot-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-hi); border-radius: 50%; background: rgba(22, 25, 29, .9); color: var(--text-1); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.shot-btn:hover, .shot-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot-btn--zavrit { top: 14px; right: 16px; }
.shot-btn--predchozi { left: 16px; top: 50%; transform: translateY(-50%); }
.shot-btn--dalsi { right: 16px; top: 50%; transform: translateY(-50%); }
html.shot-otevreno { overflow: hidden; }

@media (max-width: 720px) {
    .shots { grid-template-columns: 1fr; gap: 20px; }
    .shot-dialog-fig { padding: 60px 12px 8px; }
    .shot-btn--predchozi, .shot-btn--dalsi { top: auto; bottom: 14px; transform: none; }
    .shot-dialog-cap { padding: 8px 64px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .shot-link, .shot-link::after, .shot-btn { transition: none; }
}
