body {
    overflow-y: hidden;
}

.about-team-main {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children horizontally */
    width: 100%;
    max-width: 100vw;
}

.title{
    display: flex;
    font-size: 3rem;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    /* border: 2px red solid; */
}


.team-description {
    display: flex;
    padding: 2rem;
    /* border: 2px red solid; */
    height: auto;
    width: 50vw;
    justify-content: center;
    align-items: start;
}
.about__photo {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
  }

  .about__photo img {
    display: block;
    padding-top: 2rem;
    width: auto; 
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    align-items: center;
    justify-content: center;
    /* border: red solid 2px; */
    
  }

  .about__photo figcaption{
    flex: 1;
  min-width: 0;
  padding: 1rem;
  border-radius: 8px;
  }

.scroll-list {
  height: 60vh;        /* as you have */
  overflow: -moz-scrollbars-vertical; 
  overflow-y: scroll;
  list-style: none;
  padding: 0;
  margin: 0;

}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 5px;
}
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.scroll-list li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.bolder {
  font-weight: bolder;
}

@media screen and (max-width: 768px) {
  .about__photo {
    flex-direction: column;
    align-items: stretch;
  }

  .title {
    display: none;
  }
  .about__photo img {
    height: 100%;
  }
}