/*------------------------
Header
------------------------*/
.team-header {
    width: 100%;
    display: flex;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.img_container{
    width: 100%;
    height: auto;
    max-height: 60vh;
    overflow: hidden;
}
.team-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-title-container {
    margin-top: 2em;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
}

.team-header h2{
    margin-bottom: 0.8em;
    font-size: 40px;
    color: #3A3A3A;
    font-weight: bold;
}
.team-header p {
    font-size: 1.2em;
    width: 90%;
    color: #C2C2C2;
}

/*------------------------
Section Team
------------------------*/
.section-team {
    margin-right: 5%;
    margin-left: 5%;
}

.section-team h4 {
    margin-top: 8%;
    font-weight: bold;
    font-size: 2.6em;
    color: #3A3A3A;
}
.section-team h4:first-child {
    margin-top: unset;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-member {
    display: flex;
    flex-direction: column;
    width: 26%;
    margin-top: 6%;
}

.team-avatar {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}
.team-avatar img {
    object-fit: cover;
    height: 26vw;
    width: 100%;
    vertical-align: middle;
}

.team-name {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 18px;
    color: black;
}
.team-profession {
    margin-bottom: 0.2rem;
    font-size: 18px;
    font-weight: normal;
    color: black;
}

/*------------------------
Section Contact
------------------------*/

.section-contact {
    margin: 3em 10%;
    padding: 3em;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.team-contact-title-overlay {
    position: absolute;
    margin-left: 5px;
    margin-top: -19px;
    color: rgba(237, 184, 104, 0.5) !important;
    z-index: -1;
}

.team-title-contact {
    font-style: normal;
    font-weight: bold;
    font-size: 56px;
    color: #3A3A3A;
}

.section-contact p {
    margin-top: 35px;
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    color: black;
}

.team-contact-btn {
    margin-top: 20px;
    text-align: center;
    width: 15em;
    padding-top: 1em;
    padding-bottom: 1em;
    color: white;
    background: #555555;
    border: none;
    border-radius: 5px;
    outline: none;
    font-weight: 400;
    font-size: 18px;
}
.team-contact-btn:hover {
    color: white;
}

/***** Responsive ******/
@media (max-width: 550px) {

    .img_container {
        height: 320px;
    }
}
@media (max-width: 768px) {

    .team-member {
        width: 47%;
    }

    .team-avatar img {
        height: 45vw;
    }

    /* Section Contact */
    .section-contact { padding: 0; }
    .section-contact > div {
        position: relative;
    }

    .team-title-contact {
        text-align: center;
        font-size: 46px;
    }

    .team-contact-title-overlay {
        margin-left: -5px;
        margin-top: -15px;
    }
}