.tp-portfolio-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 50px 20px;
}
.tp-modal-content {
    position: relative;
    background: #fff;
    max-width: 900px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin: auto;
}
.tp-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #000;
    transition: 0.3s;
}

.tp-modal-close:hover {
    color: #ff3b3b;
}
.tp-portfolio-thumb { position: relative; overflow: hidden; }
.tp-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); opacity: 0; transition: .3s; }
.tp-portfolio-thumb:hover .tp-overlay { opacity: 1; }
.tp-portfolio-popup { background:#fff; border:none; padding:10px 20px; cursor:pointer; font-weight:600; }
.grid { display:flex; flex-wrap:wrap; gap:20px; }
.grid .col { width: calc(33.333% - 20px); box-sizing:border-box; }
@media (max-width:768px){ .grid .col { width: calc(50% - 20px); } }
@media (max-width:480px){ .grid .col { width: 100%; } }








