*{
    padding: 0;
    margin: 0;
    font-family: "montserrat" ,sans-serif;
    box-sizing: border-box;
    background: skyblue;
}

.gallery-section{
    width: 100%;
    padding: 60px 0;
    background: #f1f1f1;
}

.inner-width{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.inner-width h1{
    text-align: center;
    text-transform: uppercase;
    color: #333;
}
.inner-width h1::before{
    content: "";
    display: block;
    margin: 10px auto;
    background: #333;
    height: 20px;
    width: 250px;
}
.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;
    border: 2px solid rgb(0, 255, 242);
}
.gallery-section .image img{
    width: 100%;
    height: 100%;
    transition: 0.4s;
}
.gallery-section .image:hover{
    /*transform: scale(1.1) rotate(5deg);*/
    border-radius: 10px;
    background: darkgrey;
}

@media screen and (max-width: 960px) {
    .gallery-section .image{
        flex: 33.33%;
    }
}

@media screen and (max-width: 768px) {
    .gallery-section .image{
        flex: 50%;
    }
}

@media screen and (max-width: 480px) {
    .gallery-section .image{
        flex: 50%;
    }
}