.custom-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .custom-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 475px;
    cursor: pointer;
    border: 3px solid #57D78A;
}

.portfolio-image {
    background-size: cover;
    background-position: top center;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(87, 215, 138, 0.92);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 15%;
    margin: 0;
    color: #eaeaea;
    font-family: 'Quantico', sans-serif;
}
.portfolio-worked-on{
    font-family: "Acumin Pro" !important;
    font-weight: 300 !important; /* light */
    font-size: 18px !important;

    margin-top: 10px;
    margin-bottom: 6px;

    color: #eaeaea; /* matches your title/excerpt color on overlay */
}

.portfolio-excerpt {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: #eaeaea;
}

/* Filters row */
.portfolio-filters{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* center buttons horizontally */
    gap: 12px;

    max-width: 740px;
    margin: 0 auto 2rem auto;  /* center the whole filters block + spacing below */
}

/* Filter buttons match green-chip */
.portfolio-filter-btn{
    display: inline-flex;
    width: fit-content;
    max-width: 100%;

    border: 1px solid #57D78A;
    border-radius: 8px;

    padding: 8px 15px 6px 15px;

    /* you had margin-right on chips; since we're using flex gap, we can remove it */
    margin: 0 !important;

    text-transform: uppercase !important;
    font-family: "Acumin Pro Wide" !important;

    font-size: 16px !important;
    font-weight: 500 !important;

    background: transparent;
    color: #57D78A;

    cursor: pointer;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Mobile: match your chip mobile sizing */
@media (max-width: 767px){
    .portfolio-filter-btn{
        font-size: 14px !important;
    }
}

/* Active filter: filled green with black text */
.portfolio-filter-btn.is-active{
    background: #57D78A;
    color: #000 !important;
    border-color: #57D78A;
}

/* Optional: hover feedback (doesn't override active) */
.portfolio-filter-btn:hover:not(.is-active){
    background: rgba(87, 215, 138, 0.12);
}

.portfolio-filter-btn:focus{
    outline: none;
}

.portfolio-filter-btn:focus-visible{
    box-shadow: 0 0 0 3px rgba(87, 215, 138, 0.35);
}
