/* design by vinao.pl — miniatury i przeglądanie zdjęć */
.entry-content .wp-block-gallery.wp-block-gallery,.editor-styles-wrapper .wp-block-gallery.wp-block-gallery,.entry-content .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;margin:0 0 28px}
.entry-content .wp-block-gallery.wp-block-gallery>figure.wp-block-image,.editor-styles-wrapper .wp-block-gallery.wp-block-gallery>figure.wp-block-image,.entry-content .gallery>.gallery-item{display:block;position:relative;width:auto!important;max-width:none;min-width:0;margin:0!important;float:none;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:#e3edf6}
.entry-content .wp-block-gallery.wp-block-gallery>figure.wp-block-image>a,.entry-content .gallery .gallery-icon,.entry-content .gallery .gallery-icon>a{display:block;width:100%;height:100%}
.entry-content .wp-block-gallery.wp-block-gallery>figure.wp-block-image img,.editor-styles-wrapper .wp-block-gallery.wp-block-gallery>figure.wp-block-image img,.entry-content .gallery img{display:block;width:100%!important;max-width:none;height:100%!important;object-fit:cover;margin:0;transition:transform .5s}
.entry-content .wp-block-gallery.wp-block-gallery>figure.wp-block-image:hover img,.entry-content .gallery .gallery-item:hover img{transform:scale(1.035)}
.entry-content .wp-block-gallery.wp-block-gallery figcaption,.entry-content .gallery .gallery-caption{position:absolute;bottom:0;left:0;right:0;margin:0;padding:25px 12px 10px;background:linear-gradient(transparent,#071b30df);color:#fff;font:500 .875rem/1.5 var(--sans);pointer-events:none}
.entry-content .gallery br{display:none}
.wp-block-gallery a:focus-visible,.gallery a:focus-visible{outline:4px solid var(--accent);outline-offset:-4px}
.pp-lightbox[open]{position:fixed;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;padding:20px 24px;background:#071321f5;color:#fff;overflow:hidden;box-sizing:border-box}
.pp-lightbox::backdrop{background:#071321f5}
.pp-lightbox [hidden]{display:none!important}
.pp-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px}
.pp-lightbox-counter{font:600 1rem/1.5 var(--sans)}
.pp-lightbox button{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;min-height:48px;min-width:48px;border:1px solid #ffffff8a;border-radius:50%;background:#17334ddd;color:#fff;cursor:pointer;padding:8px}
.pp-lightbox button:hover{background:#fff;color:#102c43}
.pp-lightbox button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.pp-lightbox .lightbox-close{position:static;font-size:1.8rem;line-height:1}
.pp-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:0 66px;touch-action:pan-y}
.pp-lightbox .pp-lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:2px}
.pp-lightbox .pp-lightbox-prev,.pp-lightbox .pp-lightbox-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:52px;height:52px}
.pp-lightbox-prev{left:0}
.pp-lightbox-next{right:0}
.pp-lightbox .icon{width:25px;height:25px}
.pp-lightbox-prev .icon{transform:rotate(180deg)}
.pp-lightbox .pp-lightbox-caption{margin:0;padding:0;text-align:center;font:400 1rem/1.5 var(--sans);min-height:24px;color:#fff}
.pp-lightbox .pp-lightbox-status{position:absolute;left:66px;right:66px;bottom:10px;text-align:center;font-size:1rem;background:#071321df}
.pp-lightbox-scroll-lock{overflow:hidden}
@media(max-width:800px){.entry-content .wp-block-gallery.wp-block-gallery,.editor-styles-wrapper .wp-block-gallery.wp-block-gallery,.entry-content .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:620px){
 .pp-lightbox[open]{padding:12px 10px;gap:10px}
 .pp-lightbox-stage{padding:0;align-items:center}
 .pp-lightbox .pp-lightbox-prev,.pp-lightbox .pp-lightbox-next{top:auto;bottom:0;transform:none;width:48px;height:48px;background:#102c43eb}
 .pp-lightbox .pp-lightbox-image{max-height:calc(100% - 60px)}
 .pp-lightbox .pp-lightbox-caption{font-size:.9375rem}
 .pp-lightbox .pp-lightbox-status{left:50px;right:50px;bottom:4px}
 .entry-content .wp-block-gallery.wp-block-gallery{gap:10px}
}
@media(prefers-reduced-motion:reduce){.entry-content .wp-block-gallery img,.entry-content .gallery img{transition:none!important;transform:none!important}}
@media print{.pp-lightbox{display:none!important}.entry-content .wp-block-gallery.wp-block-gallery{display:grid;grid-template-columns:repeat(3,1fr)}}
