﻿.headerd {
    width: 100%;
    text-align: center;
    margin-bottom: 45px;
    overflow: hidden;
    transition: 0.45s ease 0.05s;
    max-height: 70px;
}

.header-title {
    width: 100%;
    font-size: 3.3em;
    color: #051926;
    margin-bottom: 15px;
}

.team-container {
    padding: 0 30px;
    box-sizing: border-box;
    max-width: 1400px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    height: auto;
}

.person {
    width: calc(25% - 30px);
    cursor: pointer;
    overflow: hidden;
    transition: 0.45s;
    position: relative;
}

.person-details {
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: -15px;
    transition: 0.3s;
}

.person-img {
    width: 100%;
}

.person-title {
    color: #051926;
    font-size: 20px;
    margin-top: 17px;
}

.person-desc {
    color: #051926;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.8em;
}

.person-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

    .person-list:hover .person {
        opacity: 0.6;
    }

.person:hover {
    opacity: 1 !important;
}

.person:before {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #124b70;
    content: "";
    height: 0px;
    transition: 0.45s;
}

.person {
    border: 1px solid #c5102f;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom:10px;
}

    .person:after {
        content: "×";
        font-size: 36px;
        color: #282828;
        position: absolute;
        width: 100%;
        top: 0;
        height: 100%;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        text-align: center;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        left: 0;
        flex-direction: column;
        color: red;
    }

.container-selected .headerd {
    max-height: 0px;
}

.container-selected .person {
    opacity: 0 !important;
    pointer-events: none;
}

.container-selected .person-list .person-selected {
    opacity: 1 !important;
}

    .container-selected .person-list .person-selected:before {
        height: 100%;
    }

    .container-selected .person-list .person-selected .person-details {
        margin-top: -40px;
        opacity: 0;
    }

.team-detail {
    /*  position: absolute;*/
    width: calc(100% - 100px);
    right: 80px;
    top: 0;
    height: 100%;
    color: #051926;
    transition: 0.15s;
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
}

.team-detail-bio-content p {
    margin-bottom: 15px;
    line-height: 25px;
    font-size: 1.05em;
}

.team-detail-header {
    margin-bottom: 30px;
}

.team-detail-inner {
    min-height: 100%;
    display: flex;
    flex-wrap: wrap;
}

.team-detail-left {
    position: relative;
    width: 650px;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    z-index:1;
}

    .team-detail-left:before {
        width: 100%;
        height: 100%;
        content: "";
        background: rgba(40, 40, 40, 0.8);
        position: absolute;
        right: 0;
        top: 0;
    }

    .team-detail-left:after {
        width: 100%;
        height: 100%;
        content: "";
        background: linear-gradient(to right, rgba(40, 40, 40, 0) 9%, rgba(40, 40, 40, 0) 10%, rgba(40, 40, 40, 0) 38%, rgba(40, 40, 40, 1) 92%, rgba(40, 40, 40, 1) 100%);
        position: absolute;
        right: 0;
        top: 0;
    }

.team-detail-photo {
    position: relative;
    text-align: center;
    z-index: 999;
    width: 100%;
    font-size: 0px;
}

    .team-detail-photo img {
        max-width: 100%;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
    }

.team-detail-right {
    box-sizing: border-box;
    width: calc(100% - 650px);
    min-height: 100%;
    display: flex;
    align-items: center;
    padding-right: 10%;
    position: relative;
    right: 0;
    flex-wrap: wrap;
}

    .team-detail-right .person-title {
        font-size: 24px;
    }

.container-ready .team-detail {
    transition: 0.45s ease 0.3s;
    opacity: 1;
    right: 0;
    visibility: visible;
}

    .container-ready .team-detail img {
        width: 75%;
    }

.container-ready .team-container {
    height: 0px;
    overflow: hidden;
}

.container-ready .person-selected {
    left: 0px !important;
    top: 0px !important;
    z-index: 99;
    height: 95% !important;
    width: 100px !important;
    pointer-events: auto;
    position: absolute !important;
}

    .container-ready .person-selected:after {
        opacity: 1;
        visibility: visible;
    }

.person-back:before {
    height: 0px !important;
}

.person-back .person-details {
    margin-top: -15px !important;
    transition-delay: 0.35s;
    opacity: 1 !important;
}

.social {
    margin-top: 15px;
}

    .social a {
        color: #fbf9bd;
        font-size: 20px;
        margin-right: 8px;
    }

        .social a:last-child {
            margin-right: 0;
        }

@media (max-width: 1200px) {
    .team-detail-left {
        width: 400px;
        padding: 0 40px;
        box-sizing: border-box;
    }

    .team-detail-right {
        padding-right: 0;
        width: calc(100% - 440px);
    }

    .person .person-title {
        font-size: 1.7em;
    }

    .person-details {
        padding: 0 10px;
    }
}

@media (max-width: 970px) {
    .team-detail-left {
        width: 100%;
        padding: 50px 50px 30px 50px;
    }

        .team-detail-left:after {
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(33, 33, 33, 1) 83%, rgba(40, 40, 40, 1) 100%);
        }

    .team-detail-right {
        padding: 0 50px;
        width: 100%;
    }

    .team-detail-header {
        text-align: center;
    }

    .container-ready .person-selected {
        width: 50px !important;
    }

    .team-detail {
        width: calc(100% - 50px);
    }

    .person {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .person {
        width: 100%;
        margin-bottom: 50px;
    }

    .headerd {
        margin-top: 50px;
    }
}
