.person-page {
    background-color: #fafafa;
}

.person-content-wrapper {
  bottom: 50px;
  padding-top: 20px;
  width:1200px;
  padding-left:20px;
  padding-right:20px;
  margin-left:auto;
  margin-right:auto;
  -webkit-box-sizing:border-box;
  box-sizing:border-box;
}

.person-content-wrapper h2 {
  font-family: 'Playfair Display',sans-serif;
  font-size: 24px;
  margin-left:7%;
  margin-right:auto;
  margin-top:30px;
  margin-bottom:30px;
}

.person-content-wrapper>p {
  font-family: 'Playfair Display',sans-serif;
  font-size: 15px;
  line-height: 30px;
  margin-left:7%;
  margin-right:7%;
  margin-bottom:30px;
}

.council {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.council-member {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 280px;
    height: 440px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.council-member img {
    /*border-radius: 50%;*/
    /*width: 150px;*/
    /*height: 150px;*/
    object-fit: cover;
}

.council-member h3 {
    color: #333;
    margin: 15px 0 10px;
    font-size: 18px;
}

.council-member p {
    color: #666;
    font-style: italic;
    flex-grow: 1;
}

.person-divider {
  border: 0;
  height: 1px;
  background-color: #b4b4b4;
  margin: 50px 10%;
}

.slider {
    width: 1000px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto 100px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    /*height: 600px;*/
    object-fit: cover;
    border-radius: 10px;
}

.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-color: gray;
}

.swiper-pagination-bullet {
    --swiper-pagination-color: gray;
}


/* Mobile styles */
@media (max-width: 1240px) {
  .person-content-wrapper {
    width: 95%;
    max-width: 1100px;
  }
}

@media (max-width: 1024px) {
  .person-content-wrapper {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .person-content-wrapper h2 {
    margin-left: 5%;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .person-content-wrapper>p {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 14px;
    line-height: 1.7;
  }

  .council-member {
    width: 240px;
    height: 400px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .person-content-wrapper {
    padding-top: 15px;
    bottom: 30px;
  }

  .person-content-wrapper h2 {
    margin-left: 0;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .person-content-wrapper>p {
    margin-left: 0;
    margin-right: 0;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
  }

  .council {
    gap: 15px;
  }

  .council-member {
    width: 45%;
    height: auto;
    min-height: 380px;
    padding: 12px;
  }

  .council-member h3 {
    font-size: 16px;
    margin: 10px 0 8px;
  }

  .person-divider {
    margin: 40px 5%;
  }

  .slider {
    margin-bottom: 80px;
  }

  /*.swiper-slide img {*/
  /*  !*height: 400px;*!*/
  /*    height: auto;*/
  /*}*/

  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination-bullet {
    visibility: hidden;
  }
}

@media (max-width: 480px) {
  .person-content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .person-content-wrapper h2 {
    font-size: 18px;
  }

  .council {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .council-member {
    width: 90%;
    min-height: 350px;
    padding: 10px;
  }

  .council-member img {
    max-width: 80%;
    height: auto;
  }

  .person-divider {
    margin: 30px 0;
  }

  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination-bullet {
    visibility: hidden;
  }
}