.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #333;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: #000;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lightbox__caption {
  margin-top: 1rem;
  color: var(--color-text, #333);
  text-align: center;
  font-family: var(--font-body, sans-serif);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lightbox__caption h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.lightbox__caption p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* ---- Navigation Arrows ---- */

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #333;
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 1rem;
  line-height: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
  user-select: none;
}

.lightbox__arrow:hover {
  color: #000;
}

.lightbox__arrow--prev {
  left: 1rem;
}

.lightbox__arrow--next {
  right: 1rem;
}

@media (max-width: 768px) {
  .lightbox__arrow {
    font-size: 2.5rem;
    padding: 0.5rem;
  }

  .lightbox__arrow--prev {
    left: 0.25rem;
  }

  .lightbox__arrow--next {
    right: 0.25rem;
  }
}
