/* Seven projects: four + three centered, then three + three + one, then one. */
html body #projekty.projects-bottom .project-grid[data-project-count="7"]{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:16px!important}
html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project{grid-column:span 2;min-width:0;min-height:230px}
html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(5){grid-column:2/span 2}
html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(6),html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(7){grid-column:span 2}
html body .project-theme-voda{background:linear-gradient(145deg,#eefbff,#e5f4f0)!important;border-color:#9dd3cf!important}
html body .project-theme-voda .project-home-badge{color:#09627d}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-image{background:white;padding:0;overflow:visible}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-image img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
@media(max-width:1100px) and (min-width:681px){
 html body #projekty.projects-bottom .project-grid[data-project-count="7"]{grid-template-columns:repeat(6,minmax(0,1fr))!important}
 html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(5){grid-column:span 2}
 html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(7){grid-column:3/span 2}
}
@media(max-width:680px){
 html body #projekty.projects-bottom .project-grid[data-project-count="7"]{grid-template-columns:1fr!important}
 html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(n){grid-column:auto;min-height:190px}
}

/* Reset legacy explicit placements and intrinsic image minimum sizes. */
html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(n){grid-column:auto/span 2!important;grid-row:auto!important;width:auto!important;max-width:none!important}
@media(min-width:1101px){html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(5){grid-column:2/span 2!important}}
@media(min-width:681px) and (max-width:1100px){html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(7){grid-column:3/span 2!important}}
@media(max-width:680px){html body #projekty.projects-bottom .project-grid[data-project-count="7"]>.project:nth-child(n){grid-column:1/-1!important}}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-surface{grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] :is(.project-detail-main,.project-detail-aside,.project-detail-image){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-image{width:100%!important;margin-left:0!important;margin-right:0!important}
body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-image img{min-width:0!important;max-width:100%!important;width:100%!important;height:auto!important}
@media(max-width:980px){body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-surface{grid-template-columns:minmax(0,1fr)!important}}

body[data-project-id="vodozadrzne-riesenia-eko-revitalizacie-psk-2026"] .project-detail-image{aspect-ratio:auto!important;height:auto!important}
