/* Lightbox simples da galeria — sem dependências */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.25rem;
  box-sizing: border-box;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: none;
  background: transparent;
  color: #f5f2eb;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover:not(:disabled),
.lightbox-nav:focus-visible:not(:disabled) {
  opacity: 0.85;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #f5f2eb;
  outline-offset: 4px;
}

.lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 2.25rem;
  font-weight: 300;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: 300;
  width: 2.5rem;
  height: 4rem;
  opacity: 0.9;
}

.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox-prev {
  left: 0.35rem;
}

.lightbox-next {
  right: 0.35rem;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 2.5rem 0.5rem;
  }

  .lightbox-nav {
    font-size: 2rem;
    width: 2rem;
  }

  .lightbox-prev {
    left: 0.15rem;
  }

  .lightbox-next {
    right: 0.15rem;
  }
}

body.lightbox-open {
  overflow: hidden;
}
