.eg-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.eg-lightbox-overlay.active {
  display: flex;
  flex-direction: column;
}

.eg-lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eg-lightbox-overlay img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
}

.eg-lightbox-caption {
  color: #fff;
  margin-top: 10px;
  text-align: center;
  font-size: .9rem;
  max-width: 1200px;
}

/* Arrows */
.eg-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}

.eg-lightbox-prev { left: 10px; }
.eg-lightbox-next { right: 10px; }

.eg-lightbox-nav:focus {
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 2px;
}

.eg-lightbox-nav:hover {
  background: rgba(0,0,0,.65);
}

/* Close button */
.eg-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.eg-lightbox-close:hover {
  background: rgba(0,0,0,.65);
}
