/* Náhled webu s fotkami – vložené fotky (vf-*) a ovládací panel (#nf-*) */
:root{--vf-w:color-mix(in srgb,var(--karta,#fff) 90%,transparent)}
.vf-fig{margin:0;overflow:hidden;position:relative;display:block;background:color-mix(in srgb,var(--okraj,#ddd) 40%,#fff)}
.vf-fig>img,.vf-odkaz>img{display:block;width:100%;height:100%;object-fit:cover}
.vf-fig[aria-hidden]:has(.vf-odkaz){pointer-events:auto}
.vf-fig.vf-none{display:none!important}
#nf-panel .nf-it .nf-none{display:grid;place-items:center;aspect-ratio:3/2;font-style:normal;font-size:12px;color:#8a96a0;background:repeating-linear-gradient(45deg,#f1f3f5 0 8px,#e8ebee 8px 16px)}
.vf-odkaz{display:block;width:100%;height:100%;cursor:pointer}
.vf-odkaz>img{transition:transform .35s ease}
.vf-odkaz:hover>img{transform:scale(1.05)}
.vf-ring{box-shadow:0 0 0 6px var(--karta,#fff),0 0 0 calc(6px + var(--fx-border-w,2px)) var(--okraj,#ddd),0 14px 30px var(--stin,rgba(0,0,0,.14))}
.vf-ring-s{box-shadow:0 0 0 4px var(--karta,#fff),0 0 0 calc(4px + var(--fx-border-w,2px)) var(--okraj,#ddd),0 8px 18px var(--stin,rgba(0,0,0,.14))}
.vf-kruh{border-radius:50%;aspect-ratio:1}
.vf-zaobl{border-radius:var(--fx-r-card,26px)}
.vf-oblouk{border-radius:999px 999px 26px 26px}
.vf-kapka{border-radius:58% 42% 52% 48%/46% 56% 44% 54%}
.vf-domek{clip-path:polygon(50% 0,100% 38%,100% 100%,0 100%,0 38%);border-radius:0;background:none}
/* „polaroid“ = stejné provedení jako ostatní fotky: zaoblené rohy, bílý rám, bez natočení */
.vf-polaroid{border-radius:var(--fx-r-card,26px);box-shadow:0 0 0 6px var(--karta,#fff),0 0 0 calc(6px + var(--fx-border-w,2px)) var(--okraj,#ddd),0 14px 30px var(--stin,rgba(0,0,0,.14));rotate:none!important}
.vf-polaroid{aspect-ratio:4/3;align-self:flex-start}
.vf-polaroid>img{height:100%}
.vf-bg{position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;background:none}
.vf-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--vf-w) 0,var(--vf-w) 32%,color-mix(in srgb,var(--vf-w) 35%,transparent) 72%,color-mix(in srgb,var(--vf-w) 12%,transparent))}
@media (max-width:699px){.vf-bg::after{background:color-mix(in srgb,var(--karta,#fff) 80%,transparent)}}
.vf-mlha{background:none;pointer-events:none;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 30%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 30%,transparent 100%)}
.vf-dvoj{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}
.vf-dvoj .vf-fig{aspect-ratio:4/3}
.vf-float{float:right;margin:6px 0 14px 24px}
@media (max-width:699px){html.vf-m-stejne .vf-float{float:none!important;width:min(100%,340px)!important;margin:14px auto 18px!important}}
@media (max-width:699px){
 html.vf-m-skryt [data-vf]{display:none!important}
 html.vf-m-pas .vf-fig{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:16/8!important;margin:16px 0!important;rotate:none!important;transform:none!important;border-radius:22px!important;clip-path:none!important;float:none!important;padding:0!important;grid-column:1/-1!important;grid-row:auto!important;justify-self:stretch!important;order:0!important;box-shadow:none!important;-webkit-mask-image:none!important;mask-image:none!important}
 html.vf-m-pas .vf-fig::after{display:none!important}
 html.vf-m-pas .vf-fig>img{aspect-ratio:auto!important;height:100%!important;border-radius:0!important}
 html.vf-m-pas .vf-grp{position:static!important;display:block!important;width:auto!important;transform:none!important;margin:0!important}
 html.vf-m-pas .vf-grp .vf-fig:not(:first-of-type){display:none!important}
 html.vf-m-pas .vf-dvoj{display:block!important}
}

/* 1 záhlaví podstránek */
.ph{--vf-sw:clamp(240px,30vw,400px)}
@media (max-width:759px){.ph{--vf-sw:min(230px,56vw)}}
html.vf-ph-A .ph-obal,html.vf-ph-E .ph-obal{position:relative}
html.vf-ph-A .ph .vf-fig{position:absolute;z-index:1;width:calc(var(--vf-sw)*.56);right:calc(var(--vf-sw)*.22)}
@media (min-width:760px){html.vf-ph-A .ph .vf-fig{bottom:calc(var(--vf-sw)*.03 - 18px)}}
@media (max-width:759px){html.vf-ph-A .ph .vf-fig{top:0}}
html.vf-ph-B .ph .vf-fig{width:clamp(220px,24vw,330px);justify-self:end;align-self:center;rotate:3deg;margin:10px 14px 30px;position:relative;z-index:2}
@media (max-width:759px){html.vf-ph-B .ph .vf-fig{order:-1;width:min(200px,54vw);margin:6px 10px 8px}}
html.vf-ph-C .ph>.vf-fig{position:absolute;inset:0}
html.vf-ph-C .ph-obal{position:relative;z-index:2}
html.vf-ph-D .ph .vf-fig{width:clamp(200px,22vw,300px);aspect-ratio:1/.9;justify-self:end;align-self:end;margin:0 20px -22px;position:relative;z-index:2}
@media (max-width:759px){html.vf-ph-D .ph .vf-fig{order:-1;width:min(170px,46vw);margin:4px 10px 0}}
/* poloha a velikost se dopočítá podle nadpisu (fotky.js – placeSoft) */
html.vf-ph-E .ph-obal>.vf-fig{position:absolute;z-index:0}
html.vf-ph-E .ph-text,html.vf-ph-E .ph-scena{position:relative;z-index:2}

/* 2 uvítání */
html.vf-uvod-A .uvod>.vf-fig{position:absolute;z-index:0;right:clamp(16px,7vw,130px);top:clamp(20px,4vw,60px);width:clamp(200px,24vw,320px)}
html.vf-uvod-B .uvod>.vf-fig{position:absolute;z-index:0;left:calc(61% - clamp(110px,12vw,170px));width:clamp(220px,24vw,340px);aspect-ratio:3/3.4;bottom:clamp(60px,9vw,120px)}
html.vf-uvod-C .uvod>.vf-grp{position:absolute;z-index:2;left:calc(50% + 40px);top:clamp(170px,19vw,250px);width:clamp(240px,23vw,330px);display:flex;align-items:flex-start;gap:18px}
html.vf-uvod-C .vf-grp::before{content:"";position:absolute;left:-6%;right:-6%;top:-10px;height:30px;border-top:2px solid color-mix(in srgb,var(--ink,#333) 45%,transparent);border-radius:50%}
html.vf-uvod-C .vf-grp .vf-fig{flex:1 1 0;min-width:0}
html.vf-uvod-D .uvod>.vf-fig{position:absolute;inset:0}
html.vf-uvod-D .uvod>.vf-fig::after{background:linear-gradient(90deg,var(--vf-w) 0,var(--vf-w) 38%,color-mix(in srgb,var(--vf-w) 25%,transparent) 80%)}
@media (max-width:699px){html.vf-m-stejne.vf-uvod-A .uvod>.vf-fig,html.vf-m-stejne.vf-uvod-B .uvod>.vf-fig{position:relative;left:auto;right:auto;top:auto;bottom:auto;margin:18px auto 0;width:min(250px,64vw)} html.vf-m-stejne.vf-uvod-C .uvod>.vf-grp{position:relative;left:auto;top:auto;margin:26px auto 0;width:min(300px,80vw)}}

/* 3 okénka v nadpisech sekcí */
html.vf-ok-A .okenko{position:relative}
html.vf-ok-A .okenko>svg{position:relative;z-index:1}
html.vf-ok-A .okenko>.vf-fig{position:absolute;z-index:0;width:44%;left:28%;bottom:16%}
html.vf-ok-B .okenko>svg,html.vf-ok-C .okenko>svg{display:none}
html.vf-ok-B .okenko>.vf-fig{width:clamp(190px,21vw,260px);aspect-ratio:4/3;margin:8px 8px 6px}
html.vf-ok-C .okenko>.vf-fig{width:clamp(170px,18vw,230px);aspect-ratio:1.12;margin:4px 8px 0}
html.vf-ok-D .cast-hlava{position:relative;padding:18px 20px}
html.vf-ok-D .cast-hlava>.vf-fig{position:absolute;inset:0;border-radius:var(--fx-r-card,28px)}
html.vf-ok-D .cast-hlava>*:not(.vf-fig),html.vf-ok-E .cast-hlava>*:not(.vf-fig){position:relative;z-index:1}
html.vf-ok-E .cast-hlava{position:relative}
html.vf-ok-E .cast-hlava>.vf-fig{position:absolute;z-index:0}

/* 4 aktuality na úvodu */
html.vf-zp-A .zprava>.vf-fig,html.vf-zp-C .zprava>.vf-fig{aspect-ratio:16/9;margin-bottom:14px}
html.vf-zp-B .datum{display:flex;align-items:center;gap:12px}
html.vf-zp-B .datum>.vf-fig{width:62px;flex:none;order:-1}

/* 5 třídy na úvodu */
html.vf-tu-A .trida-hl>svg{display:none}
html.vf-tu-A .trida-hl{height:196px;align-items:flex-end}
html.vf-tu-A .trida-hl>.vf-fig{position:absolute;inset:0;border-radius:inherit;background:none}
html.vf-tu-A .trida-hl .symbol{position:relative;z-index:1;width:104px;height:104px;margin:0 0 -44px;border-width:5px}
html.vf-tu-A .trida-telo{padding-top:56px}
html.vf-tu-B .trida-hl>.vf-fig{position:absolute;z-index:2;width:96px;right:18px;bottom:-26px}
html.vf-tu-C .trida-telo>.vf-fig{aspect-ratio:16/9;margin:14px 0}
html.vf-tu-E .trida-telo{position:relative;padding-bottom:86px}
html.vf-tu-E .trida-telo>.vf-fig{position:absolute;right:20px;bottom:20px;width:clamp(100px,9.5vw,130px);aspect-ratio:4/3}

/* 6 o školce na úvodu */
html.vf-os-A .os-pravo>.vf-fig{aspect-ratio:16/9;margin:0 0 24px}
html.vf-os-B .os-text>.vf-fig{float:right;width:clamp(150px,15vw,210px);margin:0 0 14px 22px;shape-outside:circle()}
html.vf-os-C .os-pravo>.vf-grp{display:flex;gap:18px;margin:0 0 26px}
html.vf-os-C .vf-grp .vf-fig{flex:1 1 0;min-width:0}
html.vf-os-D .os-zahrada{position:relative;overflow:hidden}
html.vf-os-D .os-zahrada>*:not(.vf-fig){position:relative;z-index:1}
html.vf-os-E .os-text>.vf-fig{aspect-ratio:16/8;margin:20px 0 24px;max-width:560px}

/* 7 den ve školce */
html.vf-den-A .den-rada+.vf-fig{height:clamp(140px,16vw,230px);margin:30px 0 0}
html.vf-den-B .den-rada li>.vf-fig{width:72px;margin:12px auto 0}
html.vf-den-C #den-ve-skolce .cast-telo{position:relative}
html.vf-den-C #den-ve-skolce .cast-telo>.vf-fig{inset:-24px -20px;border-radius:var(--fx-r-card,30px)}
html.vf-den-C #den-ve-skolce .cast-telo>.vf-fig::after{background:color-mix(in srgb,var(--karta,#fff) 76%,transparent)}
html.vf-den-C #den-ve-skolce .cast-telo>*:not(.vf-fig){position:relative;z-index:1}

/* 8 o nás */
html.vf-on-A .vf-fig{width:44%;aspect-ratio:4/3}
html.vf-on-B .garden-list+.vf-fig{aspect-ratio:21/8;margin:24px 0}
html.vf-on-D .vf-fig{width:200px;shape-outside:circle();margin:0 6px 10px 22px}

/* 9 třídy – stránka */
html.vf-ts-A .class-card__symbol>.vf-fig{position:absolute;inset:0;z-index:0;background:none}
html.vf-ts-B .class-card>.vf-fig{grid-column:1/-1;height:190px}
html.vf-ts-C .class-card__body>.vf-fig{float:right;width:150px;margin:4px 4px 12px 20px}

/* 10 projekty */
html.vf-pr-A .project>.vf-fig{aspect-ratio:16/9;margin-bottom:16px}
html.vf-pr-A .project:first-child>.vf-fig{aspect-ratio:16/5.5}
html.vf-pr-B .project>.vf-fig{position:absolute;z-index:2;width:118px;top:-30px;right:-12px}
html.vf-pr-B .project h2{padding-right:110px}
html.vf-pr-C .project>.vf-fig{float:right;width:210px;rotate:3deg;margin:0 6px 14px 20px}

/* 11 výpis aktualit */
html.vf-av-A .news-item article{display:grid;grid-template-columns:118px minmax(0,1fr);column-gap:18px}
html.vf-av-A .news-item article>*:not(.vf-fig){grid-column:2}
html.vf-av-A .news-item article>.vf-fig{grid-column:1;grid-row:1/span 3;aspect-ratio:1;align-self:start;margin:6px 0}
@media (max-width:479px){html.vf-av-A .news-item article{grid-template-columns:76px minmax(0,1fr);column-gap:12px}}
html.vf-av-B .news-item article>.vf-fig{height:150px;margin-bottom:12px}
html.vf-av-C .news-item{padding-left:44px}
html.vf-av-C .news-item::before{display:none}
html.vf-av-C .news-item>.vf-fig{position:absolute;z-index:1;left:-44px;top:6px;width:60px}

/* 12 detail zprávy */
html.vf-zd-A .list>.vf-fig{aspect-ratio:21/8;margin:0 0 30px}
html.vf-zd-B .vf-fig{width:42%;aspect-ratio:4/3}
html.vf-zd-C .vf-fig{width:220px;rotate:3deg}

/* 13 kontakt */
html.vf-ko-A .contact-grid+.vf-fig{aspect-ratio:21/7;margin:26px 0 0}
html.vf-ko-B .contact-card--address>.vf-fig{aspect-ratio:16/7;margin-bottom:14px}
html.vf-ko-C .vf-ko-prose{position:relative}
html.vf-ko-C .vf-ko-kdo{aspect-ratio:4/3;width:min(300px,100%);margin:16px auto 0}
@media (min-width:700px){
 html.vf-ko-C .vf-ko-dl{max-width:calc(50% - 8px)}
 html.vf-ko-C .vf-ko-kdo{position:absolute;left:calc(50% + 8px);right:0;width:min(300px,calc(50% - 20px));margin:0 auto}
}

/* 14 texty pro rodiče */
html.vf-rt-A .vf-fig{width:42%;aspect-ratio:4/3;margin-top:1.4em}
html.vf-rt-B .vf-fig{width:190px;shape-outside:circle();margin-top:1.2em}
html.vf-rt-C .list>.vf-fig{aspect-ratio:21/8;margin-top:34px}

/* 15 boční lišta */
html.vf-ra-A .rail>.vf-fig{aspect-ratio:4/3;margin:0 0 18px}
html.vf-ra-B .rail>.vf-fig{width:150px;margin:0 auto 20px}
html.vf-ra-C .rail>.vf-fig{margin:20px 8px 0;rotate:-3deg}

/* 16 404 */
html.vf-e4-A .list{position:relative}
html.vf-e4-A .list>.vf-fig{position:absolute;z-index:1;width:clamp(96px,10vw,132px);top:clamp(14px,2vw,24px);right:clamp(18px,4vw,56px)}
html.vf-e4-B .list>.vf-fig{aspect-ratio:21/8;margin:0 0 26px}

/* ================= ovládací panel ================= */
#nf-btn,#nf-panel,#nf-pick{font:15px/1.45 system-ui,"Segoe UI",sans-serif;color:#22303b;letter-spacing:0;text-transform:none}
#nf-btn{position:fixed;left:16px;bottom:16px;z-index:2147483000;border:0;border-radius:999px;padding:11px 18px;background:#1d7a46;color:#fff;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer}
#nf-btn small{display:block;font-weight:400;font-size:12px;opacity:.9}
#nf-panel{position:fixed;top:0;right:0;bottom:0;width:min(430px,100vw);z-index:2147483001;background:#fff;box-shadow:-8px 0 30px rgba(0,0,0,.25);display:none;flex-direction:column}
#nf-panel.on{display:flex}
#nf-panel .nf-top{padding:12px 16px;border-bottom:1px solid #d6dde2;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#nf-panel .nf-top b{font-size:17px;flex:1}
#nf-panel button{font:inherit;font-size:13px;cursor:pointer;border:1px solid #b9c6cf;background:#fff;border-radius:8px;padding:4px 10px;color:#22303b}
#nf-panel button.nf-x{font-weight:700}
#nf-panel .nf-help{font-size:13px;color:#5d6b76;padding:8px 16px;background:#f4f6f3;border-bottom:1px solid #d6dde2;margin:0}
#nf-panel .nf-list{overflow:auto;flex:1;padding:8px 12px 20px}
#nf-panel .nf-p{border:1px solid #d6dde2;border-radius:12px;padding:10px 12px;margin:8px 0;background:#fff}
#nf-panel .nf-p.here{border-color:#5b8db8;box-shadow:0 0 0 2px #d6e6f3}
#nf-panel .nf-p.off{background:#f7f7f9}
#nf-panel .nf-h{display:flex;gap:8px;align-items:baseline;justify-content:space-between}
#nf-panel .nf-h b{font-size:15px}
#nf-panel .nf-here{font-size:11px;font-weight:700;color:#5b8db8;white-space:nowrap}
#nf-panel .nf-h a{font-size:12px;color:#5b8db8;white-space:nowrap}
#nf-panel .nf-st{font-size:13px;margin:4px 0 6px;color:#5d6b76}
#nf-panel .nf-st i{font-style:normal;font-weight:700;color:#1d7a46}
#nf-panel .nf-p.off .nf-st i{color:#6b5d8f}
#nf-panel .nf-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 0;font-size:13px}
#nf-panel label{display:inline-flex;gap:6px;align-items:center;cursor:pointer}
#nf-panel select{font:inherit;font-size:13px;padding:3px 6px;border-radius:8px;border:1px solid #b9c6cf;max-width:100%}
#nf-panel .nf-sw{font-weight:700}
#nf-panel .nf-mine{font-size:12.5px;background:#fff1dc;color:#7a4500;border-radius:8px;padding:6px 8px;margin:6px 0 0}
#nf-panel .nf-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px;margin-top:8px}
#nf-panel .nf-it{border:1px solid #d6dde2;border-radius:8px;padding:0;background:#fafafa;cursor:pointer;text-align:left;overflow:hidden}
#nf-panel .nf-it.cur{border-color:#5b8db8;box-shadow:0 0 0 2px #d6e6f3}
#nf-panel .nf-it img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
#nf-panel .nf-it span{display:block;font-size:11px;line-height:1.25;padding:3px 5px 4px}
#nf-panel textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px;min-height:44px;margin-top:6px;border:1px solid #d6dde2;border-radius:8px;padding:6px}
#nf-panel .nf-bot{padding:10px 16px;border-top:1px solid #d6dde2;display:flex;gap:8px;flex-wrap:wrap}
#nf-panel .nf-bot button.nf-copy{background:#1d7a46;color:#fff;border-color:#1d7a46;font-weight:700;padding:7px 14px}
#nf-pick{position:fixed;inset:0;z-index:2147483002;background:rgba(20,25,30,.6);display:none}
#nf-pick.on{display:block}
#nf-pick .nf-in{position:absolute;inset:3% 4%;background:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
#nf-pick .nf-pt{padding:12px 16px;border-bottom:1px solid #d6dde2;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#nf-pick .nf-pt b{margin-right:8px}
#nf-pick .nf-pt button{font:inherit;font-size:13px;padding:3px 10px;border-radius:10px;border:1px solid #d6dde2;background:#fff;cursor:pointer;color:#22303b}
#nf-pick .nf-pt button.on{background:#22303b;color:#fff}
#nf-pick .nf-pt .nf-x{margin-left:auto;font-weight:700}
#nf-pick .nf-pg{flex:1;min-height:0;overflow:auto;padding:14px 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-auto-rows:max-content;gap:12px;align-content:start}
#nf-pick .nf-pg h5{grid-column:1/-1;margin:8px 0 0;font-size:15px}
#nf-pick .nf-ph{display:block;border:2px solid transparent;border-radius:10px;padding:0;background:#f6f6f6;cursor:pointer;text-align:left;font:inherit;overflow:hidden;color:#5d6b76}
#nf-pick .nf-ph.on{border-color:#1d7a46;box-shadow:0 0 0 3px #cde9d6}
#nf-pick .nf-ph img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
#nf-pick .nf-ph span{display:block;font-size:12px;line-height:1.3;padding:5px 7px 7px}
#nf-out{position:fixed;inset:10%;z-index:2147483003;background:#fff;border-radius:14px;box-shadow:0 10px 40px rgba(0,0,0,.35);padding:16px;display:none;flex-direction:column;gap:10px;font:14px/1.45 system-ui,"Segoe UI",sans-serif;color:#22303b}
#nf-out.on{display:flex}
#nf-out textarea{flex:1;font:13px/1.45 ui-monospace,Consolas,monospace;padding:10px;border:1px solid #d6dde2;border-radius:9px}
#nf-out button{align-self:flex-start;font:inherit;padding:6px 14px;border-radius:8px;border:1px solid #b9c6cf;background:#fff;cursor:pointer}
@media print{#nf-btn,#nf-panel,#nf-pick,#nf-out{display:none!important}}
