body.gallery-body { 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));  /* Visualizza 1 o più colonne, ogni colonna ha larghezza minima di 300px */
    gap: 20px; /* Spaziatura tra le immagini */
    padding: 20px;
    margin-top: 70px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.gallery-item:hover img {
    filter: brightness(60%);
    cursor: pointer;
}

/* FULL SCREEN IMAGES */

.full-screen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 39, 39, 0.85); /* Sfondo con trasparenza */
}

.full-screen-gallery img {
    max-width: 85%; /* Larghezza massima dell'immagine */
    max-height: 85vh; /* Altezza massima dell'immagine */
    display: block;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 4%;
    right: 2%;
    color: white;
    font-size: 5em;
    cursor: pointer;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.image-description {
    color: white;
    text-align: center;
    margin-top: 10px;
}


@media (max-width: 730px) {    
    .full-screen-gallery img {
        max-width: 70%; /* Larghezza massima dell'immagine */
        max-height: 75vh; /* Altezza massima dell'immagine */
    }

    .close {
        top: 20%;
        right: 2.8%;
        font-size: 6em;
    }

    .prev, .next {
        top: 45%;
    }
}
