
img[src*="gallery-"] { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 2147483000; display: none;
      align-items: center; justify-content: center;
      background: rgba(0,0,0,.9); touch-action: pan-y; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain;
          border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff;
             border: 0; border-radius: 50%; width: 48px; height: 48px; padding: 0;
             font-size: 28px; line-height: 1; cursor: pointer;
             display: flex; align-items: center; justify-content: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.lb .lb-close { top: 16px; left: 16px; }
.lb .lb-prev  { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0;
                text-align: center; color: #ddd; font: 14px/1 sans-serif; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
