@keyframes dropDown {
    0% { 
            opacity: 0; 
            transform: scaleY(0.1);
        }
    100% { 
            opacity:1; 
            transform: scaleY(1);
        }
}

.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[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-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;
}

#portfolio-filter ul > div {

    max-height: unset;
    overflow-y: auto;
    position: absolute;
    left: 0;
    width: 100%;
    display: none;
    transition: opacity .5s;
    z-index: 1000;
    transform-origin: 50% 0;

}
#portfolio-filter ul:hover > div {

    display: block;
    animation: dropDown .25s;
}



/* Portfolio Filters ~~~~~~~~~~~~~~~~~~~~ */

/*#portfolio-filter {
    background-color: #131D33;
    color: #fff;
    padding: 30px 25vw 0;
    margin: 0 -25vw;
    height: 75px;
}*/
#portfolio-filter {
    padding: 20px 60px 0;
    width: calc(100% + 60px);
    margin-left: -30px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.team-listing #portfolio-filter {
    height: 116px;
}
.tile-overlay {
    font-size: 20px;
    line-height: 1;
    color: #f6f6f6;
}
.tile-overlay .overlay-subtext {
    font-size: 14px;
    font-weight: 800;
}
#portfolio-filter .selector {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

#portfolio-filter select, #portfolio-filter ul,  #resetFilters {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    width: auto;
    min-width: 200px;
}

#portfolio-filter ul, #portfolio-filter select {
    background-color: transparent;
    border-radius: 4px 4px 0 0;
    position: relative;
    padding: 0;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
}
#portfolio-filter ul {
    z-index: 100;
    position: relative;
    vertical-align: top;
    list-style-type: none;
    transition: max-height 0.75s,box-shadow 0.5s, background 0.5s;
    cursor:pointer;
    width: 360px;
    max-width: 100%;
}
 
#portfolio-filter #search {
    width: 360px;
    max-width: 100%;
}
#portfolio-filter #search {
    padding: 13px 50px;
    border-top: none;
    border-left: none;
    border-right: none;
    height: auto;
}
#portfolio-filter ul:hover ~ ul {
    z-index: -1;
}

#portfolio-filter ul li {
    display: block;
    padding: 15px 50px;
}
#portfolio-filter ul li.active-filter{
    position: relative;
    border-bottom: 3px solid #282828;
}
#portfolio-filter ul li:not(.active-filter) {
    background-color: #fff;
    color: #212C42;
}
#portfolio-filter ul li.active-filter::after {
    content: url(chevron.svg);
    display: inline-block;
    margin-left: .5em;
}
#portfolio-filter ul:hover li.active-filter {
    color: #a5a5a5;
}
#portfolio-filter ul:hover li.active-filter::after {
    border-top-color: #a5a5a5;
}
#portfolio-filter ul li:not(.active-filter):hover {
    background-color: #f6f6f6;
}
#portfolio-filter .selector::after{
    content: '';
    height: 0;
    width: 0;
    border: 6px solid transparent;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-30%);
}

#resetFilters {
    text-align: center;
    cursor: pointer;
    vertical-align: top;
    padding: 15px 0;
}


#portfolio-filter + #portfolio {
    padding: 30px 7.5px;
    max-width: 1330px;
    margin-left: auto;
    margin-right: auto;
}

/*blueberry new ones*/
.tile-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}
.portfolio-info {
    color: #fff !important;
    border: 2px solid;
}
#show-more {
    cursor: pointer;
    text-align: center;
    border: 3px solid currentColor;
    padding: 10px 10px 6px;
    width: 200px;
    margin: 35px auto 0;
    font-family: temeraire, serif;
}
@media (max-width: 800px){
    #portfolio-filter,
    #portfolio-filter ul li {
        display: block;
    }
    #portfolio-filter ul > div {
        position: relative;
        max-height: 0;
    }
    #portfolio-filter ul.showFilter > div {
        display: inline-block;
        max-height: 9000px;
    }
    #portfolio-filter ul:hover > div {
        animation: none;
    }
    #resetFilters,
    #portfolio-filter ul {
        width: 100%;
    }
}
#portfolio {
    display: flex;
    flex-wrap: wrap;
}
#portfolio .post {
    padding: 20px 60px;
    width: 33.333%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
@media screen and (max-width: 1100px) {
    #portfolio .post {
        width: 50%;
    }
}
@media screen and (max-width: 800px) {
    #portfolio .post {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    #portfolio-filter #search {
        width: 100%;
    }
    #portfolio-filter ul {
        margin: 0 0 45px;
    }
    .fusion-post-content-container p::after {
        content: '…';
    }
    .fusion-post-content-container p span {
        display: none;
    }
}
@media (min-width: 801px) {
    #portfolio-filter ul {
        margin: 0 45px;
    }
}
