.portfolio-card.hidden {
    display: none !important;
}

#categories {
    padding-top: 100px;
    padding-bottom: 100px;
}

.filter-btn {
    margin: 0 10px 10px 0;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.grid>div {
    width: 300px;
    position: relative;
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    /* <<< THIS IS THE FIX */
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.portfolio-header {
    font-size: 65px !important;
    text-align: center;
    margin-bottom: 30px;
}