﻿/* ============ HERO ============ */
.portfolio-hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: #000;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .portfolio-hero h1 {
        font-size: 3.2rem;
        letter-spacing: 0.6px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .portfolio-hero p {
        color: #ccc;
        max-width: 600px;
        margin: 0 auto;
        font-size: 1.1rem;
        line-height: 1.6;
    }

/* ===== GRID REFINEMENT ===== */
.portfolio-container {
    background: #fff;
    color: #000;
    padding-top: 60px;
    padding-bottom: 100px;
}

.portfolio-section {
    max-width: 1600px;
    margin: 0 auto 100px;
    padding: 0 30px;
}

.client-name {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.04em;
}

/* Even-height elegant grid */
.portfolio-grid {
    display: grid;
    /*/grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));*/
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.portfolio-img {
    width: 100%;
    height: 330px; /* Consistent look for 2:3 */
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-img:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

/* ============ MODAL (Step 2 polish later) ============ */
.portfolio-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.pm-body {
    position: relative;
    width: 100%;
    max-width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .pm-body img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: opacity 0.4s ease;
    }

    
.pm-close, .pm-prev, .pm-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 3100;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .pm-close:hover, .pm-prev:hover, .pm-next:hover {
        opacity: 1;
    }

.pm-close {
    top: 20px;
    right: 30px;
    font-size: 2.8rem;
}

.pm-prev, .pm-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 0 10px;
}

.pm-prev {
    left: 40px;
}

.pm-next {
    right: 40px;
}

@media (max-width:768px) {
    .pm-prev, .pm-next {
        font-size: 2.4rem;
        left: 20px;
        right: 20px;
    }
}

/* fix iPhone zig zag bug*/
