/* Team Page Styles */

#primary.row, .entry-content {
    padding-bottom: 0;
}
#team-list {
    margin: 0 auto;
    max-width: 1280px;
    padding-bottom: 9px;
    width: 100%;
}
.team-member-item {
    background-color: #fff;
    padding: 9px 18px;
    position: relative;
    text-align: left;
    transition: all .4s ease;
}
.team-member-thumb {
    height: 310px;
    width: 100%;
}
@media only screen and (min-width:1024px) {
    .team-member-item:nth-of-type(4n+1) {
        padding: 9px 12px 2em 0;
    }
    .team-member-item:nth-of-type(4n+2) {
        padding: 9px 9px 2em 6px;
    }
    .team-member-item:nth-of-type(4n+3) {
        padding: 9px 6px 2em 9px;
    }
    .team-member-item:nth-of-type(4n+4) {
        padding: 9px 0 2em 12px;
    }
}
@media only screen and (min-width:641px) and (max-width:1023px) {
    .team-member-item:nth-of-type(2n+1) {
        padding: 9px 9px 2em 0;
    }
    .team-member-item:nth-of-type(2n+2) {
        padding: 9px 0 2em 9px;
    }
}

a.team-member-link {
    display: block;
    padding-bottom: 120px;
    position: relative;
}
.team-member-contain {
    position: relative;
}
.team-member-contain a:hover {
    text-decoration: none;
}
@media only screen and (min-width: 641px) {

    .team-member-overlay, .team-member-overlay-2 {
        /*background-color: #007ea3;
        background-color: rgba(0, 126, 163, .8);*/
        bottom: 0;
        left: 0;
        margin: auto;
        position: absolute;
        right: 0;
        top: calc(100% - 120px);
        transition: all .4s ease;
        width: 100%;
        z-index: 5;
    }
    /*.team-member-overlay-2 {
        background: url(../img/background-blue.png) left bottom;
        z-index: 6;
    }*/
    .team-member-item:hover .team-member-overlay {
        /* background: #007ea3; */
        /* opacity: .8; */
        top: 0;
        /* top: calc(100% - 150px); */
    }
    .team-member-info {
        top: calc(100% - 105px);
    }
}

.team-member-info {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 6;
	border-left: 4px solid;
    transition: all .4s ease;
}
h3.team-member-name {
    margin: 0;
    padding-top: 0;
    font-size: 1.25em;
    color: #415464;
    text-align: left;
	text-transform: uppercase;
    transition: all .8s ease;
}
h3.team-member-name a {
    color: #415464;
}
/*h3.team-member-name:hover, h3.team-member-name a:hover {
    color: #5C2D91;
}*/
.team-member-title {
    font-size: 1em;
    font-weight: 400;
    padding: 5px 0 5px;
    color: #415464;
    line-height: 1.45em;
    transition: all .5s ease;
}
.team-member-item:hover .team-member-info {
    /*top: 35%;*/
}
a.team-member-bio {
    opacity: 0;
    font-size: 1em;
    font-weight: 700;
    padding: 10px 30px;
    color: #fff;
    line-height: 1.125em;
    text-align: center;
    margin: 10px auto;
}
.team-member-item:hover a.team-member-bio {
    opacity: 1;
}
.team-member-bio:hover {
    background-color: #fff;
}
.team-member-profile-contain {
    position: fixed;
    z-index: 999999999999;
}
.team-member-box-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 525px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    color: #000;
    text-align: left;
}
.team-member-box-content .columns {
    padding-top: .9375rem;
    padding-bottom: .9375rem;
}
.team-member-profile-info-contain {
    position: relative;
    max-height: 468px;
    overflow-y: scroll;
}
.team-member-profile-name {
    font-size: 1.875em;
    text-transform: uppercase;
    padding: 0 0 20px 0;
}
.team-member-profile-title {
    font-size: 1.375em;
    padding: 0 0 20px 0;
}
.team-member-profile-bio p {
    line-height: 1.5em;
}
.profile-linkedin {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: .875em;
}
.team-member-profile-title {
    margin-bottom: 0 !important;
}
.profile-linkedin a:hover, .profile-linkedin a:active {
    text-decoration: none;
}
.team-member-contain a.btn {
    background-color: #56565a;
    border-color: #56565a;
}
@media only screen and (max-width:1200px) {
    .team-member-box-content {
        max-width: 90%;
        max-height: 600px;
    }
    .team-member-profile-info-contain {
        max-height: 555px;
    }
    .entry-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media only screen and (max-width:1024px) {
    .entry-content {
        padding-top: 9px;
    }
}
@media only screen and (max-width:959px) {
    .team-member-box-content {
        max-height: 75%;
        overflow: scroll;
    }
    .team-member-profile-info-contain {
        max-height: none;
    }
    .team-member-profile-name {
        font-size: 1.5em;
    }
    .team-member-profile-close {
        top: 2px;
        right: 2px;
        background: none;
        border-color: transparent;
    }
    .team-member-profile-close:before, .team-member-profile-close:after {
        background-color: #000;
    }
    .team-member-title {
        font-size: 1.1em;
    }
}
@media only screen and (max-width:768px) {
    .team-member-box-content {
        max-height: 95%;
        max-width: 95%;
        padding: 0 10px 10px;
    }
}
@media only screen and (max-width: 640px) {
    .team-member-thumb {
        height: 351px;
    }
    a.team-member-link {
        padding: 0;
    }
    .team-member-info {
        background-color: #007ea3;
        background-color: rgba(65,84,100, .8);
        bottom: 0;
        padding: 10px 0 10px 10px;
    }
    h3.team-member-name {
        font-size: 1em;
		color: #fff;
    }
    .team-member-title {
        font-size: .9em;
        padding-top: 5px;
		color: #fff;
    }
	.single-team-img {
    margin-bottom: 2em;
}
	h1.entry-title span {
    top: 2px;
}
	h2.entry-subtitle {
    bottom: auto;
    left: 1em;
	line-height: 1.3;
}
}
