* {
    padding: 0;
    margin: 0;
}

.main {
    position: relative;
    height: 100%;
    width: 100%;
}

.main h1 {
    position: relative;
    height: auto;
    width: 550px;
    left: 50%;
    transform: translateX(-50%);
    margin: 5% 0 2% 0;
    text-align: center;
    font-size: 2.8em;
    font-weight: 650;
    letter-spacing: 1.5px;
    color: #017bf5;
    border-left: 5px solid #017bf5;
    border-right: 5px solid #017bf5;
    background: rgba(0, 0, 0, 0.05);
}

.main p {
    position: relative;
    height: auto;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 1.5em;
    letter-spacing: 1px;
    color: #777;
}

.main .gallery {
    position: relative;
    height: auto;
    width: 90%;
    margin: auto;
    padding: 45px 0;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 2vh;
    grid-auto-flow: dense;
}

.main .gallery .img {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.9);
    border-radius: 5px;
}

.main .gallery .img:first-child {
    grid-column-start: span 2;
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(2n+3) {
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(4n+5) {
    grid-column-start: span 2;
    grid-row-start: span 2;
}

.main .gallery .img:nth-child(6n+7) {
    grid-row-start: span 1;
}

.main .gallery .img:nth-child(8n+9) {
    grid-column-start: span 1;
    grid-row-start: span 1;
}

.main .gallery .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* filter: brightness(0.5) grayscale(0.5); */
    transition: 0.4s ease-in-out;
}

.main .gallery .img:hover img {
    /* filter: brightness(1) grayscale(0); */
    transform: scale(1.1);
}



/* Responsive  */
@media screen and (max-width:1200px) {

    /* main text section  */
    .main-sec {
        margin-top: 130px;
        margin-bottom: 30px;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width:991px) {

    /* main text section  */
    .main-sec {
        margin-top: 120px;
        margin-bottom: 30px;
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width:768px) {
    .main h1 {
        font-size: 1.8em;
        width: 400px;
    }

    .main p {
        font-size: 1.8em;
        width: 400px;
    }

    .main .gallery {
        display: grid;
        grid-template-columns: auto auto auto;
    }
}

@media screen and (max-width:766px) {

    /* main text section  */
    .main-sec {
        margin-top: 100px;
        margin-bottom: 5px;
        width: 100%;
        height: 100%;
    }

    /*End main text section  */

}

@media screen and (max-width:576px) {

    /* main text section  */
    .main-sec {
        margin-top: 100px;
        margin-bottom: 5px;
        width: 100%;
        height: 100%;
    }

    /*End main text section  */

}

/* @media only screen and (max-width:430px) {
    .main h1 {
        font-size: 1.2em;
        width: 300px;
    }

    .main p {
        font-size: 0.89em;
    }

    .main .gallery {
        display: block;
    }

    .main .gallery .img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 2% 0;
    }

    .main .gallery .img img {
        display: block;
        filter: brightness(1) grayscale(0);
    }
} */