
@import url('https://fonts.googleapis.com/css?family=Roboto:500&display=swap');

*{
  font-family: 'Roboto', sans-serif;
  list-style: none;
  margin:0;
  padding:0;
  box-sizing: border-box;
}

body{
  padding-top:4.8em;
  opacity: 0;
  transition: 0.5s ease-out opacity;
}

body.loaded{
  opacity:1;
}


h1,h2,h3,h4,h5,p,small{
  color:#222;
}

a{
  opacity: 1;
  transition: opacity 0.3s ease-out;
  color: #0E7FEF;
  text-decoration: none;
}

a:hover{
  opacity:0.6;
}

img{
  width:100%;
  height:auto;
  display: block;
}

nav{
  overflow: hidden;
  width: 100%;
  padding:0.35em 1.4em;
}

nav ul{
  display: flex;
  justify-content: flex-end;
}

nav ul > li{
  padding:1em;
}

nav ul li a{
  text-decoration: none;
  color:#222;
}


header{
  position: fixed;
  background:rgba(255,255,255,0.8);
  width:100%;
}

nav, section, footer{
  max-width: 960px;
  margin:auto;
}

main{
  max-width: 1280px;
  margin:auto;
}


main, footer{
  padding:0 1.4em;
}

section{
  padding:2em 1.4em;
  padding-bottom:4.8em;
}

section p{
  font-size:1.8em;
  line-height: 1.5em;
  font-weight: 500;
  margin-bottom:1em;
}


ul.grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin:-0.7em;
}


ul.grid li{
  width:100%;
  padding:0.7em;
  overflow: hidden;
}

ul.grid li .grid_wrapper{
  overflow: hidden;
}


ul.grid li img{
  cursor:pointer;
  transition: opacity 0.3s ease-out;
}

ul.grid li img:hover{
  opacity:0.6;
}

@media(min-width:640px){
  ul.grid li{
    width:calc(100%/2);
  }
}

@media(min-width:960px){
  ul.grid li{
    width:calc(100%/3);
  }
}

footer{
  padding:5.6em 1.4em 2.8em 1.4em;
  display: flex;
  justify-content: flex-end;
}



.modal{
  width:100%;
  height:100%;
  position: fixed;
  top:0;
  left:0;
  background: rgba(255,255,255,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: 0.2s ease-out opacity;
}

.modal.invisible{
  opacity: 0;
  pointer-events: none;
}
.modal img{
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@media(min-width:640px){
  .modal img{
    width:auto;
    height:auto;
  }

}



#close-modal:hover{
  opacity:0.6;
}

#close-modal{
  position: absolute;
  top:0;
  right:0;
  background: none;
  border:none;
  margin:1em;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}
