/* GRID FIX (no shifting issue) */
#portfolioGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.portfolio-item {
    width: calc(33.33% - 20px);
}

/* CARD */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
}

/* FILTER */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
   }

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
}

#lightbox img {
    max-width: 60%;
    margin-top: 5%;
}

#closeBtn, #prevBtn, #nextBtn {
    position: absolute;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

#closeBtn { top: 20px; right: 30px; }
#prevBtn { top: 50%; left: 30px; }
#nextBtn { top: 50%; right: 30px; }

/* WRAPPER */
.filter-wrapper {
    text-align: center;
    margin-top: -50px;   /* reduce top space */
    margin-bottom: 25px;
}

/* ROUND BUTTONS */
.filter-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ff7a00; /* ORANGE BORDER */
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

/* HOVER */
.filter-btn:hover {
    background: #ff7a00;
    color: #fff;
}

/* ACTIVE */
.filter-btn.active {
    background: #ff7a00;
    color: #fff;
    border-color: #ff7a00;
}

/* DIVIDER LINE */
.filter-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin-top: 20px;
    margin-bottom: 50px;
}
