#custom-gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gallery-item {
    width: calc(33.333% - 10px); /* Subtract margins */
    margin: 5px;
    box-sizing: border-box;
}

.gallery-item:hover {
    cursor: pointer;
}

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Modify this property to 'flex' in JavaScript when activating the lightbox */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-image {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-nav {
    color: white;
    font-size: 48px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

#lightbox-prev {
    left: 10px;
}

#lightbox-next {
    right: 10px;
}

#lightbox-overlay:hover .lightbox-nav {
    color: #ccc; /* Add hover effect for better responsiveness */
}
