/* Base styles */
body {
    color: #292524; 
    /* background-image: url('../images/bg.jpg'); #################### Uncomment to add backgroun image */
    /* background-repeat: no-repeat; /* Prevents the image from tiling */
    /* background-position: center; /* Centers the image within the container */
    /* background-size: cover; /* Stretches to cover while maintaining aspect ratio */
}

/* Hide scrollbar for gallery grid but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Lightbox Styles */
#lightbox {
    /* CHANGED: Always display as flex, but invisible */
    display: flex; 
    opacity: 0;
    visibility: hidden; /* Hides it from clicks/view but allows animation */
    pointer-events: none; /* Prevents clicking when invisible */
    
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Background */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    justify-content: center;
    align-items: center;
    
    /* CHANGED: Animation timing */
    transition: opacity 0.4s ease, visibility 0.4s ease; 
}

/* Active State */
#lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1010;
    line-height: 1;
    user-select: none;
}
    
/* Image */
#lightbox img {
    display: block;
    position: relative;
    z-index: 1005;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 4px;
    
    /* Zoom Animation */
    transform: scale(0.95);
    transition: transform 0.4s ease;
}
    
#lightbox.active img {
    transform: scale(1);
}

/* Custom File Input Styling */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}
    	
.trust {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Accordion transition */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

