/**
 * Simple Team - front end grid.
 *
 * Selectors are intentionally identical to the old Our Team Showcase grid
 * template so any existing theme-level overrides keep applying.
 */

.ots-team-view .clear {
    clear: both;
}

.grid#sc_our_team {
    overflow: hidden;
    width: 100%;
}

.grid#sc_our_team .sc_team_member {
    overflow: hidden;
    box-sizing: border-box;
    padding: 5px;
}

.grid#sc_our_team .sc_team_member_inner {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    text-align: center;
    background: #404040;
    background-size: cover;
}

/* Photo -------------------------------------------------------------- */

.grid#sc_our_team .sc_team_member img.wp-post-image {
    width: 100%;
    height: auto !important;
    max-width: inherit;
    display: block;
    margin: 0 auto;
    float: none;
    border: none;
    padding: 0;
    transition: 0.45s all ease-in-out;
    -webkit-transition: 0.45s all ease-in-out;
}

.grid#sc_our_team .sc_team_member .wp-post-image.zoomIn {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

/* Name bar ----------------------------------------------------------- */

.grid#sc_our_team .sc_team_member .sc_team_member_name {
    height: 24px;
    line-height: 26px;
    padding: 0 30px;
    position: absolute;
    left: 0;
    bottom: 40px;
    overflow: hidden;
    opacity: 0.9;
    color: #fff;
    transition: 0.45s all ease-in-out;
    -webkit-transition: 0.45s all ease-in-out;
}

.grid#sc_our_team .sc_team_member .sc_team_member_name a {
    color: #fff;
    text-decoration: none;
}

.grid#sc_our_team .sc_team_member:hover .sc_team_member_name {
    left: -100%;
}

/* Hover overlay and "more" button ------------------------------------ */

.grid#sc_our_team .sc_team_member .sc_team_member_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    padding: 0 10px;
    color: #fff;
    background: rgba(50, 50, 50, 0.5);
    display: none;
}

.grid#sc_our_team .sc_team_member .sc_team_more {
    position: absolute;
    width: 100%;
    margin: -25px 0 0;
    top: -25px;
    transition: 0.45s all ease-in-out;
    -webkit-transition: 0.45s all ease-in-out;
}

.grid#sc_our_team .sc_team_member .sc_team_more.show {
    top: 50%;
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
}

#sc_our_team .sc_team_member .sc_team_more img {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

#sc_our_team .sc_team_member .sc_team_more a {
    box-shadow: none;
    border: none;
}

/* Columns ------------------------------------------------------------ */

@media (min-width: 768px) {

    .grid#sc_our_team .sc_team_member {
        float: left;
    }

    #sc_our_team.sc-col2 .sc_team_member {
        width: 50%;
    }

    #sc_our_team.sc-col3 .sc_team_member {
        width: 33.3%;
    }

    #sc_our_team.sc-col4 .sc_team_member {
        width: 25%;
    }

    #sc_our_team.sc-col5 .sc_team_member {
        width: 17%;
        margin: 1%;
    }

    #sc_our_team.sc-col10 .sc_team_member {
        width: 10%;
    }

}

@media (min-width: 767px) and (max-width: 980px) {

    #sc_our_team.grid.sc-col2 .sc_team_member,
    #sc_our_team.grid.sc-col3 .sc_team_member,
    #sc_our_team.grid.sc-col4 .sc_team_member,
    #sc_our_team.grid.sc-col5 .sc_team_member {
        width: 45%;
        margin: 0 4% 15px 0;
    }

}

@media (max-width: 767px) {

    #sc_our_team.grid.sc-col2 .sc_team_member,
    #sc_our_team.grid.sc-col3 .sc_team_member,
    #sc_our_team.grid.sc-col4 .sc_team_member,
    #sc_our_team.grid.sc-col5 .sc_team_member {
        width: 100%;
        margin: 0;
    }

}
