@charset "utf-8";


/* This contains the entire grid. */
#gridContainer{
	padding: 8px;
	text-align: center;
	margin: 0px auto;
	max-width: 100%;
	position: relative;
	animation: moveGridLeft 0.4s;
}
/* This animation lets the gridContainer slide in from the left. */
@keyframes moveGridLeft{
	from{
		left: -25px;
		opacity: 0;
	}
	to{
		left: 0;
		opacity: 1;
	}
}






/* This div holds the clicked gridItem. It is empty and hidden until a gridItem is selected. */
#openGridItemContainer{
	display: none;
	text-align: center;
	position: relative;
	animation: moveGridRight 0.4s;
}
/* This animation lets a clicked gridItem slide in from the right. */
@keyframes moveGridRight{
	from{
		right: -25px;
		opacity: 0;
	}
	to{
		right: 0;
		opacity: 1;
	}
}






/* 
This is an individual item in the grid.
You can adjust the width of the gridItems for the grid view. Allow for a little margin. So if you want three items displayed in each row, set the width to 30%. If you want two in each row, set the width to 44%. You might have to try a few different values.
There is a media query to adjust the above for narrow screens, so make sure to update the width there as you see fit.
 */

.gridItem{
	max-width: 30%;
	display: inline-block;
	margin: 0px auto 10px auto;
	padding: 10px;
	vertical-align: top;
	cursor: pointer;
	border: 1px solid #ffffff;
}
@media screen and (max-width: 700px){
	.gridItem{
		max-width: 44%;
    }
}

.gridItem:hover{
	border: 1px solid #696969;
}

/*This affects a gridItem only when it is clicked open within the openGridItemContainer. Some styles need to be altered because the gridItem not a clickable element when opened, for example the cursor hover effect.*/
#openGridItemContainer .gridItem{
	max-width: 98%;	
	cursor: default;
	border: 1px solid #696969;
}





.gridItem img{
	max-width: 95%;
}





/* If you have content in a gridItem that you only want displayed when the item is opened, place it in a div with this class. */
.gridItemDescription{
	display: none;
	text-align: left;
	line-height: 1.5;
}





/* This is the header on top of the gridItems inviting visitors to select an image. It is hidden when an image is selected. */
#gridGalleryHeader{
	display: block;
	margin: 10px auto 20px auto;
	color: #696969;
	text-align: center;
	font-size: 28px;
	line-height: 1.1;
}





/* This button is displayed only when a gridItem is open. */
.backToGridButton{
	cursor: pointer;
	background-color: #517a92;
	color: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	text-align: center;
	font-size: 15px;
	line-height: 1.1;
	width: 30%;
	margin: 10px auto;
	border-radius: 20px;
	padding: 6px 8px 6px 8px;
}
@media screen and (max-width: 720px){
    .gridGalleryHeader, .backToGridButton{
		width: 80%;
		margin: 10px auto 20px auto;
    }
}

.backToGridButton:hover{
	background-color: #4192e0;
}

/* This contains the back arrow in the backToGridButton. */
.leftArrow {
	float: left;
}