@import "compass/css3";

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gallery {
  width: 80%;
  margin-left:150px;
  padding: 5px;
  
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

.gallery > div {
  position: relative;
  float: left;
  padding: 8px;
  margin-left: 20px;
  margin-top: 40px;
}

.gallery > div > img {
  width: 300px;
  transition: .1s transform;
  transform: translateZ(0); /* hack */
}

.gallery > div:hover {
  z-index: 1;
}

.gallery > div:hover > img {
  transform: scale(1.4,1.4);
  transition: .3s transform;
}

.cf:before, .cf:after {
  display: table;
  content: "";
  line-height: 0;
}

.cf:after {
  clear: both;
}


@media only screen and (max-width:1000px){
  .gallery h1{
    margin-left: -210px;
  }
  .gallery > div{
    margin-left: -135px;
    margin-top: 41px;
}
  }
  .gallery > div:hover > img {
    transform: scale(1.3,1.3);
    transition: .3s transform;
  }