.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 35, 0.76);
}

.lightbox.hidden {
  display: none;
}

.lightbox-panel {
  width: min(92vw, 980px);
  max-height: 92vh;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 8px auto;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-panel p {
  margin: 8px 0 0;
  color: #5d6a80;
  overflow-wrap: anywhere;
}

.lightbox-close {
  float: right;
}

