/* MGM Site — moduł „lightbox” (zdjęcia i filmy). Tło przezroczyste i rozmyte: pod rozmyciem widać kolory strony (np. gradient /oferta).
   Przyciski, licznik i podpis mają własne półprzezroczyste tła, więc są czytelne na każdym tle. */
[data-lb]{cursor:zoom-in}
[data-lb]:focus-visible{outline:2px solid #00D6C5;outline-offset:3px}
html.mgm-lb-lock{overflow:hidden}
.mgm-lb{position:fixed;inset:0;z-index:2147483646;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  background:rgb(14 16 20 / .32);-webkit-backdrop-filter:blur(22px) saturate(1.15);backdrop-filter:blur(22px) saturate(1.15);
  color:#fdfdfd;font-family:Poppins,system-ui,sans-serif;opacity:0;transition:opacity .2s ease}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.mgm-lb{background:rgb(14 16 20 / .9)}}
.mgm-lb[hidden]{display:none}
.mgm-lb.is-open{opacity:1}
.mgm-lb__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
.mgm-lb__count{min-height:32px;padding:6px 12px;border-radius:999px;background:rgb(10 12 16 / .45);font-size:.9rem;line-height:20px;color:#fdfdfd;font-variant-numeric:tabular-nums}
.mgm-lb__count:empty{visibility:hidden}
.mgm-lb__stage{position:relative;min-height:0;touch-action:pan-y}
.mgm-lb__img{position:absolute;inset:0;margin:auto;display:block;max-width:calc(100% - 144px);max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:12px;box-shadow:0 24px 70px rgb(0 0 0 / .45);user-select:none;-webkit-user-drag:none}
.mgm-lb__btn{width:48px;height:48px;border-radius:50%;border:1px solid rgb(255 255 255 / .3);background:rgb(10 12 16 / .45);color:#fff;
  display:grid;place-items:center;cursor:pointer;padding:0;transition:background-color .2s,border-color .2s}
.mgm-lb__btn[hidden]{display:none}
.mgm-lb__btn:hover{border-color:#00D6C5;background:rgb(0 214 197 / .18)}
.mgm-lb__btn:focus-visible{outline:2px solid #00D6C5;outline-offset:2px}
.mgm-lb__btn svg{width:22px;height:22px}
.mgm-lb__prev,.mgm-lb__next{position:absolute;top:50%;transform:translateY(-50%);z-index:1}
.mgm-lb__prev{left:12px}
.mgm-lb__next{right:12px}
.mgm-lb__foot{display:grid;gap:10px;justify-items:center;padding:12px 14px 18px}
.mgm-lb__cap{margin:0;padding:6px 14px;border-radius:999px;background:rgb(10 12 16 / .45);font-size:.92rem;line-height:1.4;color:#fdfdfd;text-align:center;max-width:min(60ch,100%)}
.mgm-lb__cap:empty{display:none}
.mgm-lb__strip{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding:4px;border-radius:12px;background:rgb(10 12 16 / .35);scrollbar-width:none}
.mgm-lb__strip[hidden]{display:none}
.mgm-lb__strip button{flex:none;width:64px;height:48px;padding:0;border-radius:8px;overflow:hidden;border:2px solid transparent;background:none;opacity:.6;cursor:pointer;transition:opacity .2s,border-color .2s}
.mgm-lb__strip button:hover{opacity:.9}
.mgm-lb__strip button[aria-current=true]{border-color:#00D6C5;opacity:1}
.mgm-lb__strip button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mgm-lb__strip img{display:block;width:100%;height:100%;object-fit:cover}
/* Odtwarzacz filmów: wymiary filmu liczy skrypt (proporcje pliku, cały film w oknie), tło jak w galerii */
.mgm-lb__video{position:absolute;inset:0;margin:auto;display:block;max-width:100%;max-height:100%;border-radius:12px;background:#000;
  box-shadow:0 24px 70px rgb(0 0 0 / .45)}
.mgm-lb__video:focus-visible{outline:2px solid #00D6C5;outline-offset:3px}
.mgm-lb--video .mgm-lb__stage{touch-action:auto}
@media (max-width:640px){
  .mgm-lb__img{max-width:calc(100% - 16px)}
  .mgm-lb__prev,.mgm-lb__next{width:44px;height:44px}
  .mgm-lb__prev{left:14px}
  .mgm-lb__next{right:14px}
  .mgm-lb__strip{display:none}
}
@media (prefers-reduced-motion:reduce){.mgm-lb{transition:none}}
