/* Reset any existing masonry styles */
.pq-masonry-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    /* Added space before button */
}

/* Remove any float or absolute positioning */
.pq-masonry-item {
    /*width: calc(33.333% - 30px) !important;*/
    width: 336px !important;
    position: relative !important;
    float: none !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.pq-portfoliobox-1 {
    width: 100%;
    height: 100%;
}

.pq-portfolio-block {
    width: 100%;
    position: relative;
}

.pq-portfolio-img {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.pq-portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.pq-portfolio-info {
    margin-top: 15px;
}

.pq-btn-container {
    margin-top: 10px;
}

/* Responsive - 2 columns on tablet */
@media (max-width: 991px) {
    .pq-masonry-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pq-masonry-item {
        width: calc(50% - 20px) !important;
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 575px) {
    .pq-masonry-inner {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .pq-masonry-item {
        width: 100% !important;
    }
}

/* Load more button container - FIXED */
.load-more-container {
    clear: both;
    width: 100%;
    text-align: center;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

/* Load more button */
#showMore {
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

#showMore.disabled {
    opacity: 0.5;
    pointer-events: none;
}

#ul300,
#ul600 {
    display: none;
}

/* Hide grid sizer */
.grid-sizer {
    display: none !important;
}

/* Section spacing */
.masonry {
    padding-bottom: 80px;
}

.pq-grid-container {
    height: auto !important;
    display: block !important;
}

.pq-masonry {
    height: auto !important;
}

.size-btn {
    width: 200px;
    height: 60px;
    border: 2px solid #e6af5d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.size-btn:hover {
    background-color: #dd5e5e;
    color: #ffffff;
}

.size-btn.active {
    background-color: #e6af5d;
    color: #fff;
}

.filters > ul:first-child {
    display: flex;
    margin-bottom: 15px;
}
.pq-filter-button-group > ul:first-child {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pq-filter-button-group > ul:first-child li {
    padding: 18px 22px;
    cursor: pointer;
    border: 1px solid #000;
    font-weight: 600;
}