.aya-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.aya-lightbox-overlay.is-open {
  display: flex;
}

.aya-lightbox-dialog {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.aya-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}

.aya-lightbox-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.aya-lightbox-actions {
  display: flex;
  gap: 8px;
}

.aya-lightbox-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.aya-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.aya-lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.aya-lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
}

.aya-lightbox-hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  text-align: center;
  user-select: none;
}

