.team {
    background-color: #ffffff;
    padding: 100px 0 50px;
    text-align: center;
}

.team .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.team .team-header {
    margin-bottom: 20px;
}

.team .section-title {
    font-size: 2.5em;
    font-weight: 500;
}

.team .section-description {
    max-width: 800px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 0 100px;
}

.team-member {
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /*border-radius: 10px;*/
    overflow: hidden;
    text-align: center;
}

.team-photo {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-photo .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: left;
}

.team-photo h3, .team-photo p {
    margin: 0;
    padding: 0;
    color: white !important;
}

.team-photo p {
    font-size: 0.9em;
}

/* MOBILE STYLES */

@media (max-width: 768px) {

    .team-grid {
        padding-right: 25px;
        padding-left: 25px;
    }

    .team-photo {
        height: auto;
    }

    .team .section-description {
        font-size: 1.1em;
    }

    .team-photo h3 {
        font-size: 1.25em;
    }

    .team-photo p {
       font-size: 1.0em;
    }

}