.vanilla-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: pointer;
}

.vanilla-lightbox-box {
  position: relative;
  background: #fff;
  padding: 10px;
  max-width: 90vw;
  box-sizing: border-box;
  cursor: default;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vanilla-lightbox-img {
  display: block;
  max-width: calc(90vw - 20px);
  max-height: 80vh;
  width: auto;
  height: auto;
}

.vanilla-lightbox-title {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  max-width: 90vw;
  font-size: 14px;
  line-height: 1.4;
  cursor: default;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vanilla-lightbox-overlay--ready .vanilla-lightbox-box,
.vanilla-lightbox-overlay--ready .vanilla-lightbox-title {
  opacity: 1;
}

.vanilla-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.vanilla-lightbox-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vanilla-lightbox-spin 0.8s linear infinite;
}

@keyframes vanilla-lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}
