
.people {
    width: 100%;
    background-color: #B3DEE5;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2% 10%;
}

.supervisors {
    width: 100%;
    background-color: #FAE8B9;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2% 10%;
}

.PI {
    width: 100%;
    background-color: #B3DEE5;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2% 10%;
}


/* ----------styling------------- */
/* team pictures section */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 2%;
}

.team-member {
    position: relative;
    flex: 0 0 calc(33.33% - 2%); /* For 3 columns, adjust the width as needed */
    margin-bottom: 2.5%;
    text-align: center;
    transition: all 0.3s ease;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 26px rgba(0,0,0,0.6);
    background-color: #31525B;
    display: flex; /* Add this line */
    flex-direction: column;
}

.team-member img {
    position: relative;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
    z-index: 1;
}

.team-member p {
    position: relative;
    background: #31525B;
    z-index: 2;
    padding: 2% 4%;
    color: #B3DEE5;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .team-member {
        flex: 0 0 calc(50% - 20px); /* For 2 columns, adjust the width as needed */
    }
}

@media screen and (max-width: 600px) {
    .team-member {
        flex: 0 0 calc(100% - 20px); /* For 1 column, adjust the width as needed */
    }
}


/* Hover effect */
.team-member:hover img{
    transform: scale(1.1); /* Increase size of img on hover */
}