/* v200 – gallery cards, intentionally scoped to avoid altering site header/footer */
.zp-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.zp-gallery-card{display:block;overflow:hidden;border-radius:19px;background:#fff;color:#27343c;text-decoration:none;box-shadow:0 12px 34px #1d2b3614;transition:transform .2s ease,box-shadow .2s ease}
.zp-gallery-card:hover{transform:translateY(-4px);box-shadow:0 19px 42px #1d2b3626}
.zp-gallery-card__photo{position:relative;aspect-ratio:1.48;background:#e8eef1;overflow:hidden}
.zp-gallery-card__photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.zp-gallery-card:hover img{transform:scale(1.035)}
.zp-gallery-card__count{position:absolute;right:13px;bottom:13px;padding:8px 12px;border-radius:11px;background:#26343de8;color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(8px)}
.zp-gallery-card__empty{display:grid;place-items:center;height:100%;color:#64737c}
.zp-gallery-card__info{padding:21px 23px 23px}
.zp-gallery-card__city{display:block;font-size:12px;font-weight:750;color:#b82e5b;margin-bottom:8px}
.zp-gallery-card__info h3{font-size:19px;line-height:1.3;margin:0 0 9px;color:#25333b}
.zp-gallery-card__product{display:block;font-size:13px;color:#687782;margin-bottom:16px}
.zp-gallery-card__more{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f2;padding-top:14px;margin-top:15px;font-weight:750;font-size:13px;color:#b82e5b}
.zp-gallery-card__more b{font-size:18px}
.zp-gallery-detail__meta{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.zp-gallery-detail__meta span{background:#f0f3f5;border-radius:30px;padding:8px 14px;font-weight:650;font-size:13px}
.zp-gallery-detail__photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.zp-gallery-detail__photos a{display:block;border-radius:12px;overflow:hidden;background:#edf0f2}
.zp-gallery-detail__photos img{width:100%;height:215px;object-fit:cover;display:block}
.zp-gallery-related{margin-top:42px}.zp-gallery-related h3{font-size:24px;margin:0 0 22px}
@media(max-width:850px){.zp-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.zp-gallery-detail__photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.zp-gallery-grid{grid-template-columns:1fr}.zp-gallery-detail__photos{grid-template-columns:repeat(2,minmax(0,1fr))}.zp-gallery-detail__photos img{height:145px}}
@media(prefers-reduced-motion:reduce){.zp-gallery-card,.zp-gallery-card img{transition:none}}

/* v209 – fullscreen translucent gallery, styled after reference */
.zp-photo-viewer{position:fixed;inset:0;margin:0;padding:0;width:100%;max-width:none;height:100%;max-height:none;border:0;background:rgba(9,29,49,.72);color:#fff;overflow:hidden;box-sizing:border-box}
.zp-photo-viewer:not([open]){display:none!important}
.zp-photo-viewer[open]{display:flex;align-items:center;justify-content:center}
.zp-photo-viewer::backdrop{background:rgba(9,29,49,.25)}
.zp-photo-viewer__backdrop{position:absolute;inset:0;z-index:0;cursor:zoom-out}
.zp-photo-viewer__toolbar{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px max(12px,env(safe-area-inset-right));background:rgba(9,29,49,.52);box-sizing:border-box}
.zp-photo-viewer__controls{display:flex;align-items:center;gap:7px}
.zp-photo-viewer__count,.zp-photo-viewer__zoom-label{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:31px;padding:0 9px;border:1px solid #d23564;border-radius:6px;color:#fff;background:#152e45;font:700 12px/1 system-ui,sans-serif;box-sizing:border-box}
.zp-photo-viewer__figure{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:75px 62px 48px;width:100%;height:100%;max-height:100%;box-sizing:border-box;pointer-events:none}
.zp-photo-viewer__image{display:block;max-width:100%;max-height:calc(100dvh - 160px);width:auto;height:auto;object-fit:contain;border:2px solid #d23564;border-radius:6px;box-shadow:0 18px 55px #0006;transform:scale(var(--zp-zoom,1));transition:transform .16s ease;pointer-events:auto}
.zp-photo-viewer__caption{margin-top:12px;padding:7px 12px;border:1px solid #d23564a8;border-radius:5px;background:#17344ad9;color:#fff;font:500 12px/1.4 system-ui,sans-serif;text-align:center;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-photo-viewer button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d23564;border-radius:6px;background:#17344ae8;color:#fff;font:600 23px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.zp-photo-viewer button[hidden]{display:none!important}
.zp-photo-viewer button:hover{background:#d23564}
.zp-photo-viewer button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.zp-photo-viewer__prev,.zp-photo-viewer__next{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:40px!important;height:40px!important;border-radius:50%!important;font-size:32px!important}
.zp-photo-viewer__prev{left:12px}.zp-photo-viewer__next{right:12px}
.zp-gallery-detail__photos a{cursor:zoom-in}
@media(max-width:600px){.zp-photo-viewer__toolbar{padding-top:max(8px,env(safe-area-inset-top))}.zp-photo-viewer__figure{padding:78px 12px 80px}.zp-photo-viewer__image{max-height:calc(100dvh - 200px)}.zp-photo-viewer__prev,.zp-photo-viewer__next{top:auto;bottom:max(16px,env(safe-area-inset-bottom));transform:none}.zp-photo-viewer__prev{left:calc(50% - 70px)}.zp-photo-viewer__next{right:calc(50% - 70px)}.zp-photo-viewer__caption{max-width:95%}}
@media(prefers-reduced-motion:reduce){.zp-photo-viewer__image{transition:none}}

/* v210 – clean floating photo, precisely centered toolbar icons */
.zp-photo-viewer .zp-photo-viewer__controls button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;line-height:1!important;
  font-family:Arial,Helvetica,sans-serif!important;font-weight:500!important;
  flex:0 0 34px;box-sizing:border-box;
}
.zp-photo-viewer .zp-photo-viewer__controls button[data-close-button]{font-size:25px!important;padding-bottom:2px!important}
.zp-photo-viewer .zp-photo-viewer__controls button[data-zoom-in],
.zp-photo-viewer .zp-photo-viewer__controls button[data-zoom-out]{font-size:22px!important}
.zp-photo-viewer__figure{background:transparent!important;border:0!important;box-shadow:none!important}
.zp-photo-viewer__image{
  background:transparent!important;border:0!important;border-radius:0!important;
  padding:0!important;box-shadow:0 14px 48px rgba(0,0,0,.25)!important;
}

/* v211 – center the previous/next arrows inside their round buttons */
.zp-photo-viewer .zp-photo-viewer__prev,
.zp-photo-viewer .zp-photo-viewer__next{
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;text-align:center!important;line-height:1!important;
  font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;
  box-sizing:border-box!important;
}

/* v212 – transparent image stage, including inherited site styles */
html body dialog.zp-photo-viewer[open],
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure,
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__image,
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__backdrop{
  background-color:transparent!important;background-image:none!important;
}
html body dialog.zp-photo-viewer[open]{background-color:rgba(9,29,49,.76)!important}
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure{
  border:0!important;outline:0!important;box-shadow:none!important;
  padding-top:70px!important;padding-bottom:55px!important;
}
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__image{
  display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:calc(100dvh - 155px)!important;
  border:0!important;outline:0!important;border-radius:0!important;
  padding:0!important;margin:0!important;object-fit:contain!important;
}
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure::before,
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure::after{
  content:none!important;display:none!important;
}
/* SVG arrows use geometric centering, independent of glyph metrics */
html body .zp-photo-viewer .zp-photo-viewer__prev,
html body .zp-photo-viewer .zp-photo-viewer__next{
  display:grid!important;place-items:center!important;line-height:0!important;
  padding:0!important;text-indent:0!important;
}
.zp-photo-viewer__prev svg,.zp-photo-viewer__next svg{
  display:block!important;width:20px!important;height:20px!important;
  margin:0!important;padding:0!important;flex:none!important;
}
@media(max-width:600px){html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure{padding-bottom:80px!important}html body dialog.zp-photo-viewer[open] .zp-photo-viewer__image{max-height:calc(100dvh - 200px)!important}}

/* v214: lightbox shows only the image pixels, without inherited frames or surfaces. */
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__image{
 background:transparent!important;border:0!important;outline:0!important;
 box-shadow:none!important;filter:none!important;border-radius:0!important;
 padding:0!important;object-fit:contain!important;
}
html body dialog.zp-photo-viewer[open] .zp-photo-viewer__figure{
 background:transparent!important;border:0!important;box-shadow:none!important;
}

/* v215: Product illustrations are transparent; do not crop them like real installation photos. */
.zp-gallery-card__photo--demo{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f5f8fa 0%,#e8eef2 100%);padding:18px 22px;box-sizing:border-box}
.zp-gallery-card__photo--demo img{width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 8px 14px rgba(25,45,55,.10))}
.zp-gallery-card:hover .zp-gallery-card__photo--demo img{transform:scale(1.025)}
#realizace .zp-gallery-card__photo--demo{aspect-ratio:1.48}

/* v216 – no zoom/cropping on realization previews, including legacy card markup. */
#realizace .zp-gallery-card__photo,
#realizace .zp-gallery-card__photo--demo {
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:18px!important;background:#f2f5f7!important;box-sizing:border-box!important;
}
#realizace .zp-gallery-card__photo > img,
#realizace .zp-gallery-card__photo--demo > img {
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;scale:1!important;filter:none!important;
}
#realizace .zp-gallery-card:hover .zp-gallery-card__photo img {transform:none!important;}
/* Backward compatibility with an older locality template still in browser/server cache. */
#realizace .products .product > img {
  display:block!important;width:100%!important;height:190px!important;
  object-fit:contain!important;object-position:center!important;
  background:#f2f5f7!important;padding:14px!important;box-sizing:border-box!important;
  transform:none!important;
}

/* v240: jednotny stitek poctu fotek v galerii i kolotocich. */
.zp-gallery-open{position:relative}
.zp-gallery-open .zp-gallery-zoom{display:none!important}
.zp-gallery-open .zp-gallery-photo-count{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:999px;background:rgba(30,43,55,.94);color:#fff;font:700 12px/1.2 system-ui,sans-serif;letter-spacing:0;box-shadow:0 2px 8px rgba(0,0,0,.22);pointer-events:none;white-space:nowrap;z-index:2}
.zp-gallery-strip .zp-gallery-open::after{content:none!important;display:none!important}
