.natal-ai-figure {
  margin: 1.75rem auto 2rem;
  max-width: 100%;
  text-align: center;
}

.natal-ai-figure a {
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(24, 18, 48, 0.16);
  line-height: 0;
  overflow: hidden;
}

.natal-ai-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.natal-ai-figure a:hover img,
.natal-ai-figure a:focus-visible img {
  filter: brightness(1.03);
  transform: scale(1.01);
}

.natal-ai-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.natal-ai-gallery > h2 {
  grid-column: 1 / -1;
}

.natal-ai-gallery .natal-ai-figure {
  margin: 0;
}

.natal-ai-overlay {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3rem 1rem 1rem;
  background: rgba(9, 7, 18, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.natal-ai-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.natal-ai-overlay__image {
  display: block;
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
}

.natal-ai-overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font: 2rem/1 sans-serif;
}

.natal-ai-overlay__close:hover,
.natal-ai-overlay__close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.natal-ai-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .natal-ai-figure img,
  .natal-ai-overlay {
    transition: none;
  }
}

