/**
 * Yumei Lumina — Lightbox
 */

.yumei-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.yumei-lightbox[hidden] {
  display: none !important;
}

.yumei-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.yumei-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.yumei-lightbox__close {
  appearance: none;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.yumei-lightbox__close:hover {
  border-color: rgba(214, 0, 0, 0.45);
  color: #fff;
}

.yumei-lightbox__figure {
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.yumei-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  background: #0d0d0d;
}

.yumei-lightbox__caption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.yumei-lightbox-open {
  overflow: hidden;
}
