﻿/* ==========================================================================
   PROJECTS GALLERY, PAGINATION & LIGHTBOX STYLES
   ========================================================================== */
.projects-section {
    width: 100%;
    background-color: var(--bg-light, #f8f9fa);
    padding: 50px 0 80px 0;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Spacer */
.about-header-container {
    padding-top: 60px;
    padding-bottom: 30px;
    background-color: var(--navy-blue, #1d1c60);
    color: #ffffff;
    text-align: center;
}
    .about-header-container .gallery-notice {
        color: #a0a0a0; /* Muted contrast color (adjust based on your background) */
        font-size: 0.95rem;
        font-weight: 400;
        letter-spacing: 0.5px;
        margin-top: 8px;
        text-transform: uppercase;
    }
.about-page-header {
    padding-top: 60px;
    padding-bottom: 30px;
    background-color: var(--navy-blue, #1d1c60);
    color: #ffffff;
    text-align: center;
}

/* Desktop Category Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #ffffff;
    border: 2px solid var(--navy-blue, #1d1c60);
    color: var(--navy-blue, #1d1c60);
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        background-color: var(--primary-orange, #d75f1e);
        border-color: var(--primary-orange, #d75f1e);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(215, 95, 30, 0.25);
    }

/* Photo Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--navy-blue, #1d1c60);
}

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.08);
    }

/* Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 28, 96, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.category-tag {
    font-family: inherit;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
    display: block;
}

.expand-icon {
    font-size: 1.8rem;
    color: var(--primary-orange, #d75f1e);
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 45px;
}

.btn-load-more {
    background-color: var(--navy-blue, #1d1c60);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 28, 96, 0.2);
}

    .btn-load-more:hover {
        background-color: var(--primary-orange, #d75f1e);
        box-shadow: 0 6px 16px rgba(215, 95, 30, 0.35);
        transform: translateY(-2px);
    }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

    .lightbox-modal.active {
        display: flex;
    }

.lightbox-content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-category-title {
    font-family: inherit;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--primary-orange, #d75f1e);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
}

    .lightbox-close:hover {
        color: var(--primary-orange, #d75f1e);
    }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 10001;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: var(--primary-orange, #d75f1e);
    }

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (LAYOUT 2: 1-2-2-2 GRID)
   ========================================================================== */
@media (max-width: 768px) {

    /* Subpage Header Top Clearance */
    .about-page-header {
        padding-top: 110px;
        padding-bottom: 25px;
    }

    /* Structured 1-2-2-2 Filter Buttons */
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        font-size: 0.70rem;
        padding: 10px 4px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        text-align: center;
    }

        /* Row 1: ALL WORK (Full width) */
        .filter-btn[data-filter="all"] {
            flex: 0 0 100%;
            max-width: 100%;
        }

        /* Rows 2, 3, 4: Paired 50/50 split */
        .filter-btn:not([data-filter="all"]) {
            flex: 1 1 calc(50% - 8px);
        }

    /* Photo Grid & Lightbox Adjustments */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 14px;
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.75);
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}



/* ==========================================================================
   NEW PROJECTS
   ========================================================================== */
.gallery-card {
    position: relative;
    overflow: hidden;
}

/* "NEW" Stamp Badge */
.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e63946; /* High-visibility accent red/brand color */
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none; /* Allows clicks to pass through to openLightbox */
}