/* AI Food Agent photo lightbox with ◀ / ▶ navigation (see agent-photo-lightbox.js) */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Above the post reader overlay (z-index 10000) that the photos are opened from */
  z-index: 10050;
  backdrop-filter: blur(6px);
}
.photo-lightbox-overlay[hidden] { display: none; }

.photo-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-main-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #f1f5f9;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.lightbox-caption:empty { display: none; }

/* Floating Navigation Arrows */
.lightbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-arrow-btn[hidden] { display: none; }

.lightbox-arrow-btn:hover {
  background: #0d9488;
  border-color: #0d9488;
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
  left: -24px;
}

.next-arrow {
  right: -24px;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: -10px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}
