.effects .img {
    position: relative;
    float: left;
    width: 100%;
    overflow: hidden
}

    .effects .img:nth-child(n) {
        margin-right: 0
    }

    .effects .img:first-child {
        margin-left: 0
    }

    .effects .img:last-child {
        margin-right: 0
    }

    .effects .img img {
        display: block;
        margin: 0;
        padding: 0;
        max-width: 100%;
        height: auto
    }

.overlay {
    display: block;
    position: absolute;
    z-index: 20;
    background: rgba(0,0,0,.5);
    overflow: hidden;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s
}

#grid .overlay {
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0
}

#grid .img.hover .overlay {
    width: 100%;
    height: 100%
}

.social-media {
    list-style: none;
    display: inline-block;
    margin-left: 10px
}

.outer {
    display: table;
    position: absolute;
    height: 100%;
    width: 100%
}

.middle {
    display: table-cell;
    vertical-align: middle
}

.inner {
    margin-left: auto;
    margin-right: auto
}
