/* image bank styles - author EE 2015 */

#imagebank {
	width: 100%;
	font-size: 1em;
	color: #333;
	font-family: sans-serif;
}

#imagebank,
#imagebank *,
#download-modal,
#download-modal * {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

#imagebank div,
#imagebank span,
#imagebank img {
	margin: 0;
	padding: 0;
}

#imagebank.cf:after,
#imagebank .cf:after,
#download-modal .cf:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

#imagebank.cf,
#imagebank .cf,
#download-modal .cf {
	display: block;
}

#imagebank img {
	max-width: 100%;
	width: auto;
	height: auto !important;
	border: 0;
}

#imagebank ul {
	list-style: none;
	/*border: 1px dotted #ccc;*/
	margin: 0;
	padding: 0;
}

#imagebank .imagebankalbum-title{
	margin-bottom: 1em;
}

#imagebank .imagebank-backcont{
	display: none;
}

#imagebank .imagebank-backbtn{
	display: inline-block;
	padding: 0.5em 1em 0.5em 0.5em;
	margin-bottom: 1em;
	background-color: #fafafa;
	border: 1px solid #ccc;
	text-decoration: none;
	font-size: 0.813em;
	-webkit-box-shadow: 0 0 5px 0 #E0E0E0;
	box-shadow: 0 0 5px 0 #E0E0E0;
	-webkit-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
}

#imagebank .imagebank-backbtn:hover{
	background-color: #eee;
}

.imagebank-backcont{
	min-height: 48px;
}

#imagebank .imagebanklist {
	position: relative;
}

#imagebank li.imagebank-image > a,
#imagebank li.imagebank-folderblock > a {
	display: block;
	/*padding: 1em;*/
	border-radius: 3px;
	border: 1px solid #e9e9e9;
	border-radius: 4px;
	overflow: hidden;
	-webkit-box-shadow: 0 0 5px 0 #E0E0E0;
	box-shadow: 0 0 5px 0 #E0E0E0;
	-webkit-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
}

#imagebank li.imagebank-image > a:hover,
#imagebank li.imagebank-folderblock > a:hover{
	-webkit-box-shadow: 0 0 4px 0 #5498FF;
	box-shadow: 0 0 4px 0 #5498FF;
}

#imagebank li.imagebank-image,
#imagebank li.imagebank-folderblock {
	display: inline-block;
	width: 22.9%;
	margin: 0 1% 1% 0;
	vertical-align: top;
}

#imagebank li.imagebank-folderblock > a {
	/*border: 2px solid #999;*/
	background-color: antiquewhite;
}

#imagebank li.imagebank-folderblock > a:hover {
	background-color: #E1D2BE;
}

#imagebank li.imagebank-image-link {
	display: block;
}

#imagebank li.imagebank-image .imagebank-image-title {
	width: 100%;
}

#imagebank li.imagebank-image img {
	display: block;
}

#imagebank .imagebank-folderblock-content {
	display: none;
	/*background-color: #E4F1F1;*/
	/* position: absolute; */
	width: 100%;
	left: 0;
}

#imagebank .imagebank-folderblock.folder-open {
	width: 100%;
}

#imagebank .imagebank-folderblock-title,
#imagebank .imagebank-image-title{
	text-transform: none;
	display: inline-block;
	padding: 0.5em;
}

#imagebank span.imgwarp{
	display: block;
	text-align: center;
}

/*#imagebank .imagebank-folderblock-title{
	display: block;
	width: 100%;
	color: #fff;
	text-decoration: none;
}*/

#download-modal {
	padding: 2em;
	background-color: #fff;
	font-family: sans-serif;
	height: 100%;
}

#download-modal .modalcolumn {
	width: 50%;
	float: left;
	padding-right: 2em;
}

#download-modal .modalcolumn.modalimage {
	padding-right: 0;
	text-align: center;
}

#download-modal .modalcolumn.modalimage img{
	max-height: 390px;
}

#download-modal h2 {
	margin-top: 0;
}

#download-modal button {
	background-color: #00B16A;
	display: block;
	color: #fff;
	padding: 0.5em 1em;
	margin-bottom: 0.5em;
	border-radius: 5px;
	border: 0;
	border-bottom: 2px solid #1E824C;
	cursor: pointer;
	width: 90%;
	text-align: left;
	font-size: 1em;
}

#download-modal button:hover {
	background-color: #4DAF7C;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #1E824C;
}

#download-modal button:active {
	border-bottom: 0;
	border-top: 2px solid #fff;
}

#download-modal img{
	max-width: 100%;
	height: auto;
	border-radius: 4px 4px 0 0;
	margin: 0;
	padding: 0;
}

body #cboxLoadedContent{
	background-color: #ccc;
}

input.imagebank-searchfield{
	margin-bottom: 2em;
	font-size: 1em;
	padding: 0.25em;
}

@media all and (max-width: 768px) {
	#imagebank li.imagebank-image,
	#imagebank li.imagebank-folderblock{
		width: 47.5%;
	}

	#download-modal .modalcolumn{
		width: 100%;
		float: none;
	}
}

@media all and (max-width: 480px) {
	.col.imageblock,
	.modal-column{
		width: 100% !important;
		float: none !important;
	}
}