/* css styles */

#peopleCarousel {
  max-width: 850px;
  margin: 2rem auto;
  position: relative;
}

.people-slide {
  max-height: 65vh;
  max-width: 100%;
  object-fit: contain;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.55);
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 1;
}

.custom-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 36px;
  line-height: 1;
}

/* Thumbnail row */
.carousel-indicators.thumbnail-strip {
  position: static;
  margin: 0 0 15px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
}

.carousel-indicators.thumbnail-strip button {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  text-indent: 0;
  background: none;
  opacity: 0.45;
}

.carousel-indicators.thumbnail-strip button.active {
  opacity: 1;
}

.carousel-indicators.thumbnail-strip img {
  width: 45px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.book-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.book-card h3 {
  margin: 1rem 1rem 0.5rem;
}

.book-card p {
  margin: 0 1.25rem;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}