/* Portfolio */

.portfolio-content{
    min-height: 50vh;
}

/* Category filter (in-house, dependency-free) */
.portfolio-list .mix,
.portfolio-list .portfolio-item {
    transition: opacity 0.3s ease;
}

.portfolio-list .portfolio-item--hidden {
    display: none;
}

/* Preloader shown while the grid images load */
.portfolio-preloader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: urartu-portfolio-spin 1s linear infinite;
}

@keyframes urartu-portfolio-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.portfolio-filter {
    margin: 45px 0 0;
}

.portfolio-list{
    padding: 0;
    margin-bottom: 45px;
}

.portfolio-filter,
.portfolio-filter ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.portfolio-filter ul {
    margin: 0 0 15px;
}

.portfolio-filter li {
    background: none;
    list-style: none;
}

.portfolio-filter li a {
    color: var(--color-text);
    font-weight: 500;
    padding: 10px 0;
    margin: 0 15px 0 0;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
}

.portfolio-filter li:last-child a{
    margin-right: 0;
}

.portfolio-filter li a::after {
    position: absolute;
    content: '';
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: var(--color-second-green);
    transition: 0.2s;
}

.portfolio-filter li a:hover::after {
    left: 0;
    right: 0;
}

.portfolio-filter-item.active::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-list article {
    width: 30%;
}

/* No Portfolio */
.no-portfolio-page{
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;   
}

.no-portfolio-icon{
	font-size: 160px;
    color: rgba(0, 0, 0, 0.04);
}

.no-portfolio-title{
    position: relative;
    font-size: 24px;
    color: #777;
    font-family: Playfair-italic;
}

.portfolio-list article{
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 15px;
    width: 23.125%;
}

.portfolio-list article .entry-title{
    position: absolute;
    left: 0;
    right: 0; 
    bottom: 25px;
    display: inline-block;
    margin: 0;
    padding: 0;
    z-index: 10;
    transition: 0.2s;
}

.portfolio-list article .entry-title a{
    color: #fff;
}

.portfolio-list article::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 35, 40, 0.7);
    opacity: 0;
    z-index: 1;
    transition: 0.2s;
}

.portfolio-thumbnail{
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.portfolio-thumbnail img{
    width: 100%;
    object-position: center;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.19, -0.08, 0, 0.98);
}

.portfolio-list article:hover .portfolio-thumbnail img {
    transform: scale(1.5);
}

.portfolio-list article a{
    display: block;
    position: relative;
    margin: 0 0 0 15px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.portfolio-list article:hover h2{
    transform: translateY(-60px);
}

.portfolio-list article a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    z-index: 3;
    height: 2px;
    background: var(--color-main-green);
    transition: all 0.3s cubic-bezier(0.19, -0.08, 0, 0.98);
}

.portfolio-list article a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    z-index: 3;
    width: 2px;
    background: var(--color-main-green);
    transition: all 0.3s cubic-bezier(0.19, -0.08, 0, 0.98);
}

.portfolio-list article:hover a::before {
    width: 100%;
}

.portfolio-list article:hover a::after{
    height: 0;
}


.portfolio-description{
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;    
    margin: 0 0 0 15px;
    padding: 10px 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: 0.2s;
}

.portfolio-description-container{
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
    
.portfolio-description p{
    font-size: 10px;
    margin: 0;
}

.portfolio-list article:hover .portfolio-description{
    opacity: 1; 
    transform: translateY(-25px);
}

@media screen and (max-width: 1399px) {
    .portfolio-list article {
        width: 30%;
    }
}

@media screen and (max-width: 768px) {
    .portfolio-list article {
        width: 100%;
        max-height: 240px;
    }
    
    .portfolio-list article a{
        display: block;
        position: relative;
        margin: 0 0 0 15px;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        background: rgba(0, 0, 0, 0.4);
    }
        
}
