body{
    margin:0px;
    padding:0px;

}

@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 1s;
}

main{
    background-size: auto,cover;
    background-repeat: repeat, no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height:100vh;
}

main>img{
    max-height: 95vh;
    max-width: 90vw;
    box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, 0.20);
}

nav{
    display:flex;
    padding-left: 10px;
    background-image: url("texture.jpg");
}


@media only screen and (min-width: 800px) {
    nav{
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	flex-direction: column;
	float: right;
	width:8vw;
	height:100vh;
    }
       #caption{
	   bottom:8vh;}
       a>img{max-width:100%}

}

@media only screen and (max-width: 800px) {
    nav{
	position:absolute;
	bottom:0px;
	overflow-y:hidden;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	flex-direction: row;
	float: none;
	width:100vw;
	height:15vh;}
    nav>a, nav>div{
	max-height:100%;
    }
    nav>div{
	min-width: 12em;
    }
    a>img{
	max-height:100%
    }
    nav>div{
	overflow-y:scroll
    }
    #caption{
	bottom:16vh;
    }
}


nav>div{
    scroll-snap-align: start;
    scroll-margin:2em;
}

nav>a{
    scroll-snap-align: start;
    scroll-margin:2em;
    max-width:200px;
    margin:3px;
    display:block;
}

a>img{
    box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.20);
    border: 1px solid black;
    display:inline-block;
}

nav>a:active{
    border:none
}

a>img:hover{
    border:1px solid white;
}

#caption{
    text-align: right;
    position:absolute;
    right:8.3vw;
    color:white;
    font-size:2.5vh;
    padding:1vh 5vw 1vh 10vw;
    font-family: sans-serif;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.1) 93%, rgba(0, 0, 0, 0));
}

#caption:hover{
    opacity:0%;
}

#caption, #caption h2, #caption p {
    padding-top:0;
    margin-top: 0;
    padding-bottom:0;
    margin-bottom: 0;
}

#caption h2{
    font-size:5vh;     
}

#caption time{
    display:block;
    font-size:1rem;
    opacity: 0.5;
}


#about{
   position:absolute;
   bottom:0;
   left:0;
   background: #222;
   color: white;
   z-index:99;
}

#about a{
    color:white;
} 

.h-card{
    text-align:center
}

.location{
    color:#444
}

.h-card ul{
    list-style-type: none;
    margin:0px ;
    padding:0px ;
}


.h-card h1{ font-size:1rem;}


