
        #waterfall {
            margin: 10px;
            overflow: hidden;
        }

        #waterfall.min {
            margin: 0;
        }

        #waterfall li {
            /*position: absolute;*/
            left: 0;
            top: 0;
            opacity: 0;
            z-index: 0;
            transform: translateY(100px);
        }

        #waterfall li:hover {
            z-index: 1;
        }

        #waterfall li.show {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.3s, top 1s;
        }

        #waterfall li>div {
            color: rgba(0, 0, 0, 0.6);
            font-size: 32px;
            border-radius: 3px;
            margin: 10px;
            padding: 15px;
            background: rgb(255, 255, 255);
            border: 1px solid rgba(038, 191, 64, 0);
            transition: all 0.5s;
              cursor: pointer;
        }

        #waterfall li>div:hover {
            transform: translateY(-10px);
            border: 1px solid rgba(038, 191, 64, 1);
            box-shadow: 0 30px 80px rgba(038, 191, 64, 0.3);
            transition: all 0.3s;
        }

        #waterfall li.min>div {
            margin: 0;
            transform: none;
            border: none;
            border-radius: 0;
            box-shadow: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        #waterfall li.min>div:hover {
            transform: none;
            border: none;
            border-radius: 0;
            box-shadow: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  
  	/*custom*/
  	text-align: center;
    padding: 5%;
}
/*custom*/
.modal img{
  	max-width: 100%;
    max-height: 100%;
    border: 20px solid white;
}

/* The Close Button */
.close {
   position: absolute;
    margin-left: -18px;
    margin-top: -13px;
    background-color: white;
    border-radius: 50px;
    height: 30px;
    width: 30px;
    font-weight: 700;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}