@charset "utf-8";

a {
  text-decoration: none;
}

img {
  vertical-align: bottom;
}

h1 {
  margin: 0;
}

h1 {
  position: relative;
  transition: color .3s;
}
h1:hover {
  color: rgba(255, 255, 255, 0.6);
}
h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: orange;
  transition: all .3s;
  transform: scale(0, 1);
  transform-origin: center top;
}

h1:hover::after {
  transform: scale(1, 1);
}

header {
  background: #363636;
  padding: 0;
}
header .container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: normal;
  color: #e7e7e7;
  font-size: 26px;
}

.gallery{
columns: 4;
padding:0 15px;
}

.gallery li {
    margin-bottom: 20px;
}

.gallery img{
  width:100%;
  height:auto;
  vertical-align: bottom;
}

@media only screen and (max-width: 900px) {
  .gallery{
  columns:3;
  } 
  #g-nav ul {
    left: 25%;
  }
}

@media only screen and (max-width: 768px) {
  .gallery{
  columns: 3;
  }
  
  h1::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    border-bottom: solid 2px orange;
    transform: translateX(-50%);
    animation: orange 3s .5s linear forwards;
}

@keyframes orange {
    0%{
        width: 0%;
        
    }
    100%{
        width: 65%;
        
    }
}
}

ul{
  margin:0;
  padding: 0;
  list-style: none;
}

a{
  color: #333;
}

a:hover,
a:active{
  text-decoration: none;
}


p{
  margin:0 10px 10px 10px;
  word-wrap : break-word;
}

.flipLeft{
animation-name: flipLeft;
animation-duration:0.5s;
animation-fill-mode:forwards;
perspective-origin: left center;
opacity: 0;
}

@keyframes flipLeft{
  from {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
    opacity: 0;
  }

  to {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
    opacity: 1;
  }

}

footer {
  padding: 20px 0;
  text-align: center;
  color: #aaa;
  background: #363636;
  position: sticky;
  top: 100vh;
  width: 100%;
}