
html {
   box-sizing: border-box;
}

*, *:before, *:after {
   box-sizing: inherit;
}


body {
	background-color: rgb(200, 200, 200);
	font: 1.2em/1.3 Helvetica, Arial, Verdana, sans-serif;
	margin: 1em 3%;	
	

    display: flex;	
    justify-content: center;
}


.container {
	max-width: 1400px;
}


h1 {
	font-size: 2em;
	line-height: 1;
}
p {
	margin-bottom: .8em;
}

figure {
	margin: 0;
	padding: 0;
}

img {
	max-width: 100%;
}


.thumbnail-grid ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}
	
/*.thumbnail-grid li {
	margin-right: 1.33%;
	width: 24%;
}

.thumbnail-grid li:nth-child(4n) {
  margin-right: 0;
}
*/
	
.thumbnail-grid li {
	width: 24%;
}


.thumbnail-grid .description {
	font-size: .85em;
	position: relative;
	padding-right: 0%;
}

.thumbnail-grid .price {
    position: absolute;
    right: 0;
    top: 0;
	text-align: right;
	width: 25%;
}


.thumbnail-grid .thumbnail {
	position: relative;	
}

.thumbnail-grid img {
    display: block; 
    margin-bottom: .3em;
}

.overlay {

	background-color: rgba( 200, 10, 10, .4);
	width: 100%;
	height: 100%;
	position: absolute;
	opacity: 0;
	
	color: white;
	font-weight: bold;
	font-size: 200%;
	padding-top: 40%;
	text-align: center;
}

.overlay:hover {
    opacity: 1;
}
.thumbnail-grid .overlay {
    transition: 1s all;
}
	

header {
	padding: 2em 0;
}

footer {
	border-top: 1px solid rgba(200,200,200,.5);
	padding: 1em 0;
}



.alignright {
	float: right;
	margin-left: 1.5em;
}
.alignleft {
	float: left;
	margin-right: 1.5em;
}


a:link, a:visited {
	color: black;
	text-decoration: none;
}

a:hover, a:active {
	color: gray;
	text-decoration: underline;
}

