/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#lightbox.is-open { display: flex; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}

.lb-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Toolbar: counter + fullscreen + close */
.lb-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.lb-counter {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  margin-right: auto;
}

.lb-fullscreen,
.lb-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  padding: 0.2rem 0.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.lb-fullscreen:hover,
.lb-close:hover { opacity: 1; }

.lb-close { font-size: 2rem; }

/* Prev / Next arrows */
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev:hover,
.lb-next:hover { opacity: 1; }

/* Form messages */
.form-message { display: none; margin-top: 1rem; font-size: 0.875rem; padding: 0.75rem 1rem; }
.form-message--ok  { background: #e6f4ea; color: #1a6e2e; }
.form-message--err { background: #fce8e8; color: #8b1a1a; }
