/* ============================================================
   Book Page Illustration Lightbox — Styles
   ============================================================ */

.book-scenes img { cursor: zoom-in; transition: transform 0.15s; }
.book-scenes img:hover { transform: scale(1.02); }

.book-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-lightbox-viewport {
  width: 92vw;
  height: 86vh;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  position: relative;
}

.book-lightbox-content {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.book-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: white;
  color: var(--sky-deep, #3E5974);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.book-lightbox-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2001;
}

.book-lightbox-controls button {
  background: white;
  color: var(--sky-deep, #3E5974);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 700px) {
  .book-lightbox-viewport { width: 96vw; height: 80vh; }
}