html,
body {
    overflow-x: hidden;
}

.box {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    box-shadow: 15px 15px 25px rgb(200, 204, 204);
    transition: 0.4s;
}

.box1 {
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    box-shadow: 15px 15px 25px rgb(200, 204, 204);
    transition: 0.4s;
}

.box:hover {
    transform: scale(1.1);
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

.box1:hover {
    transform: scale(1.1);
}

.imglist {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.imglist li {
    width: 50%;
    padding: 20px;
    display: inline-block;
}

@media (max-width: 766px) {
    .imglist li {
        width: 70%;
    }
}

@media (min-width: 768px) {
    .imglist li {
        width: 45%;
    }
}

@media (min-width: 992px) {
    .imglist li {
        width: 45%;
    }
}

.imglist li img {
    max-width: 100%;
}

.imglist.center {
    justify-content: center;
}

.container h2 {
    text-align: center;
    margin-top: 50px;
    color: #666;
}

body {
    background: #f5f5f5;
    height: 100vh;
}

.thumbnail {
    max-width: 40%;
}


/** LIGHTBOX MARKUP **/

.lightbox {
    /** Default lightbox to hidden */
    display: none;
    /** Position and style */
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox img {
    /** Pad the lightbox image */
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
}

@media (max-width: 766px) {
    .lightbox img {
        /** Pad the lightbox image */
        max-width: 90%;
        max-height: 80%;
        margin-top: 50%;
    }
}

.lightbox:target {
    /** Remove default browser outline */
    outline: none;
    /** Unhide lightbox **/
    display: block;
}

.box {
    position: relative;
    display: inline-block;
    /* Make the width of box same as image */
    transition: 0.4s;
}

.box .text {
    color: black;
    position: absolute;
    z-index: 999;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: 15%;
    /* Adjust this value to move the positioned div up and down */
    text-align: center;
    width: 60%;
    /* Set the width of the positioned div */
}