.team-section .container {
    max-width: 1170px;
}

.team-section {
    margin-bottom: 40px;
}

.team-section h2 {
    color: #ffffff;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    font-size: 25px;
    background-color: #5e5e5e;
    font-weight: 400;
}

.team-list {
    border: solid 1px #f2f2f2;
    position: relative;
    margin-bottom: 20px;
}

.team-description {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    position: absolute;
    width: 100%;
    bottom: 0;
    text-align: center;
    padding: 10px;
}

.team-description h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.team-image {
    height: 100%;
    position: relative;
}

.team-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (min-width: 500px) {
    .team-grid {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -11px;
        justify-content: center;
    }

    .team-list {
        width: 45%;
        margin: 10px;
    }
}

@media (min-width: 768px) {
    .team-list {
        width: 31.1%;
        margin: 10px;
    }
}

@media (min-width: 1200px) {
    .team-section h2 {
        font-size: 30px;
    }

    .team-list {
        width: 31.5%;
        margin: 10px;
    }

    .team-list {
        width: 31.5%;
        margin: 10px;
    }
}