.gallery-section{margin:42px 0}.gallery-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.gallery-head h2{margin:0}.gallery-head a,.gallery-page a{color:#178db3}.gallery-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-album{display:block;overflow:hidden;border-radius:19px;background:#f4f8fa;text-decoration:none;color:#17313d;box-shadow:0 7px 24px #17313d10}.gallery-album img{width:100%;aspect-ratio:1.45;object-fit:cover;display:block;transition:transform .2s}.gallery-album:hover img{transform:scale(1.035)}.gallery-album span{display:block;padding:14px 16px;font-weight:750}.gallery-page{padding-top:60px;padding-bottom:100px}.gallery-page h1{font-size:clamp(32px,5vw,58px)}.gallery-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gallery-photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.gallery-photo-grid a{display:block}#photo-viewer{border:0;background:#0a1720eF;padding:40px;max-width:96vw;max-height:96vh}#photo-viewer::backdrop{background:#000c}#photo-viewer img{display:block;max-width:85vw;max-height:80vh;object-fit:contain}#close-viewer{position:absolute;right:12px;top:6px;background:none;color:white;border:0;font-size:34px;cursor:pointer}@media(max-width:700px){.gallery-preview-grid{grid-template-columns:1fr 1fr}.gallery-photo-grid{grid-template-columns:1fr 1fr}}

/* Jediný decentní pás posledních fotografií */
.gallery-section--strip{margin:34px 0 52px}.gallery-section--strip .gallery-head{margin-bottom:15px}.gallery-recent-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.gallery-recent-strip a{display:block;min-width:0;overflow:hidden;border-radius:12px;background:#eef3f5}.gallery-recent-strip img{width:100%;height:150px;object-fit:cover;transition:transform .2s}.gallery-recent-strip a:hover img{transform:scale(1.035)}@media(max-width:700px){.gallery-recent-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.gallery-recent-strip a{flex:0 0 42%;scroll-snap-align:start}.gallery-recent-strip img{height:130px}}

.gallery-filter{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 24px}.gallery-filter a{border:1px solid #e3ebef;border-radius:999px;padding:9px 14px;background:#f4f8fa;font-weight:650;font-size:13px}.gallery-filter a:hover{background:#eaf7fb}
/* Moderní posuvný pás fotografií */
.gallery-carousel{position:relative}.gallery-recent-strip{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain;padding:3px 1px 8px}.gallery-recent-strip::-webkit-scrollbar{display:none}.gallery-recent-strip a{flex:0 0 calc((100% - 48px)/5);scroll-snap-align:start;position:relative}.gallery-recent-strip img{display:block;width:100%;height:155px;object-fit:cover;transition:transform .35s ease,filter .35s ease}.gallery-recent-strip a:hover img{transform:scale(1.06);filter:brightness(.92)}.gallery-carousel-controls{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}.gallery-carousel-controls button{width:35px;height:35px;border-radius:50%;border:1px solid #dce7ec;background:#fff;color:#168db5;font-size:25px;cursor:pointer;line-height:1}.gallery-carousel-controls button:hover{background:#e8f6fa}
/* Plnohodnotný lightbox */
#photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(8,18,25,.96);color:#fff;overflow:hidden}#photo-viewer::backdrop{background:rgba(5,12,18,.88)}#photo-viewer .viewer-stage{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:58px 82px 42px;box-sizing:border-box}#photo-viewer figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-width:100%;height:100%}#photo-viewer img{max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain;border-radius:5px;transition:opacity .2s}#photo-viewer figcaption{display:flex;justify-content:space-between;gap:24px;width:100%;padding:16px 4px 0;box-sizing:border-box;color:#d7e0e5;font-size:14px}#photo-viewer button{position:absolute;border:0;background:rgba(255,255,255,.12);color:white;cursor:pointer;display:grid;place-items:center;z-index:2;transition:background .2s}#photo-viewer button:hover{background:rgba(255,255,255,.25)}#photo-viewer .viewer-close{top:16px;right:22px;width:44px;height:44px;border-radius:50%;font-size:31px}#photo-viewer .viewer-prev,#photo-viewer .viewer-next{top:50%;transform:translateY(-50%);width:48px;height:64px;border-radius:12px;font-size:48px;font-weight:200}#photo-viewer .viewer-prev{left:16px}#photo-viewer .viewer-next{right:16px}@media(max-width:700px){.gallery-recent-strip a{flex:0 0 66%}.gallery-recent-strip img{height:180px}#photo-viewer .viewer-stage{padding:65px 10px 55px}#photo-viewer .viewer-prev,#photo-viewer .viewer-next{top:auto;bottom:10px;width:50px;height:44px;font-size:35px}#photo-viewer .viewer-prev{left:20px}#photo-viewer .viewer-next{right:20px}#photo-viewer img{max-height:calc(100dvh - 190px)}#photo-viewer figcaption{font-size:12px;padding:12px 4px 0}}
@media(prefers-reduced-motion:reduce){.gallery-recent-strip img,#photo-viewer img{transition:none}}
