.gallery-wrapper {
    max-width: 1300px;
    margin: 0 auto 0 auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    ;
    grid-column-gap: 1.75vw;
    grid-row-gap: 1.75vw;
    position: relative;
}

.gallery-item {
    margin: 0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50%;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*------------------------------------*\
    #Lightbox
\*------------------------------------*/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    /* 🔑 forces vertical stacking */
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.caption {
    margin-top: 12px;
    color: white;
    text-align: center;
    font-size: 1rem;
}