html.rv-image-lightbox-open,
html.rv-image-lightbox-open body {
  overflow: hidden;
}

.rv-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, .86);
}

.rv-image-lightbox.is-open {
  display: flex;
}

.rv-image-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rv-image-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.rv-image-lightbox-caption {
  margin-top: .75rem;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.rv-image-lightbox-close,
.rv-image-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 0;
  background: #fdc815;
  color: #000;
  line-height: 1;
  cursor: pointer;
}

.rv-image-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.rv-image-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  font-size: 3rem;
}

.rv-image-lightbox-prev { left: 1.25rem; }
.rv-image-lightbox-next { right: 1.25rem; }

.rv-image-lightbox-close:hover,
.rv-image-lightbox-close:focus-visible,
.rv-image-lightbox-nav:hover,
.rv-image-lightbox-nav:focus-visible {
  background: #fff;
  color: #000;
}
