/* --- Container configuration ---------------------------------------------------------- */
.viewport {
    float: left;
    overflow: hidden;
    position: relative;
    width: 263px;
	border-radius: 5px;
	height: 295px;
}

.viewport.big {
    width: 556px;
}


/* 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 {
    left: 0px;
    position: relative;
    top: 0px;
    width: 263px;
	max-width: 303px;
}

.viewport.big a img {
    width: 556px;
	max-width: 596px;
}

/* --- Label configuration -------------------------------------------------------------- */
.viewport a span {
    display: none;
    font-size: 3.0em;
    font-weight: bold;
    height: 100%;
    padding-top: 120px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    width: 100%;
    z-index: 100;
	border-radius: 5px;
	text-transform: uppercase;
}
    .viewport a span em {
        display: block;
        font-size: 0.45em;
        font-weight: normal;
    }

/* --- Dark hover background ------------------------------------------------------------ */
.dark-background {
    background-color: rgba(15, 15, 15, 0.6);
    color: #fff;
}
    .dark-background em {
        color: #ccc;
    }

.margin-top {
	margin-top: 35px;
	display: block;
}

.fix-height {
	overflow: hidden;
}

@media(max-width:800px){
	
	.viewport, .viewport.big, .viewport a img, .viewport.big a img, .fix-height img {
		width: 100%;
	}
	
	.viewport.big a img {
		max-width: 1000px;
	}
	
	.col-sm-6.fix-height {
		width:100%;
		float: left;
	}
	.col-sm-3.fix-height {
		width:50%;
		float: left;
	}
	.viewport a span {
		padding-top: 30%;
	}
	
	.margin-top {
		margin-top: 30pz;
	}
	
	.fix-height {
		margin-top: 30px;
	}
	
	.clear-fix-height {
		clear: both;
	}
	
	.viewport a img {
		max-width: 600px;
	}
}

@media(max-width:600px){
	.col-sm-3.fix-height {
		width:100%;
		float: left;
	}
	
	.viewport a span {
		padding-top: 20%;
	}
}

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