* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #265aa6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #FFFFFF;
}

.contentPhotoGallery {
    min-height: 100vh; /* Assicura che il contenuto copra l'intera altezza */
    box-sizing: border-box; /* Include padding e bordo nell'altezza totale */
    padding-top: 110px;
    padding-bottom: 60px; /* Spazio per il footer */
    margin-left: 10px; /* margine generico */

    /* posizione area principale */
    position: absolute;
    left: 0px;
    /*
    top: 25%;
    overflow: hidden;*/
}

.photoGallery-container {
    margin-top: 100px;
    /* max-width: 800px; */
    width: 800px;
    padding: 2px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: auto;

    /* border: 5px solid;
    border-color: #265aa6;
    border-radius: 5vh; */
    /*box-shadow: 0 20px 40px rgba(0,0,0,0.3); */
}

.photoGallery {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    /* border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); */
    border: 5px solid;
    border-color: #265aa6;
    border-radius: 5vh;
    /* gap: 10px; */                            /* spazio tra le immagini */
    /* overflow-x: auto; */                     /* scroll orizzontale */
    /* scrollbar-width: thin; */                /* stile scrollbar (Firefox) */
    scroll-snap-type: x mandatory;              /* snap per una scroll più pulita (opzionale) */
}

.gallery-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /*align-items: center; */
}

.gallery-images img {
    width: 100%;
    /*height: 400px; prende altezza immagine */
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.nav-button {
    background: white;
    color: #265aa6;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(189, 236, 127, 0.4);
    border: 3px solid;
    border-color: #265aa6;
    border-radius: 2vh;
}

.nav-button:hover {
    /*background: #764ba2; */
    border: 3px solid;
    /*border-color: #764ba2; */
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.indicators {
    display: flex;
    gap: 10px;
    align-items: center;

    max-width: 95vw;
    width: 95vw;
    justify-content: space-between;
    overflow-x: auto;
    overflow-y: hidden;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.decima {
    background: #488726;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.2);
}



.auto-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* margin-top: 20px; */
}

.auto-button {
    background: #48bb78;
    color: #265aa6;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
    border: 3px solid;
    border-color: #265aa6;
    border-radius: 2vh;
}

.auto-button.stop {
    background: #f56565;
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
    border: 3px solid;
}

.auto-button:hover {
    opacity: 0.9;
    border: 3px solid;
}

.counterGallery {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    position: relative;
    top: -3vw;
    font-size: larger;
    /*-webkit-text-stroke: 1px white; */
}


@media (orientation: portrait) {
    .contentPhotoGallery {
        padding-top: 0px;
    }

    .auto-button {
        font-size: x-small;
    }
    .nav-button {
        font-size: x-small;
    }
    .counterGallery {
        font-size: medium;
        top: -8vw;
    }
    .indicator {
        width: 2px;
        height: 2px;
        /*display: none; */
    }
}

#photoGalleryTitle {
    display: block;
}

#header-placeholder {
    display: block;
}

@media (orientation: portrait) {
    .photoGallery-container {
        margin-top: 100px;
        width: 95%;
    }

    .indicators {
        width: 95vw;
        max-width: 95vw;

    }
}

@media (orientation: landscape) {

}

@media (orientation: landscape) and (max-width: 800px) {
    .contentPhotoGallery {
        padding-top: 0px;
    }

    .photoGallery-container {
        margin: 0 auto;
        width: 95%;
    }

    .counterGallery {
        top: -5vw;
    }

    .indicators {
        width: 95vw;
        max-width: 95vw;
    }

    #header-placeholder {
        display: none;
    }

    #foot-placeholder {
        display: none;
    }

    #photoGalleryTitle {
        display: none;
    }

}

@media (prefers-color-scheme: dark) {
    .photoGallery {
        border-color: #93d5f6;
    }
    .nav-button {
        background: black;
        color: #93d5f6;
        border-color: #93d5f6;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    .nav-button:disabled {
        background: #333333;
    }

    .auto-button {
        color: #93d5f6;
        border-color: #93d5f6;
    }

    .auto-button.stop {

    }
}



