/*
*************************************************

United States Holocaust Memorial Museum
"Grid Listing" Responsive Screen Styles

 Author: Russ Sitka

*************************************************

/* ------------------------------------------- */
/* General layout and wrapper */
/* ------------------------------------------- */

.body-wrapper {
	background-color:#eee;
	overflow:hidden;
}

.grid-listing-template .content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1em;
}

.grid-listing-template .intro {
    width: 100%;
    padding: 0px 2em;
    margin: 0px auto 40px;
    max-width: 1400px;
}

/******** Grid styles ********/
/*****************************/

ul#ex-display-grid {
	display:flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	flex-wrap:wrap;
	justify-content:flex-start;
	width:100%;
	padding:0 1.2em;
	margin: 0 auto 50px;
	max-width: 1400px;
}

#ex-display-grid li {
	width:96%;
	list-style:none;
	border:1px solid #cecece;
	background:#fff;
	margin:0 1.3% 25px;
	box-shadow:0 0 2px #bbb;
	position:relative;
	overflow:hidden;
	padding-bottom:4.25em;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
}
.ex-details {
	width:100%;
	text-align:center;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	opacity:1.0;
}

#ex-display-grid li a{
	outline:none;
	text-decoration:none;
}

#ex-display-grid li figure {
	width:100%;
	overflow:hidden;
	position:relative;
	padding-bottom:67%;
}
#ex-display-grid li figure img {
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	width:150%;
	position:absolute;
	left:-25%;
	top:-6%;
}
#ex-display-grid li figcaption {
	padding:0 1em 0.1em;
	text-align:center;
	position:relative;
	top:0;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
}
#ex-display-grid li figcaption h2 {
	text-transform:none;
	font-size:1.25em;
	line-height:1em;
	padding:0;
}

#ex-display-grid li figcaption p {
	font-family:"Mercury SSm A","Mercury SSm B",Georgia,serif;
	color:#565656;
	font-size:0.9em;
}
#ex-display-grid li .ex-details i {
	display:inline-block;
	color:#e67700;
	font-size:1.4em;
	position:relative;
	top:2px;
}
#ex-display-grid li .ex-details span {
	color:#e67700;
	font-size:0.8em;
	display:inline-block;
}
.ex-button-box {
	width:100%;
	text-align:center;
	padding:10px 0;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
}
.ex-button-box h4 {
	text-transform:uppercase;
	letter-spacing:1px;
	font-size:0.8em;
	padding:0 0.95em 0;
	margin-bottom:0;
	line-height:1.16em;
	color:#286090;
	font-family:"Mercury SSm A","Mercury SSm B",Georgia,serif;

	background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,1)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* Standard syntax */
}
#ex-display-grid li button {
	border-radius:0;
	display:block;
	position:absolute;
	bottom:0;
	left:5%;
	max-width:500px;
	width:90%;
	margin: 1em auto 1.5em;
}
#ex-display-grid li:hover {
	cursor:pointer;
	border:1px solid #cdcdcd;
	box-shadow:0 0 4px #999;
}

/***** shortcode overrides *****/
/*******************************/

.body-wrapper .mc-iframe {
	margin: 0 auto 50px;
	padding: 0 1.7em;
	max-width:900px;
}


/* ------------------------------------------------------ */
/* media queries */
/* ------------------------------------------------------ */

/*@media (min-width: 550px) {


}*/

@media (min-width: 650px) {

	#ex-display-grid li {
		width:47.25%;
		padding-bottom:4em;
	}

}

@media (min-width:768px) {



}

@media (min-width:650px) and (max-width:991px) {
	#ex-display-grid li:nth-child(3n+3) {
		width:100% !important;
		flex-grow:none !important;
		flex-shrink:none !important;
		max-width:100% !important;
		padding-bottom:1em;
	}
	#ex-display-grid li:nth-child(3n+3) figure {
		display:none;
	}
	#ex-display-grid li:nth-child(3n+3) button {
		position:static;
	}
}

@media (min-width:850px) {



}

@media (min-width: 992px) {

	#ex-display-grid li {
		width:30.5%;
		list-style:none;
		border:1px solid #cecece;
		background:#fff;
		margin:0 1.3% 25px;
		box-shadow:0 0 2px #bbb;
		position:relative;
		overflow:hidden;
		padding-bottom:2em;
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
	}
	.ex-details {
		position:absolute;
		bottom:12px;
		width:100%;
		text-align:center;
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
		opacity:1.0;
	}
	#ex-display-grid li figure {
		width:100%;
		overflow:hidden;
		position:relative;
		padding-bottom:67%;
	}
	#ex-display-grid li figure img {
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
		width:150%;
		position:absolute;
		left:-25%;
		top:-6%;
	}
	#ex-display-grid li figure .fig-shadow {
		position:absolute;
		bottom:0;
		opacity:0;
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
		z-index:1;
		height:100px;
		width:100%;
		background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,1)); /* For Safari 5.1 to 6.0 */
   		background: -o-linear-gradient(bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* For Opera 11.1 to 12.0 */
    	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* Standard syntax */
	}
	#ex-display-grid li figcaption {
		padding:0 1em 1em;
		text-align:center;
		position:relative;
		z-index:2;
		top:0;
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
	}
	#ex-display-grid li figcaption h2 {
		text-transform:none;
		font-size:1.85em;
		line-height:1em;
		padding:0;
	}
	#ex-display-grid li figcaption p {
		font-family:"Mercury SSm A","Mercury SSm B",Georgia,serif;
		color:#565656;
		font-size:0.9em;
	}
	#ex-display-grid li .ex-details i {
		display:inline-block;
		color:#e67700;
		font-size:1.4em;
		position:relative;
		top:2px;
	}
	#ex-display-grid li .ex-details span {
		color:#e67700;
		font-size:0.8em;
		display:inline-block;
	}
	.ex-button-box {
		position:absolute;
		width:100%;
		text-align:center;
		padding:10px 0;
		bottom:-100%;
		transition: all 0.5s;
		-webkit-transition: all 0.5s;
	}
	.ex-button-box h4 {
		text-transform:uppercase;
		letter-spacing:1.5px;
		font-size:0.88em;
		padding:0 1em;
		margin-bottom:0;
		line-height:1.16em;
		color:#286090;
		position:relative;
		z-index:10;
	}

	#ex-display-grid li button {
		border-radius:0;
		display:block;
		position:static;
		margin:0.5em auto 0;
	}
	#ex-display-grid li:hover {
		cursor:pointer;
		border:1px solid #cdcdcd;
		box-shadow:0 0 4px #999;
	}
	#ex-display-grid li:hover figure img {
		opacity:0.27;
		-webkit-filter: blur(5px);
		-ms-filter: blur(5px);
		filter: blur(5px);
	}
	#ex-display-grid li:hover figure .fig-shadow {
		opacity:1.0;
	}
	#ex-display-grid li:hover figcaption {
		top:-40%;
	}
	#ex-display-grid li:hover .ex-button-box {
		bottom:25%;
	}
	#ex-display-grid li:hover .ex-details {
		/*opacity:0;*/
		bottom:50px;
	}

	#ex-display-grid.no-transition li {
		width: 30%;
		list-style: none;
		border: 1px solid #cecece;
		background: #fff;
		margin: 0 1.6% 25px;
		box-shadow: 0 0 2px #bbb;
		position: relative;
		overflow: hidden;
		padding-bottom: 2em;
		transition: none;
		-webkit-transition: none;
	}

	.no-transition .ex-button-box {
		display: none;
	}

	#ex-display-grid.no-transition li:hover figure img {
		opacity:1.0;
		-webkit-filter: blur(0);
		-ms-filter: blur(0);
		filter: blur(0);
	}

	#ex-display-grid.no-transition li:hover figcaption {
		top:-50px;
	}

}

@media (min-width:1095px) {

	/*#ex-display-grid li {
		width:29%;
		margin:0 1.4% 25px;
	}*/
	#ex-display-grid li:hover figcaption {
		top:-50%;
	}
	#ex-display-grid li:hover .ex-button-box {
		bottom:30%;
	}

}

@media (min-width:1200px) {

	#ex-display-grid li figcaption h2 {
		padding:0 0.5em;
	}
	#ex-display-grid li:hover .ex-button-box {
		bottom:35%;
	}


}

@media (min-width:1300px) {



}
