.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
	margin: 0 auto;

}


body{
	font-family:Verdana, sans-serif;
}

h1,h2,h3,h4{
	font-family:Georgia, serif;
}

/*style a few links */
.box a{
	color:#212020;
	text-decoration:none;
}
.box a:hover{
	text-decoration:underline;
}

/* position the content */
.wrapper{
	margin:0 auto;
	width: 960px;
	padding:0 10px;
}

/* style the header and footer */
#footer, #header{
	padding: 10px;
	text-align:center;
	width:100%;
}


.box {
	float: left;
	margin: 5px;
	padding: 10px;
	width: 285px;
	height: 480px;
	border: 1px solid grey;
	background-color: white;
}


.box img{
	width: 100%; /* alternatively set the image width in your HTML */
	height: auto;
}

.box h3, .box p{
	text-align:center;
}

@media screen and (max-width: 980px){
	.wrapper{
		width:640px;
	}
	.grid {
		grid-template-columns: repeat(2, 1fr);
		grid-column-gap: 5px;
		margin: 0 auto;
	}
}
@media screen and (max-width: 640px){
	.wrapper{
		width:360px;
	}
	.grid {
		grid-template-columns: 1fr;
		width: 100%;
	}
	.box {
		width: 100%; /* Make the box take up full width */
		max-width: 320px; /* Constrain the box width to match the wrapper */
		margin: 0 auto; /* Center the box horizontally */
	}
}

h1, h2, h3, h4, p {
	word-wrap:break-word;
}

#header {
	padding:0;
}


#content {
	float: left;
	width: 100%;
	background-color: #F0ECEC;
	display: flow-root;
}
