/**** Header styling ****/
#main {
    margin-top: 0;
    z-index: 0;
}

.team-header {
    background: black;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.header-background {
    background-position: center 75px;
    z-index: 0;
}

.team-header .header-video {
    z-index: 1;
}

.team-header-flex {
    position: relative;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.team-header-content {
    width: 90%;
    margin: 10vh auto;
}

.team-link-wrapper {
    margin: 15px;
}
.team-nav-link {
    cursor: pointer;
}
.team-nav-link-image {
    border-radius: 100%;
    height: 100px;
    width: 100px;
}
.team-nav-link-name {
    color: #f7cd0d;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: .5s all;
}
.team-link-wrapper:hover .team-nav-link-name {
    color: white;
}

.team-nav {
    width: 90%;
    margin: 7vw auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.single-read-more {
    color: #f7cd0d;
    cursor: pointer;
}

.content-wrapper {
    z-index: 5;
}

@media (min-width:768px) {
    .header-background {
        background-position: center 125px;
    }
}


/***** Single Team Member *****/
.single-team-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
    margin: 0;
}

.single-team-wrapper:nth-child(4n+1) {
    background-color: #36435a;
}

.single-team-wrapper:nth-child(4n+3) {
    background-color: #161f31;
}

.single-team-wrapper h1 {
    line-height: 0;
    margin-bottom: -1px;
}

.single-team-content {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

.single-team-content p:last-child {
    margin-bottom: 35px;
}

.single-team-firstname {
    font-size: 2em;
    letter-spacing:4px;
}
.single-team-lastname {
    font-size: 2.5em;
    letter-spacing:4px;
    line-height:.75;
}

.single-team-content p {
    line-height: 1.5;
    margin: 15px 0;
}

/* .team-image-md, */
.team-image-lg {
    display: none;
}

.single-team-full-wrapper {
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    background: rgb(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    transition: .5s all;
    pointer-events: none;
    overflow-y: scroll;
}
.single-more-flex {
    opacity: 1;
    pointer-events: inherit;
}

.single-team-close-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
}

.single-team-full-content {
    width: 90%;
    max-width: 800px;
    margin: auto;
    padding: 25px;
    line-height: 1.5;
    z-index: 9999;
    background: #161f31;
    min-height: 100%;
}
.single-team-full-content p {
    margin: 10px auto;
}

.single-team-image {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    object-position: center
}

.more-button-wrapper {
    margin: 25px 0;
}

@media (min-width: 800px) {
    .single-team-wrapper {
        display: flex;
        flex-direction: row-reverse;
    }
    .single-team-firstname {
        font-size: 2.5em;
    }
    .single-team-lastname {
        font-size: 3.5em;
    }
    
    .team-image-sm {
        display: none;
    }

    .team-image-lg {
        display: block;
    }
    
    .single-team-image {
        height: 65vh;
        position: relative;
        z-index: -9999;
        max-height: none;
        object-fit: cover;
        object-position: unset;
    }
    
    .single-team-content-wrapper {
        min-height: calc(50vw - 100px);
        padding: 5vw 0;
        z-index: 99;
    }
    
    .single-team-full-wrapper {
        align-items: center;
    }
    .single-team-close-bg {
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .single-team-full-content {
        min-height: 0;
        max-height: 75vh;
        overflow-y: scroll;
    }
    .single-team-full-content::-webkit-scrollbar {
        display: none;
    }
}

/* like the planes page, need to switch to mobile a little early due to weird design */
@media (min-width:900px) {
    .single-team-wrapper h1 {
        display: none;
    }
    
    .single-team-content {
        margin: 0 auto 0 0px;
    }
    
    .single-team-firstname {
        font-size: 3em;
    }
    .single-team-lastname {
        font-size: 4em;
        line-height:.75;
    }
    
    .single-team-content {
        width: 100%;
        padding: 0 0 0 5vw;
    }
}

@media (min-width:1200px) {
    /* .team-image-md {
        display: none;
    } */
    .team-image-lg {
        display: block;
    }
    
    .single-team-image {
        width: 130vw;
        height: 100%;
        object-fit: cover;
    }
}

/**** Air Force grid section ****/
.team-af-wrapper {
    width: 100%;
    position: relative;
    text-align: center;
    margin: 25px 0 0;
}

.af-pilots-grid {
    margin-top: 25px;
    width: 100%;
}
.af-pilot-wrapper {
    height: 80vh;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}

.af-pilot-flex {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,.5);
}

.af-pilot-content {
    width: 90%;
    margin: 0 auto 150px;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.af-pilot-firstname {
    font-size: 2em;
}
.af-pilot-lastname {
    font-size: 3.5em;
}

@media (min-width: 768px) {
    .af-pilots-grid {
        display: flex;
    }
    
    .af-pilot-wrapper {
        width: 25%;
        flex: 1;
    }
}