/*! Lightweight image lightbox for static blog.lotusfa.com */
.lotusfa-lb-open {
  overflow: hidden;
}

.lotusfa-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  cursor: zoom-out;
}

.lotusfa-lb.is-open {
  opacity: 1;
  visibility: visible;
}

.lotusfa-lb__figure {
  margin: 0;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  cursor: default;
}

.lotusfa-lb__img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  background: #111;
}

.lotusfa-lb__caption {
  margin: 0.6rem 0 0;
  color: #ddd;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
  max-width: 96vw;
}

.lotusfa-lb__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lotusfa-lb__close:hover,
.lotusfa-lb__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.lotusfa-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lotusfa-lb__nav:hover,
.lotusfa-lb__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.lotusfa-lb__prev {
  left: 0.75rem;
}

.lotusfa-lb__next {
  right: 0.75rem;
}

.lotusfa-lb__nav[hidden],
.lotusfa-lb__caption:empty {
  display: none;
}

.entry img.lotusfa-lb-target,
.entry-content img.lotusfa-lb-target,
.post-inner img.lotusfa-lb-target {
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .lotusfa-lb {
    padding: 0.75rem;
  }

  .lotusfa-lb__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
  }
}
