body {
    background-color: #04052e;
    font-family: 'Autumn in September';
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    color: #ead7d1;
    font-size: 4vh;
    height: 12vh;
    padding-top: 4vh;
}

/* Griglia per le gallerie */
.gallery-list {
    display: grid;
    gap: 18px; /* Spaziatura tra le gallerie */
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); /* Griglia responsiva */
    justify-items: center; /* Centra le card nella griglia */
    padding: 18px;
}

.gallery-card {
    background-color: #ead7d1;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    padding: 9px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 210px; /* Dimensione fissa per ogni card */
}

.gallery-card:hover {
    transform: scale(1.08); /* Effetto hover */
}

.gallery-card img {
    height: 120px; /* Altezza fissa per le immagini */
    margin-bottom: 9px;
    object-fit: contain;
    width: 100%;
}

.gallery-card a {
    color: #af3e4d;
    font-size: 3vh;
    font-weight: bold;
    text-decoration: none;
}

@media screen and (orientation:portrait) {
    .swiper-button-prev, .swiper-button-next {
        color: #0ff4c6;
        display: inline-block;
        margin-top: 23.5vh;
        transform: translate(0, -50%);
    }

    .swiper-button-prev {
        margin-left: 1%;
    }

    .swiper-button-next {
        margin-right: 1%;
    }

    .swiper-button-prev:hover, .swiper-button-next:hover {
        color: #f4e409;
    }

    .swiper-slide img {
        height: 18vh;
        background: #ead7d1;
        border-radius: 7px;
        padding: 3%;
        margin-bottom; 1.5vh;
        margin-top: 1.5vh;
        object-fit: contain;
	width: 100%;
    }

}

@media screen and (orientation:landscape) {
    .swiper-button-prev, .swiper-button-next {
        color: #0ff4c6;
        display: inline-block;
        padding-bottom: 0.5vh;
        transform: translate(0, -50%);
    }

    .swiper-button-prev {
        margin-left: 3%;
    }

    .swiper-button-next {
        margin-right: 3%;
    }

    .swiper-button-prev:hover, .swiper-button-next:hover {
        color: #f4e409;
    }

    .swiper-slide img {
        height: 18vh;
        background: #ead7d1;
        border-radius: 7px;
        padding: 3%;
        margin-bottom; 1.5vh;
        margin-top: 1.5vh;
        object-fit: contain;
    }

    .main-content-gallery {
	 height: 94vh;
    }
}

.main-content-gallery {
    height: 94vh;
    overflow: hidden;
}

.main-swiper img {
    height: 60vh;
    border-radius: 9px;
    margin-bottom; 0vh;
    margin-top: 0vh;
    max-width: 81%;
    object-fit: contain;
}
