/* === FANART GRID === */
.fanart-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px auto;
  max-width: 800px;
}

.fanart-thumb-wrapper {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.fanart-thumb-wrapper:hover {
  border-color: #ff66cc; /* or your accent color */
}

.fanart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === LIGHTBOX OVERLAY === */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.show {
  display: flex;
}

#lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 0 20px black;
}

#lightbox-caption {
  color: white;
  margin-top: 12px;
  font-family: "Book Antiqua", serif;
  text-align: center;
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.4;
}

/* === LIGHTBOX CONTROLS === */
#close-lightbox {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

#prev-btn, #next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
}

#prev-btn { left: 40px; }
#next-btn { right: 40px; }

#prev-btn:hover, #next-btn:hover, #close-lightbox:hover {
  color: #ff66cc;
}


.hidden {
  display: none;
}
