/* Lightweight gallery lightbox (reboot-child, 02.12.2026). Does not change tile layout. */
.entry-content a.dpb-lb-link{
  color:inherit;
  text-decoration:none;
  cursor:zoom-in;
}
.entry-content a.dpb-lb-link img{
  cursor:zoom-in;
}
/* Keep figure/gallery grid: link is a tight wrapper around the image */
.entry-content .posyolok-gallery a.dpb-lb-link,
.entry-content .wp-block-gallery a.dpb-lb-link,
.entry-content .gallery a.dpb-lb-link,
.entry-content figure a.dpb-lb-link{
  display:block;
  line-height:0;
}


.dpb-lb[hidden]{display:none !important;}
.dpb-lb{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.dpb-lb__bg{
  position:absolute;
  inset:0;
  background:rgba(10,12,16,.92);
}
.dpb-lb__stage{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  max-width:100vw;
  max-height:100vh;
  padding:56px 64px 48px;
  box-sizing:border-box;
  pointer-events:none;
}
.dpb-lb__stage img{
  pointer-events:auto;
  max-width:100%;
  max-height:calc(100vh - 120px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:2px;
  user-select:none;
  -webkit-user-drag:none;
}
.dpb-lb__caption{
  pointer-events:auto;
  margin:10px 16px 0;
  max-width:min(720px,92vw);
  color:#f2f2f2;
  font-size:14px;
  line-height:1.4;
  text-align:center;
}
.dpb-lb__counter{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  color:#fff;
  font-size:14px;
  letter-spacing:.02em;
  pointer-events:none;
}
.dpb-lb__btn{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  pointer-events:auto;
}
.dpb-lb__btn:hover,
.dpb-lb__btn:focus{
  background:rgba(255,255,255,.24);
  outline:none;
}
.dpb-lb__prev{left:12px;top:50%;margin-top:-22px;}
.dpb-lb__next{right:12px;top:50%;margin-top:-22px;}
.dpb-lb__close{top:10px;right:12px;font-size:32px;}
.dpb-lb__btn[hidden]{display:none !important;}
@media (max-width:700px){
  .dpb-lb__stage{padding:52px 12px 40px;}
  .dpb-lb__stage img{max-height:calc(100vh - 108px);}
  .dpb-lb__prev{left:4px;}
  .dpb-lb__next{right:4px;}
  .dpb-lb__btn{width:48px;height:48px;}
}
@media (prefers-reduced-motion:no-preference){
  .dpb-lb__stage img{transition:opacity .15s ease;}
}
