/* ==========================================================================
   7. PORTFOLIO / GALLERY SECTION STYLING
   ========================================================================== */
.portfolio {
    background-color: var(--bg-cream);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 350px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 51, 34, 0.92) 0%, rgba(27, 51, 34, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: background 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(27, 51, 34, 0.96) 0%, rgba(27, 51, 34, 0.55) 60%, transparent 100%);
}

.portfolio-overlay span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 600;
}

.portfolio-overlay h3 {
    color: var(--bg-white);
    font-size: 1.35rem;
}

/* LIGHTBOX POP-UP MODAL CAROUSEL STYLES */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 33, 22, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    display: block;
}

#lightboxVideo {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
    outline: none;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--bg-cream);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-btn {
    position: absolute;
    background: rgba(27, 51, 34, 0.7);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3010;
}

.lightbox-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBILE ADAPTABILITY)
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
    .lightbox-btn { background: rgba(27, 51, 34, 0.9); }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* PORTFOLIO ACCESSIBILITY & CLICK REPAIR FIX */
    .portfolio-overlay {
        pointer-events: none;
    }
}
