/*
 * Description:  Customized Project List & Filter for Energus
 * Author:       Denny Jian (denny.jian@aumagic.com)
*/

.projects-section{
    padding: 60px 5.859vw 0;
}


.projects-section .left{
    width: 79.59459459459459%;
    float: left;
    padding-right: 90px;
}

.projects-section .project-list{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    position: relative;
    min-height: 100px;    
}

.project-list.column-desktop-3 .project-item{
    flex-basis: 33.3333%;
    width: 33.3333%;
}

.project-list .project-item{
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    padding-left: 16px;
    overflow: hidden;
    margin-bottom: 35px;  
}

.project-list .project-item:nth-child(3n+1){
	position: relative;
	left: -16px;
}

.project-list .project-item:nth-child(3n+2){
	position: relative;
	left: -8px;
}

.project-list .project-item .project-title{
    text-align: center;
}

.project-list .project-item .project-thumbnail-link{
    position: relative;
    display: block;
    width: 100%;
}

.project-list .project-item .project-thumbnail{
    position: relative;
    overflow: hidden;
    padding-bottom: calc( 0.66 * 100% );
    margin-bottom: 20px;
}

.project-list .project-item .project-thumbnail img{
    height: auto;
    position: absolute;
    top: calc(50% + 1px);
    left: calc(50% + 1px);
    -webkit-transform: scale(1.01) translate(-50%,-50%);
    -ms-transform: scale(1.01) translate(-50%,-50%);
    transform: scale(1.01) translate(-50%,-50%);
    display: block;
    width: 100%;
    max-height: none;
    max-width: none;
    -webkit-transition: -webkit-filter .3s;
    transition: -webkit-filter .3s;
    -o-transition: filter .3s;
    transition: filter .3s;
    transition: filter .3s,-webkit-filter .3s;
}

.project-list .project-item .project-title a{
    color: #1A234E;
    font-family: "Roboto", Sans-serif;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
}

.project-list .msg{
    width: 100%;
    text-align: center;
}

.projects-section .right{
    width: 20.40540540540541%;
    float: right;
}    

.projects-section #load-more{
    opacity: 0;
}

.projects-section #load-gif{
    width: 100%;
    text-align: center;
    display: none;
}  

.projects-section #load-gif img{
    width: 35px;
    height: 35px;
}

.projects-section .project-filter .cleardiv{
    display: none;
} 

.projects-section .tax-list{
    margin-bottom: 30px;
}

.projects-section .tax-list .tax-name{
    color: #1A234E;
    font-family: "Roboto", Sans-serif;
    font-weight: bold;
    font-size: 1.625rem;
    text-transform: uppercase;        
}

.projects-section .tax-list .tax-name i{
    display: none;
}

.tax-list .divider-separator{
    width: 75%;
    display: flex;
    margin: 20px auto;
    margin-left: 0;
    border-top: 5.7px solid rgb(231, 59, 31);    
}

.projects-section .tax-list ul{
    margin-left: 0;
}


.projects-section .tax-list .tax-item{
    list-style-type: none;
    margin-bottom: 15px;
} 

.projects-section .tax-list .tax-item label{
    color: #1A234E;
    font-family: "Roboto", Sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
}

.projects-section .tax-list .tax-item label:hover{
    font-weight: bold;
}   

.projects-section .tax-list .tax-item.active{
    pointer-events: none;
}

.projects-section .tax-list .tax-item.active label{
    font-weight: bold;
}

@media screen and (min-width: 2560px) {
    .projects-section{
        padding: 0 150px;
    } 

    .projects-section .left{
        padding-right: 90px;
    }
}  

@media screen and (max-width: 1920px){
    .projects-section .left{
        padding-right: 4.688vw; 
    }    
}  


/* big landscape tablets, laptops, and desktops */
@media screen and (max-width: 1024px){
    .projects-section{
        padding: 0;
    }

    .projects-section .left{
        width: 100%;
        float: none;
        padding-right: 0;
    }

    .projects-section .right{
        width: 100%;
        float: none;
    } 

    .project-list.column-tablet-2 .project-item{
        flex-basis: 50%;
        width: 50%;
    }

    .project-list .project-item:nth-child(3n+1){
		left: 0px;
	}
	
	.project-list .project-item:nth-child(3n+2){
		left: 0px;
	}	
	
	.project-list .project-item:nth-child(2n+1){
		position: relative;
		left: -16px;
	}	

    .project-list .project-item .project-title a{
        font-weight: 400;
    }

    .projects-section .tax-list{
        width: 33.3333%;
        float: left;  
        text-align: center;     
    }

    .projects-section .tax-list ul{
        display: none;
    }

    .projects-section .tax-list.show ul{
        display: block;
    }

    .projects-section .tax-list .tax-name{
        font-weight: 400;
        cursor: pointer;
    }

    .projects-section .tax-list .tax-name i{
        display: inline-block;
        margin-left: 15px;
        font-size: 20px;
        position: relative;
        bottom: 2px;
    }

    .projects-section .tax-list .tax-item label{
        font-size: 18px;
    }

    .tax-list .divider-separator{
        width: 85%;
        margin-left: auto;
    }

}    


/* mobile */
@media screen and (max-width: 768px){

    .project-list.column-mobile-1 .project-item{
        flex-basis: 100%;
        width: 100%;
    }

	.project-list .project-item:nth-child(2n+1){
		left: 0px;
	}		
	
	.project-list .project-item{
	   padding-left: 0;
	}

    .project-list .project-item .project-thumbnail{
        padding-bottom: calc( 0.5 * 100% );
    }

    .projects-section .tax-list{
        width: 50%;
        text-align: left;  
        margin-bottom: 10px;
    }

    .tax-list .divider-separator{
        width: 43%;
        margin: 10px auto;
        margin-left: 0;
    }

    .projects-section .project-filter .cleardiv{
        display: block;
    }

    .projects-section .project-filter .cleardiv:nth-child(4n+2){
        display: none;
    } 

}    



@media screen and (max-width: 480px){
    .projects-section .tax-list{
        width: 100%;
    }
    .projects-section .project-filter .cleardiv:nth-child(4n+2){
        display: block;
    } 

}    