

.filters{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filters > button{
    outline: none;
    border: none;
    color: #000;
    font-weight: 500;
}

.filters > button.active,
.filters > button:is(:hover,:active){
    background: #1c1c1c;
    color: #fff;
}



/* portfolio  */


.portfolio-list {
    display: grid;
    gap: 10px; /* Space between grid items */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Adjust the minimum size as needed */
}


.portfolio-list .portfolio-item a{
    display:flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.portfolio-list .portfolio-item a .mainImage_portfolio{
    width: 100%;
    height:300px;
    overflow: hidden;
    border-radius: 5px;
}


.portfolio-list .portfolio-item .mainImage_portfolio img{
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    cursor: pointer;
    color: #fff;
}


.portfolio-list .portfolio-item .mainImage_portfolio img:is(:hover,:active){
    transform: scale(1.1);
}


.portfolio-list .portfolio-item a > .filter_title,
.portfolio-list .portfolio-item a > .title{
    margin: 0;
    padding: 0;
}


.portfolio-list .portfolio-item a > .filter_title{
    font-size: .85rem;
    line-height: 15px;
}



@media screen and (max-width:768px){
    .portfolio-list {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-list .portfolio-item a .mainImage_portfolio{
        height: 45vmin;
    }


    .portfolio-list .portfolio-item a > .filter_title{
        font-size: .70rem;
    }

    .portfolio-list .portfolio-item a > .title{
        font-size: .95rem;
    }

    .filters > button{
        font-size: .70rem;
    }
}




/* portfolio page */

#portfolio-photos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Space between grid items */
}

#portfolio-photos > div{
    width: 100%;
    max-width: 400px;
    padding: 0 10px;
}

#portfolio-photos div a > img{
    width: 100%;
    color: #fff;
}


#portfolio-pagination,
#post-pagination{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#portfolio-pagination button,
#post-pagination button{
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 5px 30px;
}


/* imageModal */


.modal {
    display: none; /*Hidden by default*/
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);  /* Black background with transparency */
}

.modal .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 500px; /* Max width for the image */
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}



/* image gallery */
.image-gallery > img{
    width: 100%;
    height: 100%;
}

.image-gallery .image-gallery-two-column{
    display: grid;
    grid-template-columns: auto auto;
}


.image-gallery .image-gallery-two-column > img{
    width: 100%;
    height: 100%;
}


.feeds > iframe{
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100%;
}