h2 {
    padding-top: 1em;
}

.webfolio {
    display: flex;
    justify-content: space-between;
    flex-flow: wrap;
}

.webfolio a {
    text-decoration: none!important;
}

.webfolio .project {
    background-position: top center!important;
    background-attachment: fixed;
    background-size: cover!important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 25.6vw;
    height: 14.4vw;
    margin: 0.3vw;
    box-sizing: content-box;
    transform: scale(1);
}

.webfolio a.deactivated:active {
    pointer-events: none;
}

.webfolio .deactivated {
    -webkit-filter: grayscale(100%);
    /*Safari6.0-9.0*/
    filter: grayscale(100%);
    cursor: not-allowed;
    transition: filter .2s ease-in-out;
    -webkit-transition: filter .2s ease-in-out;
    -moz-transition: filter .2s ease-in-out;
    -ms-transition: filter .2s ease-in-out;
    -o-transition: filter .2s ease-in-out;
}

.webfolio .deactivated:hover {
    -webkit-filter: grayscale(0%);
    /*Safari6.0-9.0*/
    filter: grayscale(0%);
}

.webfolio .deactivated h2 {
    text-decoration: line-through;
}

.webfolio .project:hover {
    background-position: bottom center!important;
    transform: scale(1.1);
    z-index: 2;
}

.webfolio .project h2 {
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    z-index: 4;
    transition: 0.4s opacity ease-in-out;
}

.webfolio .project:hover h2 {
    opacity: 1;
}

.webfolio .project:before {
    content: "";
    display: block;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 0vw;
    height: 0vw;
    z-index: 3;
    background: rgba(255, 255, 255, 0.00);
    transition: 0.4s all ease-in-out;
}

.webfolio .project:hover:before {
    background: rgba(80, 80, 80, 0.70);
    width: 25.6vw;
    height: 14.4vw;
}

.masonry {
    padding: 2vw 0;
}

.masonry .item {
    /* Masonry bricks or child elements */
    box-sizing: border-box;
    background-color: #F4F4F4;
    display: inline-block;
    margin: 0 0 0.5em;
    width: 100%;
    padding: 1em;
    transform: scale(1);
    transition: 0.4s all ease-in-out;
}

.masonry .item:hover {
    position: relative;
    transform: scale(1.1);
    background-color: #fff;
    z-index: 5;
}

.masonry .item img {
    /* Masonry bricks or child elements */
    max-width: 100%;
}

@media (min-width:769px) {
    #content {
        width: 100%!important;
        padding: 0!important;
    }
    .masonry {
        /* Masonry container */
        column-count: 4;
        column-gap: 1em;
    }
}

@media (max-width:768px) {
    .webfolio {
        overflow-x: hidden;
    }
    .webfolio .project,
    .webfolio .project:hover:before {
        width: 90vw;
        height: 50.625vw;
    }
    .webfolio .project h2 {
        font-size: 1.5rem;
    }
    .masonry {
        /* Masonry container */
        column-count: 2;
        column-gap: 0.5em;
    }
}