.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: rgba(6, 16, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
  max-height: 100%;
}
.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius, 3px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim, #a7c4bc);
  margin: 0;
  text-align: center;
}

.lightbox-close,
.lightbox-nav-btn {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, rgba(238, 244, 241, 0.11));
  border-radius: 50%;
  background: rgba(14, 36, 34, 0.7);
  color: var(--ink, #eef4f1);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav-btn:hover {
  color: var(--teal, #6fc8b8);
  border-color: var(--teal, #6fc8b8);
}
.lightbox-close:focus-visible,
.lightbox-nav-btn:focus-visible {
  outline: 2px solid var(--teal, #6fc8b8);
  outline-offset: 2px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 1;
}

.lightbox-nav-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-overlay { padding: 56px 16px; }
  .lightbox-nav-btn { width: 36px; height: 36px; font-size: 18px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
