main h2 {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
}

#cast-b {
  margin-top: 60px;
}

/* Default: 2 columns */
section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;

  max-width: 800px;
  /* Adjust based on your layout needs */
  margin: 0 auto;
  /* Centers the section horizontally */
}

/* Cast member layout: image + info side by side */
.cast-member {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 1rem;
  border-radius: 8px;
}

.cast-member h3 {
  font-size: 32px;
  font-weight: bold;
}

.cast-member p {
  font-size: 22px;
  margin-top: 10px;
}

/* Image styling */
.cast-member img {
  width: 200px;
  height: 200px;
  max-width: 200px;
  border-radius: 50%;
}

/* Responsive behavior for smaller screens */
@media (max-width: 800px) {
  section {
    grid-template-columns: 1fr;
    /* Only 1 cast member per row */
  }

  .cast-member {
    grid-template-columns: 1fr;
    /* Stack image and info vertically */
    text-align: center;
  }

  .cast-member img {
    margin: 0 auto;
  }
}

main {
  position: absolute;
  top: 0;
  width: 100vw;
  padding-top: 100px;
  background-image: url("img/bg-3.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 1200px) {
  section {
    grid-template-columns: repeat(3, 1fr);
    /* or 4 if it fits your design */
    max-width: 1200px;
    /* adjust accordingly */
  }
}