html{
    margin: 0;
    padding: 0;
}

header{
    margin:0;
    padding:0;
    
}

#title {
    padding-left: 40px;
    padding-top: 5px;
    background-color: white; 
    z-index: 100;
    display: block;
    overflow: hidden;
    position: fixed;
    width: 100%;
    max-height: 40px;
    
}

#title li {
    font-family:serif;
    font-size:20px;
    display:inline-block;
    padding-right: 135px;   
   
}

#title a{
    color: black;
    text-decoration: none;
    
}

#title a:hover{
    
    color: black;
    font-style: italic;
}


body{
    margin:0;
    padding: 0;
}

.u-max-full-width {
    width: 100vw;
    margin: 0;
    padding: 0;
}

#menu {
    padding-left: 20px;
    padding-top: 50px;
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top:0;
    
         
}

#menu li {
    list-style: none;
    font-family:serif;
    display:inline-block;
    padding-right: 100px;

  
}

#menu p{
    line-height: 10%;
    font-size: 20px;
}

#menu h5{
    font-size:20px;
    
}

#menu a{
    text-decoration:none;
    color: black;
    
     }

#menu a:hover{
    color: black;
    text-decoration: underline;
    font-style: normal;
}


#menu a:active{
    text-decoration: underline;
}



#griglia{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    margin-top: 40px;
    grid-gap: 40px;
    
}  

.thumbnail {
    width: 430px;
    height: 430px;
    
}

.thumbnail img {
   width: 100%;
    height: auto;
    position: relative;
    opacity: 1;
    z-index: 10;
    padding-left: 38px;
    
    
    
}

.thumbnail img:hover{
    opacity: 0;
    transition: 0s;
    }


.thumbnail p{
    width: 470px;
    position: relative;
    top: -215px;
    font-family: serif;
    font-size: 16px;
    text-align: center;
    
}

.thumbnail a{
color: black;
    text-decoration: none;
}


#bio {
    margin: 0;
    padding-top: 100px;
    padding-left: 40px;
}

#bio p{
    font-family: serif;
    font-size: 20px;
    max-width: 600px;

    
}

#bio a{
    
    text-decoration: none;
        color:black;
    }
#bio a:hover{
    text-decoration: none;
}

    .img-container{
    position: relative;
}


.img-container img{
    width: 450px;
    object-fit: cover;
    object-position: center;
    opacity:0;
    position: absolute;
    z-index: -1;
    padding-left: 40px;
    
}

.img-container img.next{
    opacity: 1;
    z-index: 1;

}

.img-container img.prev{
    opacity: 1;
    z-index: 1;
    
}

.img-container img.fade-out{
    opacity: 0;
    transition: visibility 0s, opacity 0s linear;
    visibility: hidden;
}

#images{
    width: 430px;
    
}
#images img{
    max-width: 430px;
    padding-left: 40px;
    padding-top: 40px;
}

#text {
    padding-top: 40px;
    padding-left: 40px;
    max-width:600px;
    
}

#text p{
   font-family: serif;
    font-size: 20px;


}

#text p a{
    text-decoration: none;
    color: black;
}

@media only screen and (max-width: 900px){
    
    #title{
    padding-left: 10px;
    background-color: white; 
    z-index: 100;
    display: block;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 40px;
    }    
   /* 
    #teltitle ul{
        display: block;
        position: fixed;

    }
    */
    
    #title li {
    font-family:serif;
    font-size:20px;
    display:inline-block;
    padding-right: 5px; 
    padding-left: 10px;    
    }

    #griglia{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    margin-top: 40px;
    grid-gap: 40px;
    
    
}  
    
    .thumbnail {
    width: 380px;
    height: 380px;  
    
}
    
    .thumbnail img {
   width: 100%;
    height: auto;
    position: relative;
    opacity: 1;
    z-index: 10;

    }
    
    .thumbnail p{
    width: 380px;
    position: relative;
    top: -215px;
    font-family: serif;
    font-size: 16px;
    text-align: center;
    
}
    
    
    