.preview
{
    width: 320px;
    height: 180px;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.preview p
{
    font-size: xx-large;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: -1px 0px 50px black, 1px 0px 50px black, 0px -1px 50px black, 0px 1px 50px black
}

.square-box{
    position: relative;
    width: 50%;
    overflow: hidden;
    background: #4679BD;
    float: left;
    filter: grayscale(25%);
    
    transform: scale(1);
    filter:opacity(100%);
    
    -webkit-transition-property: filter, transform; /* Safari */
    -webkit-transition-duration: 0.3s; /* Safari */
    transition-property: filter, transform;
    transition-duration: 0.3s;
}

.square-box:before{
    content: "";
    display: block;
    padding-top: 56%;
}

.square-box:hover{
    transform: scale(1);
    filter:opacity(100%);
}

.square-content{
    background-color: black;
    position:  absolute;
    /*top: 0;*/
    left: 0;
    bottom: 0;
    right: 0;
    height: auto;
    max-height: 60px;
    
    -webkit-transition-property: max-height; /* Safari */
    -webkit-transition-duration: 0.3s; /* Safari */
    transition-property: max-height;
    transition-duration: 0.3s;
}

.square-box:hover .square-content{
    max-height: 60px;
}

.square-content div {
   display: table;
   width: 100%;
   height: 100%;
}
.square-content span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;

    font-size: large;
    font-weight: bold;
    color: #FFF;
    text-shadow: -1px 0px 25px black, 1px 0px 25px black, 0px -1px 25px black, 0px 1px 25px black
}

/* For mobile phones: */

/* For tablets: */
@media only screen and (min-width: 600px) {
    .square-box{
        width: 33.333%;
    }
}

/* For desktop: */
@media only screen and (min-width: 800px) {
    .square-box{
        width: 25%;
    }

    .square-box .square-content{
        max-height: 0px;
    }
}
