.video-background-container{
    background-image: url(../Assets/BG-TEAMS-PAGE.jpg);
}
.content-meet{
    position: absolute;

    padding: 0;
    margin: 0;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.meet-container{
    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.meet-title{
    text-align: center;
    font-family: 'Sofia Pro';
    color: #fff;
    font-size: 5vh;
}


.meet-now{
    border-radius: 8vh;
    padding: 1vh 3vh;
    background-color: #fff;
    transition: 0.3s ease-in-out;
}

.meet-now:hover{
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

.meet-now:active{
    transform: scale(0.97);
    transition: 0.3s ease-in-out;
}

.meet-now a{
    font-family: 'Sofia Pro';
    color: #000000;
    font-size: 3vh;
    text-decoration: none;
}


.section-meet{
    padding-top: 20vh;
    width: 100vw;
    height: max-content;
    background-color: #1b1b1b;
}
.team-container-slide{
    width: 100%;
}





/* === CONTAINER & ITEMS === */
.carousel-container {
    overflow-x: auto;                /* <-- make this the scroll container */
    scroll-snap-type: x mandatory;   /* optional snap */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* hide scrollbar in Firefox */
  }
  .carousel-container::-webkit-scrollbar {
    display: none;                   /* hide scrollbar in WebKit */
  }
  
  .team-row-list {
    display: flex;
    /* no overflow here */
  }
  .team-intro-individual {
    flex: 0 0 calc(33.333% - 1rem);
    margin-right: 1rem;
    scroll-snap-align: start;
    color: #fff;
    text-align: center;
    padding: 2vh;
    box-sizing: border-box;
    border-radius: 8px;
  }
  .team-intro-photo {
    width: 40vh;
    height: 40vh;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2vh;
  }
  .team-intro-name {
    margin: 0.5rem 0 0.2rem;
    font-size: 3vh;
    font-weight: 500;
    font-family: 'Sofia pro';
  }
  .team-intro-role {
    margin: 0;
    font-size: 2.5vh;
    font-weight: 100;
    font-family: 'Sofia Pro';
  }

  /* === BUTTONS === */
  .buttons-slide-row {
    text-align: center;
    margin-top: 1rem;
  }
  .slide-button-team {
    background-color: #fff;
    color: #222;
    border: none;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .slide-button-team:hover {
    background-color: #555;
    color: #fff;
  }


/* slide‑out / fade‑out */
@keyframes slideOut {
  from { opacity: 1;}
  to   { opacity: 0;}
}

/* slide‑out / fade‑out */
@keyframes slideIn {
  from { opacity: 0;}
  to   { opacity: 1;}
}

/* when detail panel first appears */
.member-detail-content.enter {
  animation: slideIn 0.5s forwards;
}

/* when detail panel content is changing */
.member-detail-content.exit {
  animation: slideOut 0.3s forwards;
}

/* container show/hide (no change) */
.member-detail-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 2vh;
}
  
.member-detail-container.active {
  max-height: max-content;
  opacity: 1;
}

/* your grid layout (text left, image right) */
.member-detail-content {
  width: 100vw;
  height: 70vh;
  display: grid;
  grid-template-columns: 40% 60%;
  grid-template-rows: 1fr;

  justify-content: center;
  align-items: center;
}

  /* TEXT in column 1 */
  .member-detail-text {
    grid-column: 2;
    grid-row: 1;
    margin: 2vh;
    color: #fff; /* or whatever */
    font-family: 'Sofia Pro';
    font-weight: 200;
    font-size: 3vh;
    width: 80%;
  }
  
  /* IMAGE in column 2, using background-image */
  .member-detail-image {
    grid-column: 1;
    grid-row: 1;
    width: 70%;
    height: 80%;
    justify-content: right;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin: 0 auto;
  }
  
  
  @media screen and (max-width: 895px){
    /* your grid layout (text left, image right) */
    .member-detail-content {
      width: 100vw;
      height:140vh;
      display: flex;
      flex-direction: column;

      justify-content: center;
      align-items: center;
    }

      /* IMAGE in column 2, using background-image */
    .member-detail-image {
      grid-column: 1;
      grid-row: 1;
      width: 40%;
      height: 40%;
      justify-content: right;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 8px;
      margin: 0 auto;
    }

    .team-intro-individual {
      flex: 0 0 calc(50% - 1rem);
    }
  }

  @media screen and (max-width: 610px){

      /* TEXT in column 1 */
  .member-detail-text {
    grid-column: 2;
    grid-row: 1;
    margin: 1vh;
    color: #fff; /* or whatever */
    font-family: 'Sofia Pro';
    font-weight: 200;
    font-size: 2vh;
    width: 80%;
  }


    .team-intro-individual {
      flex: 0 0 calc(100% - 1rem);
    }

          /* IMAGE in column 2, using background-image */
          .member-detail-image {
            
            width: 100%;
            height: 30%;

          }

          .member-detail-content {
            margin-top: -25vh;
          }
  }
  
  