.lightbox-overlay {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 24px;
}
.lightbox-overlay[open] {
  display: flex;
}
.lightbox-overlay::backdrop {
  background: transparent;
}
.lightbox-overlay.visible {
  opacity: 1;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  user-select: none;
  opacity: 0.8;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
[data-theme="dark"] .lightbox-overlay img {
  background: #1a1a24;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay {
    transition: none;
  }
}
