/* Result labels remain outside the unmodified scientific images. */
.lightbox.lightbox-labeled .lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}
.lightbox.lightbox-labeled .lightbox-figure img {
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  flex: 0 1 auto;
  min-height: 0;
}
.lightbox.lightbox-labeled .lightbox-caption {
  position: static;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  margin: 0;
  background: #fff;
  color: #666;
  -webkit-text-fill-color: currentColor;
  font-family: inherit;
  font-size: 22px;
  line-height: 1.35;
  text-align: center;
  border-radius: 0 0 5px 5px;
}
.lightbox.lightbox-labeled .lightbox-caption strong {
  display: block;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.lightbox.lightbox-labeled .lightbox-caption span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.3;
}
@media (max-width: 580px) {
  .lightbox.lightbox-labeled .lightbox-caption {
    padding: 12px;
    font-size: 18px;
  }
}
