body{
	background-color: #f2f2f2;
}

.gallery{
	display: flex;
	padding: 50px 2%;
	flex-flow: row wrap;
	justify-content: space-around;
}
.gallery-node{
	position: relative;
	background: white;
	display: inline-block;
	margin: 0 0 30px 0;
	padding: 20px;
	border-radius: 20px;
	text-align: center;
	flex: 0 1 auto;
	width: 31%;
	box-shadow: 4px 4px 5px 0 #b6b6b6;
}
.gallery-node section{
	padding: 0;
}
.gallery-node h3{
	margin: 0 0 10px 0;
	border-bottom: 1px solid #b6b6b6;
}
.gallery-node p{
	font-size: 0.9em;
	max-height: 90px;
	overflow: hidden;
	margin: 0;
	line-height: 20px;
	text-align: left;
}
.gallery-node .image-wrapper{
	overflow: hidden;
	position: relative;
	display: inline-block;
}
.gallery-node .image-wrapper img{

}
.gallery-node .image-wrapper, .gallery-node .image-wrapper img{
	width: 100%;
	display: block;
}


.expand-toggle{
	border-top: 1px solid #b6b6b6;
	height: 0;
	margin: 13px 0 20px 0;
	z-index: 1;
}
.expand-toggle img{
	width: 18px;
	border: 1px solid #b7b7b7;
	position: relative;
	top: -12px;
	z-index: 2;
	background: white;
	padding: 0 10px;
	box-sizing: content-box;
	margin: -5px 0;
	cursor: pointer;
	vertical-align: middle;
}
.expand-toggle img:hover{
	background: #b7b7b7;
}
.expand-toggle img:active{
	background-color: #7e8083;
	border: 1px solid #7e8083;
}

.gallery-node.expanded section{
	background-color: white;
}
.gallery-node.expanded p{
	max-height: none;
}
.gallery-node.expanded .image-wrapper img{
	opacity: 0.4;
	position: absolute;
	bottom: 0;
	left: 0;
}
.gallery-node.expanded .expand-toggle img{
	transform: rotate(180deg);
}

/*.content-collapser-ellipsis::before{
	content: "";
	display: block;
	border-bottom: 1px solid #b6b6b6;
}*/
/*
.demo{
	margin: 20px 0 10px 0;
	padding: 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-around;
	border: 1px solid #b6b6b6;
}*/

.ghost, .demo{
	height: 50px;
	margin-top: 20px;
}
.demo{
	width: 100%;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	position: absolute;
	bottom: 20px;
	left: 0;
}
.run-demo, .download-demo{
	display: inline-block;
	background: #2e47b4;
	border: none;
	color: white;
	line-height: 50px;
	cursor: pointer;
	padding: 0;
	width: 40%;
	border-radius: 5px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s ease;
}
.run-demo:hover, .download-demo:hover{
	background: #081b63;
}
.run-demo:active, .download-demo:active{
	background: #4b1313;
}
.run-demo:focus, .download-demo:focus{
	outline: none;
}
.run-demo img, .download-demo img{
	vertical-align: middle;
	min-width: 24px;
	width: 15%;
}

.run-demo.deactivated {
	background-color: #adadad;
	cursor: default;
}

.download-demo a{
	display: none;
}
.download-demo.focused{
	background-color: #8b1818;
	display: flex;
}
.download-demo.focused a{
	text-decoration: none;
	color: white;
	flex: 1 1 0;
	display: inline-block;
	transition: background-color 0.3s ease;
}
.download-demo.focused a:hover {
	background-color: #4b1313;
}
.download-demo.focused a:active {
	background-color: black;
}
.download-demo.focused a:first-of-type{
	border-bottom-left-radius: 5px;
	border-top-left-radius: 5px;
	border-right: 1px solid white;
}
.download-demo.focused a:last-of-type{
	border-bottom-right-radius: 5px;
	border-top-right-radius: 5px;
}
.download-demo.focused img, .download-demo.focused .text{
	display: none;
}

@media screen and (max-width: 1170px){
	.gallery{
		padding: 40px 3%;
	}
	.gallery-node{
		width: 48%;
	}
	.run-demo{
	//	margin-right: 3%;
	}
}
@media screen and (max-width: 768px){
	.gallery{
		padding: 26px 3%;
	}
	.gallery-node{
		width: 100%;
		padding: 15px;
	}
}

@media screen and (max-width: 300px){
	.download-demo{
		font-size: 0.8em;
	}
	.download-demo img{
		min-width: 18px;
	}
}
