figure:hover {
    cursor: pointer;
    filter: opacity(90%);
}

.navbar {
    transition: top 0.3s ease;
}

.navbar-hide {
    top: -56px;
}

.welcome h2 {
    color: #494949;
}

.content {
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    margin-top: 1em;
    opacity: 0;
    transition: all 1s;
    will-change: opacity;
}

.grid-item:hover .content {
    opacity: 1;
}

.content .h4 {
    margin: .2em .5em;
    font-size: 1em;
}

.overlay-image {
    position: relative;
    width: 100%;
}

.overlay-image .image {
    display: block;
    width: 100%;
}

.overlay-image .text {
    color: #f9f9f9;
    font-size: 30px;
    line-height: 1.5em;
    text-shadow: 2px 2px 3px #4d4d4d;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /*opacity: 0.8;*/
    letter-spacing: 2px;
}

.overlay-image .text#small {
    font-size: 22px;
    text-shadow: 2px 2px 2px #4d4d4d;
}

.overlay-image .hover {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .3s ease;
    background-color: rgba(0, 0, 0, 0.3);
}

.overlay-image .hover .text#small {
    font-size: 22px;
}

.overlay-image:hover .hover {
    opacity: 1;
}

/* masonry style */
body {
    margin: 0;
    overflow-x: hidden;
}

.grid {
    display: flex;
    flex-wrap: wrap;
}

.grid::after {
    content: '';
    flex-grow: 999999999;
}

.grid > figure {
    margin: 2px;
    background-color: #ffffff;
    position: relative;
}

.grid > figure > i {
    display: block;
}

.grid > figure > a > img {
    position: absolute;
    top: 0;
    width: 100%;
    vertical-align: bottom;
}

@media (min-width: 1921px) {

    .gallery-width {
        max-width: 1900px;
    }
}
