.hidden.infobox-content {
	display: none;
}
/*#portfolio .infobox {
    padding: 0 30px;
    margin: 10px 0; 
}*/
/*#portfolio .infobox.open {
	padding: 60px 30px;
    background: #F6F6F6;
}*/
.infobox.open .close-icon {
    content: '';
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: url(/wp-content/themes/Avada-Child-Theme/assets/close.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#portfolio {
    transition: opacity .25s;
}
#portfolio.loading {
    opacity: .5;
}
#portfolio[data-post_type="wrvi_portfolio"] .infobox.open {
    position: fixed;
    top: 0px;
    left: -10px;
    right: -10px;
    bottom: 0;
    width: calc(100% + 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000cc;
    z-index: 999;
}
#portfolio .overlay-inner {
    background-color: #fff;
    position: relative;
    padding: 30px;
}
.portfolio-tile {
    position: relative;
}
.portfolio-tile .tile-bg {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center center / cover no-repeat;
    filter: grayscale(100%);
}
.portfolio-tile.open .tile-bg,
.portfolio-tile:hover .tile-bg {
	filter: grayscale(0%);
}
.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212C42;
    color: #fff;
    padding: 15px 10px;
    max-height: 0;
    transition: 300ms all;
    margin-bottom: -30px;
}
/*.tile-overlay:after {
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-image: url(/wp-content/themes/Avada-Child-Theme/assets/red-arrow.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}
.open .tile-overlay:after {
    background-image: url('/wp-content/themes/Avada-Child-Theme/assets/white-exit.png');
}*/
/*.tile-overlay p,
.tile-overlay h5 {
    width: calc(100% - 30px);
    float: left;
}*/
.tile-overlay p {
    width: 100% !important;
    padding-right: 30px;
    position: relative;
    margin: 0 0 5px 0 !important;
}
/*.tile-overlay p:last-of-type:after {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    background-color: red;
    right: 0;
    bottom: 0;
}*/
.tile-overlay p:last-of-type:after {
    content: '';
    width: 15px;
    height: 15px;
    position: absolute;
    right: 0px;
    bottom: 5px;
    background-image: url(/wp-content/themes/Avada-Child-Theme/assets/red-arrow.png);
    background-size: 15px auto;
    background-repeat: no-repeat;
    background-position: center;
}
.open .tile-overlay p:last-of-type:after {
    background-image: url('/wp-content/themes/Avada-Child-Theme/assets/white-exit.png');
}
/*.tile-overlay img {
    float: right;
    width: 20px;
}
.tile-overlay img.open-icon {
    display: inline-block;
}
.open .tile-overlay img.open-icon {
    display: none;
}
.open .tile-overlay img.close-icon {
    display: inline-block;
}
.tile-overlay img.close-icon {
    display: none;
}*/
.portfolio-tile:hover .tile-overlay,
.portfolio-tile.open .tile-overlay {
	max-height: 200px;
    margin-bottom: 0;
}
#portfolio-filter ul li {
    display: none;
}
#portfolio-filter ul li.active-filter,
#portfolio-filter ul:hover li {
    display: block;
}

#pagination {
    list-style-type: none;
    padding: 0 30px;
    max-width: 1424px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

#pagination.hidden {
    display: none !important;
}
#pagination li {
    display: block;
    margin: 0 4px;
    padding: 2px 6px;
    font-weight: bold;
}
#pagination li.next, #pagination li.prev {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: rgba(228, 0, 43, .25) url(assets/white-tri.svg) center / 7px no-repeat
}
#pagination li.prev {
    transform: scaleX(-1);
}
#pagination li.next:hover, #pagination li.prev:hover {
    background-color: #EE423A;
}
#pagination a{
    color: #000;
}
#pagination a.current, #pagination a:hover {
    color: #E4002B;
}


/* LEADERSHIP GRID */
#leadership {
    opacity: 0;
    transition: 400ms opacity;
}
#leadership .tile-container {
    margin: 2.5px 0;
    float: left;
    position: relative;
    display: inline-block;
    padding: 0 2.5px;
}
.leadership-tile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px;
    position: relative;
    cursor: pointer;
    max-height: 100%;
}

.leadership-tile .titles {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.9);
    padding: 15px 50px 15px 10px;
    height: 130px;
}
.leadership-tile .titles:before {
    content: '';
    display: block;
    top: 20px;
    right: 20px;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-top-color: #E4002B;
    position: absolute;
    /*transition: border-color .5s;*/
    border-left-width: 14px;
    border-right-width: 14px;
}
.leadership-tile:hover .titles ,
.leadership-tile.open .titles {
    background-color:rgba(228,0,43,.9);
}
.leadership-tile:hover .titles h5,
.leadership-tile.open .titles h5,
.leadership-tile:hover .titles h4,
.leadership-tile.open .titles h4{
    color: #FFF;
}
.leadership-tile:hover .titles:before {
    border-top-color: #FFF;
} 
.leadership-tile .titles h4.name {
    font-weight: 400;
    line-height: 1.5;
}
.leadership-tile .titles h5 {
    margin: 5px 0 0 0;
}
#leadership .infobox.open {
    display: block;
    padding: 60px;
    margin: 5px 0px;
    float: left;
    background: #f6f5f6;
    width: 100%;
}
span.closeInfobox:after,
.open.leadership-tile .titles:after {
    transform: rotate(45deg);
}
span.closeInfobox:before,
.open.leadership-tile .titles:before {
    transform: rotate(-45deg);
}
span.closeInfobox:before, span.closeInfobox:after {
    content: '';
    width: 2px;
    height: 20px;
    background-color: #4d4d4d;
    position: absolute;
    top: 15px;
    right: 40px;
    
}
.open.leadership-tile .titles:before,
.open.leadership-tile .titles:after {
    content: '';
    display: block;
    top: 15px;
    right: 30px;
    width: 2px;
    height: 20px;
    border: none;
    background-color: #FFF;
    position: absolute;
}
.infobox h5 {
    color: #e41c2d !important;
    margin: 5px 0 10px;
    text-transform: uppercase;
}


#search {
    background: transparent url(assets/search-icon.svg) calc(100% - 20px) 50% / 16px 16px no-repeat;
}
#search + #portfolio {
    clear: both;
    padding-top: 30px;
}
@media (min-width: 801px) {
    #search {
        margin-right: 30px;
        max-width: 300px;
        background: transparent url(assets/search-icon.svg) calc(100% - 20px) 50% / 16px 16px no-repeat;
    }
    #portfolio-filter.team_member-filter {
        float: right;
    }
    .team_member-filter + #search {
        float: right;
    }
}
@media (max-width: 800px){
    #portfolio-filter ul > div {
        max-height: 200px;
        overflow-y: auto;
    }
}