body {
}

.gallery-section{
  width: 100%;
  padding: 90px 0;
}

.inner-width{
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.gallery-section h1{
  text-align: center;
  text-transform: uppercase;
  color: white;
}

.border{
  width: 180px;
  height: 4px;
  background: #333;
  margin: 60px auto;
}

.gallery-section .gallery{
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.gallery-section .image{
  flex: 25%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-section .image img{
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

.gallery-section .image:hover img{
  transform: scale(1.4) rotate(15deg);
}

@media screen and (max-width:960px) {
  .gallery-section .image{
    flex: 33.33%;
  }
}


@media screen and (max-width:768px ) {
  .gallery-section .image{
    flex: 50%;
    top: 10%;  
  }
}


@media screen and (max-width:768px ) {
  .gallery-section{
    flex: 50%;
   padding-top: 5em;  
  }
}

@media screen and (max-width:411px) {
  .gallery-section .image{
     height:8%;
    top: 40%;
    width:100%;
  }
}

@media screen and (max-width:480px) {
  .gallery-section .image{
    flex: 100%;    
  }
}