/* --- Container configuration ---------------------------------------------------------- */
.viewport {
    border: 8px solid #eee;
    height: 94px;
    margin: 7px 6px;
    overflow: hidden;
    position: relative;
    width: 140px;
    -webkit-box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow:    0px 5px 10px 0px rgba(0, 0, 0, 0.75);
    box-shadow:         0px 5px 10px 0px rgba(0, 0, 0, 0.75);
    float: left;
}

/* This is so that the 2nd thumbnail in each row fits snugly. You will want to add a similar
   class to the last thumbnail in each row to get rid of the margin-right. */
.no-margin {
    margin-right: 0;
}

/* --- Link configuration that contains the image and label ----------------------------- */
.viewport a {
    display: block;
    position: relative;
}

.viewport a img {
    height: 94px;
    left: 0px;
    position: relative;
    top: 0px;
    width: 140px;
}

/* --- Label configuration -------------------------------------------------------------- */
.viewport a span {
    display: none;
    font-size: 2em;
    font-weight: bold;
    height: 75%;
    padding-top: 30px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    width: 100%;
    z-index: 100;
}

.viewport a span img{
     width: 30px;
     height: 30px;
}
    .viewport a span em {
        display: block;
        font-size: 0.5em;
        font-weight: normal;
    }

/* --- Dark hover background ------------------------------------------------------------ */
.dark-background {
    background-color: rgba(15, 15, 15, 0.6);
    color: #fff;
    text-shadow: #000 0px 0px 20px;
}
    .dark-background em {
        color: #ccc;
    }

/**
 * You could create multiple hover background classes for different looks depending on the
 * image type. Use your imagination!
 */