.gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-open:focus-visible{outline:4px solid #c9a458;outline-offset:-4px}.gallery-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(10,20,26,.97);color:white}.gallery-lightbox::backdrop{background:rgba(0,0,0,.85)}.gallery-viewer{height:100%;width:100%;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:12px;padding:64px 20px 24px;box-sizing:border-box}.gallery-large{grid-column:2;grid-row:1;display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.gallery-close,.gallery-prev,.gallery-next{display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.1);color:white;width:48px;height:48px;font-size:36px;line-height:1;cursor:pointer}.gallery-close{position:absolute;top:12px;right:16px}.gallery-prev{grid-column:1;grid-row:1}.gallery-next{grid-column:3;grid-row:1}.gallery-count{grid-column:1/-1;grid-row:2;text-align:center;font-size:14px;line-height:1.5;margin:0}.gallery-lightbox button:focus-visible{outline:3px solid #c9a458;outline-offset:3px}@media(max-width:600px){.gallery-viewer{grid-template-columns:36px minmax(0,1fr) 36px;gap:4px;padding:64px 8px 20px}.gallery-prev,.gallery-next{width:34px;height:44px;font-size:30px}.gallery-count{font-size:12px}}
/* Wycentrowane kadry pionowe i poziome */
#gallery-grid .gallery-thumb{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:#f0f7fa;}
#gallery-grid .gallery-open{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
#gallery-grid .gallery-open img{width:100%;height:100%;object-fit:cover;object-position:center;}

@media(max-width:600px){.gallery-viewer{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px;padding:52px 0 max(12px,env(safe-area-inset-bottom));}.gallery-large{grid-column:1;grid-row:1;max-width:100%;max-height:100%;width:100%;height:100%;}.gallery-prev,.gallery-next{grid-column:1;grid-row:1;z-index:2;width:42px;height:42px;font-size:32px;background:rgba(10,20,26,.58);border-color:rgba(255,255,255,.65);box-shadow:0 2px 8px rgba(0,0,0,.25);}.gallery-prev{justify-self:start;margin-left:8px;}.gallery-next{justify-self:end;margin-right:8px;}.gallery-count{grid-column:1;grid-row:2;padding:0 12px;}.gallery-close{z-index:3;width:40px;height:40px;top:6px;right:8px;}}

.gallery-prev,.gallery-next{background:transparent;border:0;box-shadow:none;text-shadow:0 1px 4px rgba(0,0,0,.65);}

.gallery-prev,.gallery-next{width:40px;height:40px;border:0;border-radius:50%;background:rgba(224,218,208,.72);color:#fff;font-size:0;box-shadow:none;text-shadow:none;backdrop-filter:blur(3px);}.gallery-prev::before,.gallery-next::before{content:"";display:block;width:7px;height:7px;border-top:1.8px solid currentColor;border-right:1.8px solid currentColor;}.gallery-prev::before{transform:rotate(-135deg);margin-left:3px;}.gallery-next::before{transform:rotate(45deg);margin-right:3px;}.gallery-prev:hover,.gallery-next:hover{background:rgba(224,218,208,.9);}
