/* Pop-up viewer styles. Replaces fancybox/jquery.fancybox.css. */
.lb-open, .lb-open body { overflow: hidden; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 10000;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center;
  animation: lb-fade .25s ease-out;
}
.lb-box {
  position: relative; background: #fff; padding: 10px;
  max-width: calc(100vw - 40px); max-height: calc(100vh - 40px);
  box-sizing: border-box; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: lb-zoom .3s ease-out;
}
.lb-box iframe.lb-content { display: block; width: 100%; height: 100%; border: 0; }
.lb-image { padding: 10px; }
.lb-image img.lb-content { display: block; max-width: calc(100vw - 60px); max-height: calc(100vh - 80px); }
.lb-close {
  position: absolute; top: -14px; right: -14px; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid #fff; background: #222; color: #fff;
  font: bold 20px/24px Arial, sans-serif; cursor: pointer; padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.lb-close:hover, .lb-close:focus { background: #555; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: -30px; text-align: center;
  color: #fff; font: bold 13px Arial, sans-serif;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lb-overlay, .lb-box { animation: none; } }
