/* Lock background scroll */
body.modal-open {
    overflow: hidden;
}

    /* Hide Bootstrap navbar when modal/lightbox is open */
    body.modal-open .navbar {
        display: none !important;
    }

h2 {
    text-align: center;
}

/* Albums */
.albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.album {
    background: white;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    /*box-shadow: 5px 5px 10px #9d9191;*/
}

    .album img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .album p {
        text-align: center;
        padding: 10px;
        font-weight: bold;
    }

/* Album Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    padding: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 15px;
}

    .gallery-grid img {
        width: 100%;
        cursor: pointer;
        border-radius: 6px;
        transition: transform 0.2s;
    }

        .gallery-grid img:hover {
            transform: scale(1.05);
        }
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .lightbox img {
        max-width: 80%;
        max-height: 80%;
        z-index: 1;
    }

/* Controls */
.close1 {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 55px;
    color: white;
    cursor: pointer;
    z-index: 5;
}

.nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 5;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}