/* FlowEdit front-end gallery lightbox styles (loaded with js/flow-gallery.js
   only on pages that render a [flow-gallery]). */

.flow-gallery__slide img {
  cursor: zoom-in;
}

.flow-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.flow-lightbox__card {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.flow-lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.flow-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 0.35rem;
  background: #111;
}

.flow-lightbox__caption {
  margin: 0;
  color: #eee;
  font-size: 0.9em;
  text-align: center;
  max-width: 70ch;
}

.flow-lightbox__counter {
  margin: 0;
  color: #bbb;
  font-size: 0.8em;
  letter-spacing: 0.05em;
}

.flow-lightbox__close,
.flow-lightbox__prev,
.flow-lightbox__next {
  position: absolute;
  border: 0;
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.flow-lightbox__close:hover,
.flow-lightbox__prev:hover,
.flow-lightbox__next:hover,
.flow-lightbox__close:focus-visible,
.flow-lightbox__prev:focus-visible,
.flow-lightbox__next:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.flow-lightbox__close {
  top: -0.2rem;
  right: -0.2rem;
}

.flow-lightbox__prev {
  left: -3.4rem;
  top: 50%;
  transform: translateY(-50%);
}

.flow-lightbox__next {
  right: -3.4rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .flow-lightbox__prev {
    left: 0.4rem;
  }

  .flow-lightbox__next {
    right: 0.4rem;
  }
}
