 
.gallery {
 
}

.gallery-item {
    cursor: pointer; 
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
.hidden {
    display: none !important;
}

#lightbox-modal {
    position: fixed; /* Fixed position covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark, semi-transparent overlay */
    z-index: 1000;
    
    /* Center content using Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    top: 10%;   
    max-width: 100%;
    max-height: 100%;
    position: relative; /* For caption positioning */
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Limit image height to prevent overflow */
    margin: 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none; /* Allows clicks to go through to close the modal */
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#close-btn:hover,
#close-btn:focus {
    color: #bbb;
    text-decoration: none;
}