/* Figure lightbox overlay (see lightbox.js) */
.pb-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  cursor: zoom-out;
  padding: 2rem;
  box-sizing: border-box;
}

.pb-lightbox-overlay.pb-lightbox-visible {
  display: flex;
}

.pb-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  cursor: default;
  /* Allow pinch-zoom on touch devices */
  touch-action: pinch-zoom;
}

.pb-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 2.25rem;
  line-height: 1;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.85;
}

.pb-lightbox-close:hover,
.pb-lightbox-close:focus {
  opacity: 1;
  outline: none;
}

/* Prevent background scroll while the lightbox is open */
body.pb-lightbox-open {
  overflow: hidden;
}
