/* Gallery Specific Styles */
#main-gallery {
    padding: 120px 20px 50px;
    background-color: rgba(0, 0, 0, 0.85);
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.gallery-header h1 {
    font-family: 'Gilroy', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #81864a;
    text-transform: uppercase;
}

.masonry-grid {
    columns: 4 300px;
    column-gap: 1.5rem;
    margin: 0 auto;
    max-width: 1300px;
}

.masonry-item {
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 25px 20px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Responsive Design */
@media (max-width: 768px) {
    .masonry-grid {
        columns: 2 200px;
    }
    
    .gallery-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }
}

/* Fix z-index hierarchy */
#nav {
    z-index: 1000; /* Navigation stays on top */
  }
  
  #cursor,
  #cursor-blur {
    z-index: 500 !important; /* Below gallery items */
    pointer-events: none !important; /* Allow clicks through */
  }
  
  .masonry-grid {
    position: relative;
    z-index: 600 !important; /* Above cursor but below nav */
  }
  
  .masonry-item {
    z-index: 1 !important; /* Base z-index for items */
    position: relative; /* Required for z-index to work */
  }
  
  .lightbox {
    z-index: 9999 !important; /* Highest priority */
  }
  
/* Add subtle hover effect instead */
.masonry-item:hover {
    outline: 7px solid #81864a55; /* Your brand color with transparency */
    transform: translateY(-3px);
  }


  /* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Changed from 0.95 to 0.9 for semi-transparency */
    backdrop-filter: blur(10px); /* Adds background blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, backdrop-filter 0.3s ease; /* Added backdrop-filter transition */
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Semi-dark background for content */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.lightbox-content img {
    max-height: 80vh;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4); /* Softer shadow */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Cinematic border */
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

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


/* Add this to your lightbox section */
.lightbox-caption {
    color: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    opacity: 0.9;
}


/* Footer Styles */
.site-footer {
    background-color: #000;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1000;
}

.footer-content {
    color: rgba(255,255,255,0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 15px 10px;
    }
    .footer-content {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}



