/* contracted listings */

div#results-top div {
	padding-top: 0.5rem;
	padding-bottom: 1rem;
}

div#results-top div p {
	padding: 0;
	margin: 0;
}

div.result-listing-container {
	overflow: hidden;
	padding-bottom: 1em;
}

div.refiners {
	overflow: hidden;
	position: relative;
}

div.refiner {
	display: none;
	padding: 0.25rem;
	padding-right: 2rem;
	float: left;
	overflow: hidden;
}

div.refiner:nth-child(2) {
	padding-right: 0;
}

div.refiner a {
	display: block;
	background-color: white;
	color: #4c4d52;
	padding: 0.5em;
	margin-right: 0.5em;
	margin-bottom: 0.25em;
	text-decoration: none;
	float: left;
	font-size: 90%;
	border-radius: 8px;
}

div.refiner a:last-child{
	margin-right: 0;
}

div.refiner a.refiner-selected {
	background-color: #00b4f3;
	color: white;
}

div#refiners-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(232, 237, 237, 0.5);
	cursor: wait;
	display: none;
}

div#progress-bar {
	width: 30%;
	min-width: 300px;
	margin-left: auto;
	margin-right: auto;
	height: 0.5em;
	background-color: white;
	border-radius: 0.25em;
}

div#progress-bar-inner {
	background-color: #10549b;
	height: 100%;
	width: 0%;
	border-radius: 0.25em;
}

div.result-group {
	background-color: #e8eded;
}

div.result-group-banner-stripe {
	background-color: white;
	cursor: pointer;
	cursor: zoom-in;
	margin-top: 1em;
}

div.result-group-banner-stripe:focus {
}

div.result-group-banner {
	padding: 0.25rem;
	display: flex;
	position: relative;
	background-image: url(/images/expanders/expand-dark.png);
	background-size: 21px 21px;
	background-position: right 0.25rem center;
	background-repeat: no-repeat;
	transition: background-image 0.4s, background-color 0.4s, color 0.4s;
}

img.contributor-logo {
	width: 72px;
	height: 64px;
	position: absolute;
	top: 50%;
	margin-top: -32px;
}

h3.group-name {
	padding: 0;
	padding-right: 0.25em;
	margin: 0;
	font-size: 140%;
	flex: 1 1 auto;
	text-transform: none;
}

h3.contributor-group-name {
	padding-left: 76px;
}

div.number-of-stories {
	font-size: 90%;
	color: #4c4d52;
	white-space: nowrap;
	margin-top: auto;
	margin-bottom: auto;
	margin-right: 44px;
	text-align: center;
	height: 100%;
}

div.contributor-biography {
	padding-left: 76px;
	font-size: smaller;
	padding-top: 0.5rem;
	border-left: 0.25em solid #e8eded;
}

span.contributor-biography-extended {
	display: none;
}

div.previews {
	padding-left: 0.25em;
	padding-top: 1em;
	overflow: hidden;
	cursor: pointer;
	cursor: zoom-in;
}

img.preview {
	width: 16.6666666666%;
	height: auto;
	float: left;
	align-self: center;
	padding-right: 0.25rem;
	padding-bottom: 0.25rem;
}

div.fades {
	padding-left: 0.25em;
	overflow: hidden;
	position: relative;
	max-height: 1.5rem;
	margin-bottom: 2em;
	cursor: pointer;
	cursor: zoom-in;
}

img.fade {
	width: 16.6666666666%;
	height: auto;
	float: left;
	padding-right: 0.25rem;
}

div.fades-fade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: -moz-linear-gradient(top, rgba(232,237,237,0) 0%, rgba(232,237,237,1) 100%);
	background: -webkit-linear-gradient(top, rgba(232,237,237,0) 0%,rgba(232,237,237,1) 100%);
	background: linear-gradient(to bottom, rgba(232,237,237,0) 0%,rgba(232,237,237,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00e8eded', endColorstr='#e8eded',GradientType=0 );
}

div.expanded {
	cursor: zoom-out;
}

div.result-group-banner-stripe.expanded {
	background-color: #9faaaa;
	color: white;
}

div.result-group-banner.expanded {
	background-image: url(/images/expanders/contract-white.png);
}

div.result-group-banner-stripe.expanded div.number-of-stories {
	color: white;
}

/* expanded listings */

div.stories-outer {
	display: none;
	margin-bottom: 0.5em;
}

div.stories {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	padding-left: 0.25em;
	padding-top: 1em;
}

div.story-container {
	width: 100%;
	margin-bottom: 8px;
	position: relative;
	float: left;
	font-size: 80%;
	background-color: white;
}

div.close-bar {
	background-color: #9faaaa;
	background-image: url(/images/expanders/contract-white.png);
	background-size: 21px 21px;
	background-position: center;
	background-repeat: no-repeat;
	height: 37px;
	width: 100px;
	border-radius: 8px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2em;
	cursor: zoom-out;
}	

div.story-thumbnail {
	background-position: center;
	background-size: cover;
	position: relative;
}

div.story-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0;
	position: relative;
	z-index: 1;
}

div.story-name {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.25rem;
	padding-bottom: 0.25rem;
	background: linear-gradient(to bottom, rgba(38, 39, 42, 0) 0%, rgba(38, 39, 42, 0.9) 50%, rgba(38, 39, 42, 0.9) 100%);
	color: white;
	font-size: 165%;
	line-height: 100%;
	font-weight: bold;
}

div.story-name-simplified {
	padding-right: 4px;
}


div.story-info {
	padding: 4px;
	font-size: 120%;
}
	
a.slideshow-quicklink {
	float: right;
	width: 27px;
	height: 27px;
	background-image: url(/images/listings/slideshow-quicklink.png);
	background-size: contain;
	background-position: left 2px;
	background-repeat: no-repeat;
}
	
div.story-reference {
	color: #00b4f3;
	font-weight: bold;
}

div.story-reference a {
	text-decoration: none;
}

div.story-reference a:hover {
	text-decoration: underline;
}

div.image-count {
	float: left;
	color: #4c4d52;
	font-weight: bold;
}

div.contributor-info {
	margin-top: 12px;
	color: #9faaaa;
}

h3.sub-heading {
	width: 100%;
}

.gospel-subheading-links {
	padding-bottom: 1em;
	color: #9faaaa;
}

.mobile-info, .mobile-slideshow {
	display: none !important;
}

div.no-results {
}

div#empty-refinement {
	padding: 0.25em;
	display: none;
}

@media screen and (max-width: 319px) {
	img.contributor-logo {
		display: none;
	}
	
	h3.contributor-group-name, div.contributor-biography {
		padding-left: 0;
	}
	
	div.refiner a {
		font-size: 80%;
	}
}

@media screen and (max-width: 399px) {
	div.number-of-stories {
		font-size: 80% !important;
		margin-right: 36px !important;
	}
	
	span.image-text {
		display: none;
	}
	
	h3.group-name {
		font-size: 120%;
	}
}

@media screen and (min-width: 850px), print {	

	img.mobile-preview, img.mobile-fade, img.wide-desktop-preview, img.wide-desktop-fade {
		display: none;
	}

	img.desktop-preview, img.desktop-fade {
		display: block;
	}
	
	div.details-max {
		max-width: none !important;
		width: auto !important;
	}
	
	div.contributor-logo {
		float: left;
		vertical-align: top;
	}

	div.search-flex {
		display: flex;
		flex-wrap: wrap;
		margin-right: -8px;
	}

	div.story-supercontainer {
		width: calc(33.333333% - 0.25em);
		vertical-align: top;
		margin-bottom: 1em;
		margin-right: 0.25em;
		background-color: white;
	}
					
}

@media screen and (max-width: 849px) {

	a.mobile-hidden-listings {
		display: none !important;
	}
	
	div.story-supercontainer {
		width: 100%;
		vertical-align: top;
		padding-bottom: 1em;
		padding-right: 0.25em;
	}
	
	div.story-container {
		width: 100%;
		margin-bottom: 8px;
	}
				
	.mobile-slideshow, .mobile-info {
		position: absolute !important;
		right: 0px;
		width: 33px !important;
		height: 33px !important;
		display: block !important;
		opacity: 1 !important;
		background-color: rgba(0,0,0,0.5);
		cursor: pointer;
	}

	.mobile-slideshow {
		top: 0px;
		border-radius: 0 0 0 7px;
	}
	
	.mobile-info {
		bottom: 0px;
		border-radius: 7px 0 0 0;
	}
	
	.hidden-info {
		font-size: 120%;
		padding-left: 0.25rem;
		padding-right: 0.25rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}
	
	.hidden-top-line {
		display: flex;
	}
	
	img.preview {
		width: 50%;
	}
	
	img.wide-desktop-preview, img.wide-desktop-fade, img.desktop-preview, img.desktop-fade {
		display: none;
	}

	img.mobile-preview, img.mobile-fade {
		display: block;
	}
		
	img.fade {
		width: 50%;
	}
	
	.gospel-subheading-links a {
		display: block;
	}
}

@media screen and (min-width: 1280px) {

	img.preview {
		width: 10%;
	}
	
	img.fade {
		width: 10%;
	}

	img.desktop-preview, img.desktop-fade, img.mobile-preview, img.mobile-fade {
		display: none;
	}

	img.wide-desktop-preview, img.wide-desktop-fade {
		display: block;
	}

	div.story-supercontainer {
		width: calc(20% - 0.25em);
	}
}

a {
	color: #9faaaa;
}
