/* ==========================================================================
   Shared Navigation Header with Blurred Image Background
   ========================================================================== */
.navbar {
    /* Subtle dark overlay mixed over your blur floral asset graphic */
    background: linear-gradient(rgba(11, 11, 11, 0.15), rgba(11, 11, 11, 0.15)), 
                url('indexPictur/P1.jpeg') center/cover no-repeat;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    height: 120px;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(156, 175, 136, 0.2); 
}

.nav-links {
    display: flex;
    gap: 30px; 
    list-style: none;
}

.nav-links.left {
    justify-content: flex-end;
    margin-right: 40px;
}

.nav-links.right {
    justify-content: flex-start;
    margin-left: 40px;
}

.nav-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    /* Clean shadow tracking from your screenshot ensures readability over the image */
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); 
}

.nav-links a:hover {
    color: var(--pure-white);
}

.logo-container {
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Top Gallery Utility Toggle Navigation Bar
   ========================================================================== */
.gallery-utility-bar {
    background-color: var(--matte-black);
    padding: 60px 20px 20px 20px;
    text-align: center;
}

.gallery-main-title {
    font-family: var(--font-heading);
    color: var(--pure-white);
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.gallery-main-subtitle {
    font-family: 'Apple Chancery', 'Lucida Calligraphy', cursive;
    color: var(--primary-green);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* Row containing your Men vs Women filter layout switch triggers */
.gallery-filter-cluster {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-filter-toggle {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--body-text);
    padding: 12px 35px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-filter-toggle:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* High visibility active state styling rules */
.btn-filter-toggle.active-mode {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--matte-black);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(156, 175, 136, 0.25);
}

/* ==========================================================================
   Mobile Responsive Framework Handling
   ========================================================================== */
@media (max-width: 900px) {
    .navbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 30px 20px;
        justify-items: center;
    }
    .nav-links.left, .nav-links.right {
        margin: 15px 0 0 0;
        justify-content: center;
        gap: 20px;
    }
    .logo-container {
        height: 70px;
        width: 140px;
        order: -1;
    }
    .gallery-main-title {
        font-size: 2.2rem;
    }
    .gallery-filter-cluster {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-filter-toggle {
        width: 100%;
        padding: 14px;
    }
}

/* ==========================================================================
   The Masonry Portfolio Grid Matrix Setup
   ========================================================================== */
.gallery-grid-section {
    background-color: var(--matte-black);
    padding: 20px 8% 100px 8%;
}

/* Premium dynamic columns framework script tracks */
.masonry-columns-wrapper {
    column-count: 4; /* 4 columns on desktop layouts */
    column-gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual Picture Portfolio Card Item */
.gallery-portfolio-card {
    background-color: #111111;
    break-inside: avoid; /* Essential parameter stops images splitting apart across columns */
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-portfolio-card img {
    width: 100%;
    height: auto; /* Allows varied image heights to form masonry flows natively */
    display: block;
    transition: transform 0.6s ease;
}

/* High-end hover interaction overlays */
.gallery-portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(11, 11, 11, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 175, 136, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.gallery-portfolio-card:hover img {
    transform: scale(1.04); /* Smooth lens zoom on hover state */
}

.gallery-portfolio-card:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Full-Screen Image Lightbox Popup View Shroud
   ========================================================================== */
.lightbox-shroud-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.95); /* Velvet dark isolation shroud background */
    z-index: 4000; /* Highest priority layer z-index order */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 40px;
}

/* Activated view state rule */
.lightbox-shroud-backdrop.lightbox-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-zoomed-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-shroud-backdrop.lightbox-active .lightbox-zoomed-img {
    transform: scale(1); /* Smooth snap pop tracking */
}

/* Exit Button Position and Alignment Configuration */
.lightbox-close-trigger {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.lightbox-close-trigger:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   Mobile Responsive Refactor Columns
   ========================================================================== */
@media (max-width: 1100px) {
    .masonry-columns-wrapper {
        column-count: 3; /* 3 Columns on landscape pads */
    }
}

@media (max-width: 768px) {
    .gallery-grid-section {
        padding: 10px 20px 60px 20px;
    }
    .masonry-columns-wrapper {
        column-count: 2; /* 2 Columns on typical smartphones */
        column-gap: 15px;
    }
    .gallery-portfolio-card {
        margin-bottom: 15px;
    }
    .lightbox-shroud-backdrop {
        padding: 20px;
    }
    .lightbox-close-trigger {
        top: 20px;
        right: 25px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .masonry-columns-wrapper {
        column-count: 1; /* Stacks vertically 1 card wide on tiny phone displays */
    }
}

/* ==========================================================================
   Lightbox Navigation Vector Arrow Elements
   ========================================================================== */
.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 3rem;
    font-family: sans-serif;
    font-weight: 200;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 4100; /* Stacks layout arrows securely above zoomed container image layers */
}

.lightbox-nav-arrow:hover {
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

/* Explicit absolute layout margin anchor locks */
.arrow-left-trigger {
    left: 40px;
}

.arrow-right-trigger {
    right: 40px;
}

/* Mobile Responsive Vector Overrides */
@media (max-width: 768px) {
    .lightbox-nav-arrow {
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
        background-color: rgba(11, 11, 11, 0.6); /* Adds translucent background mat for mobile readability */
        border-radius: 50%;
    }
    .arrow-left-trigger {
        left: 15px;
    }
    .arrow-right-trigger {
        right: 15px;
    }
    /* Adds extra padding bounds room to protect full screen image container space */
    .lightbox-shroud-backdrop {
        padding: 40px 65px;
    }
}

/* ==========================================================================
   The Masonry Portfolio Grid Matrix Setup
   ========================================================================== */
.gallery-grid-section {
    background-color: var(--matte-black);
    padding: 20px 8% 100px 8%;
}

/* Premium dynamic columns framework script tracks */
.masonry-columns-wrapper {
    column-count: 4; /* 4 columns on desktop layouts */
    column-gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual Picture Portfolio Card Item */
.gallery-portfolio-card {
    background-color: #111111;
    break-inside: avoid; /* Essential parameter stops images splitting apart across columns */
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-portfolio-card img {
    width: 100%;
    height: auto; /* Allows varied image heights to form masonry flows natively */
    display: block;
    transition: transform 0.6s ease;
}

/* High-end hover interaction overlays */
.gallery-portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(11, 11, 11, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 175, 136, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.gallery-portfolio-card:hover img {
    transform: scale(1.04); /* Smooth lens zoom on hover state */
}

.gallery-portfolio-card:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Full-Screen Image Lightbox Popup View Shroud
   ========================================================================== */
.lightbox-shroud-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.95); /* Velvet dark isolation shroud background */
    z-index: 4000; /* Highest priority layer z-index order */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 40px;
}

/* Activated view state rule */
.lightbox-shroud-backdrop.lightbox-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-zoomed-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-shroud-backdrop.lightbox-active .lightbox-zoomed-img {
    transform: scale(1); /* Smooth snap pop tracking */
}

/* Exit Button Position and Alignment Configuration */
.lightbox-close-trigger {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.lightbox-close-trigger:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   Mobile Responsive Refactor Columns
   ========================================================================== */
@media (max-width: 1100px) {
    .masonry-columns-wrapper {
        column-count: 3; /* 3 Columns on landscape pads */
    }
}

@media (max-width: 768px) {
    .gallery-grid-section {
        padding: 10px 20px 60px 20px;
    }
    .masonry-columns-wrapper {
        column-count: 2; /* 2 Columns on typical smartphones */
        column-gap: 15px;
    }
    .gallery-portfolio-card {
        margin-bottom: 15px;
    }
    .lightbox-shroud-backdrop {
        padding: 20px;
    }
    .lightbox-close-trigger {
        top: 20px;
        right: 25px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .masonry-columns-wrapper {
        column-count: 1; /* Stacks vertically 1 card wide on tiny phone displays */
    }
}

/* ==========================================================================
   Section 4: Inline SVG Social Media Footer & Copyright Row
   ========================================================================== */
.social-footer-container {
    background-color: var(--matte-black);
    padding: 80px 20px 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-title {
    font-family: var(--font-heading);
    color: var(--pure-white);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 35px;
}

.social-icon-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icon-circle svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-green);
    transition: all 0.3s ease;
}

.social-icon-circle:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(156, 175, 136, 0.25);
}

.social-icon-circle:hover svg {
    fill: var(--matte-black);
}

.footer-divider {
    width: 80px;
    height: 1px;
    background-color: rgba(156, 175, 136, 0.3);
    margin: 0 auto 30px auto;
}

.copyright-text {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.developer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.developer-link:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   Honest placeholder for photos that couldn't be safely stored client-side
   ========================================================================== */
.gallery-portfolio-card.is-pending {
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    padding: 20px;
    text-align: center;
}

.gallery-portfolio-card.is-pending:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.gallery-pending-icon {
    font-size: 2.2rem;
    opacity: 0.35;
}

.gallery-pending-text {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* A platform turned off in System Settings — dimmed, click shows a message instead of navigating */
.social-link-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.social-link-disabled:hover svg {
    fill: var(--primary-green);
}

