.vf-lb-src { cursor: zoom-in; }
.vf-lb-open { overflow: hidden; }
#vf-lb {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: var(--vflb-bg, rgba(0,0,0,.9));
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#vf-lb.is-open { opacity: 1; pointer-events: auto; }
#vf-lb figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 100%; max-height: 100%;
}
#vf-lb img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
#vf-lb figcaption {
  color: var(--vflb-cap-color, #eee);
  font: 400 var(--vflb-cap-size, 15px)/1.45 Arial, Helvetica, sans-serif;
  text-align: center; max-width: 800px;
}
.vf-lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  color: #fff; background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .15s ease;
}
.vf-lb-btn:hover { background: rgba(255,255,255,.28); }
.vf-lb-close { top: 16px; right: 16px; }
.vf-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.vf-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .vf-lb-btn { width: 42px; height: 42px; font-size: 22px; }
  .vf-lb-prev { left: 6px; }
  .vf-lb-next { right: 6px; }
}
