

/* My Featured Work - CATEGORY GALLERIES CSS */

/* GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

/* MODAL */
.slider-modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

/* SLIDER CONTENT */

.slider-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 45px;
    color: rgb(255, 255, 255);              /* 👈 test ke liye red */
    background: rgb(131, 131, 131);      /* 👈 test ke liye */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 99999;          /* 👈 सबसे ऊपर */
}

.slider-content img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    animation: fade 0.5s ease;
}

/* ANIMATION */
@keyframes fade {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* BUTTONS */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.prev { left: 10%; }
.next { right: 10%; }

/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-content img {
        max-width: 95%;
    }
}