@import url('https://fonts.googleapis.com/css?family=Rajdhani:400,600,700&display=swap');

body{
    background-color: #F4EBD4;
    margin: 0;
    padding: 0;
    /* text-align: center; */
}

nav{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    box-sizing: border-box;
}
h1{
    color: #80BFB9;
    font-family: 'Rajdhani', sans-serif;
    padding: 5mm;
    float: left;
}

h2{
    text-align: center;
}

#title{
    color: #80BFB9;
    font-family: 'Rajdhani', sans-serif;
    padding: 5mm;
    float: right;
}

#home{
    color: #80BFB9;
    font-family: 'Rajdhani', sans-serif;
    padding: 5mm;
    float: left;
}

#subtitle{
    color: #80BFB9;
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    text-align: center;
    font-size: 3.5vh; 
    font-weight: bold;
    margin-top: 12vh;
}

#image_list{
    text-align: center;
    font-size: 0;
    margin-top: 8vh;
   /*  width: 1500px;
    margin: 0; grid-auto-flow: inherit; */
}

#image_list img{
    /* margin: 10px; grid-auto-flow: row; */
    padding: 100px; 
    box-shadow: 0px 0px 10px rgba(0,0,0,.3);
    margin: 94px 20px 20px 20px;
    border: 5px solid; border-color: black;
    /* border-radius: 75px; */
    display: inline-block;
    opacity: 0.75;
    transition: 0.3s
    border-radius: 25px;
}

#image_list img{
   /*  border-radius: 16px; */
}

#image_list img:hover{
    border-color: white;
    opacity: 1;
}

#image_list img:click{
    /* backdrop-filter: 50%; */
    overflow: hidden;
}

#home:hover{
    /*width: 5vh;
    height: 5vh; */
    z-index: 100;
    filter: invert(1)
}

/* https://www.designcouch.com/home/why/2013/11/01/responsive-css3-lightbox-with-no-javascript/ */

.lightbox-target {
    position: fixed;
    /* text-align: center; */
    top: -100%;
    width: 100%;
    background: rgba(0,0,0,.9);
    /* overflow: -moz-hidden-unscrollable; */
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
    /* overflow: hidden; */
    /* body.noscroll{
        position:fixed;
        overflow:hidden;
    } */
    }
    
    /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */
    
.lightbox-target img {
    margin: auto;
    position: absolute;
    top: 0;
    left:14.5%;
    right:0;
    bottom: 0;
    max-height: 0%;
    max-width: 0%;
    border: 3px solid white;
    box-shadow: 0px 0px 8px rgba(0,0,0,.3);
    box-sizing: border-box;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    }
    
    /* Styles the close link, adds the slide down transition */
    
a.lightbox-close {
    display: block;
    width:50px;
    height:50px;
    box-sizing: border-box;
    background: white;
    color: black;
    text-decoration: none;
    position: absolute;
    top: -80px;
    right: 0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    }
    
    /* Provides part of the "X" to eliminate an image from the close link */
    
a.lightbox-close:before {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    -o-transform:rotate(45deg);
    transform:rotate(45deg);
    }
    
    /* Provides part of the "X" to eliminate an image from the close link */
    
a.lightbox-close:after {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(-45deg);
    -moz-transform:rotate(-45deg);
    -o-transform:rotate(-45deg);
    transform:rotate(-45deg);
    }
    
    /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */
    
.lightbox-target:target {
    opacity: 1;
    top: 0;
    bottom: 0;
    overflow: hidden; 
    }
    
.lightbox-target:target img {
    max-height: 100%;
    max-width: 100%;
    /* overflow: hidden; trying to remove scroll from lightbox to prevent glitching*/
    }
    
.lightbox-target:target a.lightbox-close {
    top: 0px;
    }
    