/* ==============================================
   Team list
   ============================================== */

.team-member-list-title {
    font-size: 24px;
    text-align: center;
    color: #313131;
    text-transform: uppercase;
    margin-top: 60px;
}

.contact-button-wrapper {
    display: flex;
}

.contact-button-wrapper .back-to-categories-btn {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    margin: 20px auto 50px;
    color: #fff;
    border-color: #009bac;
    background-color: #009bac;
}

.contact-button-wrapper .back-to-categories-btn:hover {
    border-color: #007884;
    background-color: #007884;
}

.team-member-list {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0;
}

.team-member-list li {
    width: 25%;
    display: inline-block;
    text-align: center;
    margin-bottom: 40px;
}

.team-member-list li img {
    width: 160px;
    border-radius: 50%;
    opacity: 1;
    transition: opacity .25s ease-in-out;
}

.team-member-list li:hover img {
    opacity: 0.8;
}

.team-member-name {
    font-size: 14px;
    margin-top: 20px;
    color: #313131;
    transition: color .25s linear;
}

.team-member-list li:hover .team-member-name {
    color: #888888;
}

@media screen and (max-width: 960px) {
    .team-member-list li img {
        width: 160px;
    }
    .team-member-name {
        font-size: 13px;
    }
}

@media screen and (min-width: 768px) {
    .team-member-list li {
        width: 33%;
    }
}

@media screen and (max-width: 767px) {
    .team-member-list li {
        width: 50%;
    }
    .team-member-list li img {
        width: 160px;
    }
    .team-member-name {
        font-size: 14px;
    }
}

@media screen and (max-width: 479px) {
    .team-member-list-title {
        font-size: 16px;
    }
    .team-member-list li {
        width: 50%;
    }
    .team-member-list li img {
        width: 130px;
    }
    .team-member-name {
        font-size: 11px;
    }
}

@media screen and (min-width: 1170px) {
    .team-member-list li {
        width: 20%;
    }
}


/* ==============================================
   Team Member Modal
   ============================================== */

.modal-wrapper.styled {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-wrapper.styled .modal {
    width: 560px;
    padding: 50px 30px;
}

.modal-wrapper.styled .modal .close-modal {
    top: -14px;
    color: #009bac;
    font-size: 4.0em;
}

.modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-wrapper.styled .modal h2 {
    font-size: 1.3em;
    margin: 15px 0 30px;
}

.modal-image img {
    width: 140px;
    border-radius: 50%;
}

@media screen and (max-width: 600px) {
    .modal-wrapper.styled .modal {
        width: 86%;
    }
}

ul.business-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 40px 80px;
    margin-bottom: 40px;
}

.business-area-name {
    font-size: 20px;
    line-height: 24px;
    margin: 15px 0;
    text-align: center;
    color: rgb(0, 155, 172);
}

.business-area-desc p {
    font-size: 16px;
    text-align: center;
}

.team-page-text {
    padding: 0 40px
}

.post-entry.team-page-text p {
    font-size: 18px;
    font-weight: 600;
}

@media screen and (max-width: 991px) {
    ul.business-areas {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 40px;
        padding: 40px;
        margin-bottom: 20px;
    }
    .business-area-image {
        max-width: 200px;
    }
    ul.business-areas li {
        display: flex;
    }
    .business-area-details {
        margin-left: 20px;
    }
    .business-area-name {
        text-align: left;
    }
    .business-area-desc p {
        text-align: left;
    }
}

@media screen and (max-width: 767px) {
    ul.business-areas {
        padding: 40px 0;
    }
    ul.business-areas li {
        flex-direction: column;
        align-items: center;
    }
    .business-area-details {
        margin-left: 0;
    }
    .business-area-name {
        text-align: center;
    }
    .business-area-desc p {
        text-align: center;
    }
    .team-page-text {
        padding: 0;
    }
    .post-entry.team-page-text p {
        font-size: 16px;
    }
}


/* ==============================================
   Team Member Modal
   ============================================== */

.page .blocker {
    z-index: 2000;
}

.modal a.close-modal {
    color: #009bac;
    font-size: 4.0em;
    background: transparent;
    position: absolute;
    top: -16px;
    right: 12.5px;
    cursor: pointer;
    z-index: 999999;
    display: block;
    font-family: 'PT Serif', serif;
    background-image: unset;
    text-indent: 0;
}

.modal.team-member-dialog {
    padding: 50px 30px;
    max-width: 600px;
}

.modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2.modal-name {
    font-size: 1.3em;
    margin: 15px 0 30px;
}

.modal-image img {
    width: 140px;
    border-radius: 50%;
}

@media screen and (max-width: 600px) {
    .modal-wrapper.styled .modal {
        width: 86%;
    }
}


/* ==============================================
   Team Member Single Post
   ============================================== */

.single-team .container-single {
    padding: 40px 0 0;
}

.single-team .team-member-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 100px;
}

.single-team .team-member-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin-right: 3.5em;
}

.single-team .team-member-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 3.5em;
    border-left: 2px solid rgb(0, 155, 172);
}

.single-team .team-member-name {
    color: #313131;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 1px;
    margin: 0px;
    margin-bottom: 10px;
}

.single-team .team-member-description p,
.single-team .team-member-interests-area-list ul li {
    font-size: 16px;
    line-height: 28px;
}

.single-team .team-member-interests-area-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 60px;
}

.single-team .team-member-interests-area-headline {
    font-size: 22px;
    color: #313131;
    letter-spacing: 0;
    line-height: 1.3em;
    margin-bottom: 20px;
}

.single-team .team-member-interests-area-list {
    width: 50%;
}

.single-team .team-member-interests-additional-photo {
    width: 46%;
}

.single-team .team-member-interests-area-list ul li {
    margin-bottom: 10px;
    padding-left: 36px;
    position: relative;
}

.single-team .team-member-interests-area-list ul li::before {
    content: '';
    background-image: url(/img/gb_sign.svg);
    width: 18px;
    height: 16px;
    position: absolute;
    top: 6px;
    left: 0;
}

.single-team .team-member-additional-photo {
    border: 2px solid rgb(0, 155, 172);
}

@media screen and (max-width: 767px) {
    .single-team .team-member-header {
        flex-direction: column;
        margin-bottom: 50px;
    }
    .single-team .team-member-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    .single-team .team-member-details {
        padding-left: 0;
        border-left: 0;
    }
    .single-team .team-member-name {
        text-align: center;
    }
    .single-team .team-member-interests-area-details {
        flex-direction: column;
    }
    .single-team .team-member-interests-area-list {
        width: 100%;
        margin-bottom: 40px;
    }
    .single-team .team-member-interests-additional-photo {
        width: 100%;
    }
}

@media screen and (max-width: 519px) {
    .single-team .team-member-image {
        width: 200px;
        height: 200px;
    }
}