#main {
	overflow-x: hidden;
	background-color: #333;
}
#gallery-wrapper {
	background: url(../media/slider/loading.gif) no-repeat center center;
	position: relative;
	width: 100%;
	min-height: 200px;
	margin: 70px 0 0 0;
}
#gallery {
	display: none;
}
@media screen and (min-width: 500px)
{
	#gallery-wrapper {
		min-height: 300px;
	}
}
@media screen and (min-width: 770px) {
	#gallery-wrapper {
		min-height: 450px;
	}
	#gallery {
		padding-top: 30%;
	}
}
#gallery #next,
#gallery #prev {
	cursor: pointer;
	height: 75px;
	margin-top: -37.5px;
	opacity: 1;
	position: absolute;
	top: 50%;
	width: 75px;
	z-index: 10;
}
#gallery #next {
	right: 0;
}
#gallery #prev {
	left: 0;
}
@media screen and (min-width: 770px)
{
	#gallery #next,
	#gallery #prev {
		margin-top: -50px;
		opacity: 0;
	}
	#gallery #next {
		height: 100px;
		right: -40px;
		width: 100px;
	}
	#gallery #prev {
		height: 100px;
		left: -40px;
		width: 100px;
	}
}
@media screen and (min-width: 1150px)
{
	#gallery #next,
	#gallery #prev {
		height: 150px;
		margin-top: -75px;
		width: 150px;
	}
}
@media screen and (min-width: 2000px)
{
	#gallery #next,
	#gallery #prev {
		height: 200px;
		margin-top: -100px;
		width: 200px;
	}
}
#gallery #gallery-window {
	z-index: 5;
}
#gallery #gallery-window div.gallery-image {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	-ms-behavior: url(/asset/js/backgroundsize.min.htc);
	display: none;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: 6;
}
#gallery #gallery-window div.gallery-image:first-child {
	display: block;
	left: 0;
}
#gallery #gallery-window div.gallery-image .content {
	position: absolute;
	background-color: #FFF;
	background-color: rgba(255,255,255,0.6);
	text-align: left;
	width: 90%;
	margin: 20px 0 20px 6%;
	box-sizing:border-box;
}
@media screen and (min-width: 770px)
{
	#gallery #gallery-window div.gallery-image .content {
		text-align: center;
		width: 300px;
		margin: 0 0 0 0;
	}
}
#gallery #gallery-window div.gallery-image .content h1 {
	color: #39F;
	font-size: 2.5em;
}
@media screen and (min-width: 500px)
{
	#gallery #gallery-window div.gallery-image .content h1 {
		font-size: 2.5em;
		margin: 10px 0;
	}
}
@media screen and (min-width: 770px)
{
	#gallery #gallery-window div.gallery-image .content h1 {
		font-size: 3em;
		margin: 10px 0;
	}
}
@media screen and (min-width: 1150px)
{
	#gallery #gallery-window div.gallery-image .content h1 {
		font-size: 3em;
		margin: 10px 0;
	}
}
@media screen and (min-width: 2000px)
{
	#gallery #gallery-window div.gallery-image .content h1 {
		font-size: 3.5em;
	}
}
#gallery #gallery-window div.gallery-image .content p {
	color: #333;
	margin: 0 0 30px 0;
}
#gallery #gallery-window div.gallery-image .content .submit-button {
	position: absolute;
	top: 65px;
	left: 0;
	font-size: 1.2em;
	padding: 10px 50px;
	background-color: #39F;
	background-color: rgba(51,153,255,0.8);
}
#gallery #gallery-window div.gallery-image .content .submit-button:hover {
	background-color: #333;

}
@media screen and (min-width: 500px)
{
	#gallery #gallery-window div.gallery-image .content .submit-button {
		left: 0;
	}
}
@media screen and (min-width: 770px)
{
	#gallery #gallery-window div.gallery-image .content .submit-button {
		left: 0;
		top: 80px;
	}
}
@media screen and (min-width: 1150px)
{
	#gallery #gallery-window div.gallery-image .content .submit-button {
		left: 0;
	}
}
#gallery #gallery-window div .content {
	margin: 0 6%;
}
#gallery #gallery-window div .content h1,
#gallery #gallery-window div .content p, {
	color: #FFF;
}
@media screen and (min-width: 770px)
{
	#gallery #gallery-window div.gallery-image .content {
		height: auto;
		padding: 0 0 5px 0;
		margin: -30px 6%;
	}
	#gallery #gallery-window div .content {
		background: none;

	}
	#gallery #gallery-window div.gallery-image .content {
		left: 75px;
	}
	#gallery #gallery-window div .content {
		left: auto;
		right: 100px;
	}
	#gallery #gallery-window div .content h1,
	#gallery #gallery-window div .content p {
		color: #FFF
	}
}
@media screen and (min-width: 1150px)
{
	#gallery #gallery-window div.gallery-image .content {
		left: 100px;
		padding: 0 0 5px 0;
	}
	#gallery #gallery-window div .content {
		right: 150px;
	}
}
@media screen and (min-width: 1600px)
{
	#gallery #gallery-window div.gallery-image .content {
		left: 10%;
	}
	#gallery #gallery-window div .content {
		right: 10%;
	}
}
@media screen and (min-width: 2000px)
{
	#gallery #gallery-window div.gallery-image .content {
		left: 15%;
	}
	#gallery #gallery-window div .content {
		right: 20%;
	}
}
@media screen and (max-width: 1050px)
{
	#gallery #next,
	#gallery #prev {
		display: none;
	}
}
#gallery #thumbs {
	bottom: 0;
	display: none;
	margin-left: -130px; /*thumbs positioning*/
	left: 50%;
	position: absolute;
	width: 260px; /*thumbs total width*/
	z-index: 10;
}
@media screen and (min-width: 770px)
{
	#gallery #thumbs {
		display: block;
	}
}
#gallery #thumbs div.gallery-thumb {
	cursor: pointer;
	height: 30px;
	float: left;
	width: 60px;
	margin-right: 5px;
}
#gallery #thumbs div.gallery-thumb div {
	background-color: #F1F4F9;
	background-color: rgba(224,227,234,0.9);
	height: 5px;
	margin-top: 12px;
	width: 100%;
}
#gallery #thumbs div.active div {
	background-color: #39F;
	background-color: rgba(51,153,255,0.9);
}
#gallery #wave {
	background-image: url(../media/wave.png);
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: cover;
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	z-index: 8;
	opacity: 0.8;
}
#gallery #wave #slogan {
	bottom: 8%;
	color: #FFF;
	font-size: 1.4em;
	font-weight: 300;
	left: 5%;
	margin: 0;
	position: absolute;
	text-align: left;
}
@media screen and (min-width: 770px) {
	#gallery div.share-details {
		display: none;
	}
	#wave {
		display: block;
	}
}
@media screen and (min-width: 1000px) {
	#gallery #wave #slogan {
		font-size: 1.8em;
	}
}
@media screen and (min-width: 1400px) {
	#gallery #wave #slogan {
		font-size: 2.5em;
	}
}
@media screen and (min-width: 1600px) {
	#gallery #wave #slogan {
		font-size: 2.8em;
	}
}
#intro {
	background-color: #FFF;
	text-align: center;
}
#intro img {
	width: 100%;
	max-width: 1100px;
}
#intro h1 {
	margin: 0 0 20px 0;
}
#intro p {
	font-size: 1.1em;
	text-align: left;
	font-weight: normal;
}
#links {
	background-color: #333;
	text-align: center;
}
@media screen and (min-width: 770px)
{
	#links {
		padding: 75px 0;
	}
}
#links h3 {
	padding: 10px 0;
	font-weight: 500;
	color: #39F;
	text-transform: uppercase;
}
#links p {
	font-size: 1.2em;
	font-weight: normal;
	color: #333;
}
#links-container {
	margin: 0 auto;
}		
.two-column article {
	box-sizing: border-box;
	padding: 32px 32px;
	background-color: #FFF;
	margin: 10px auto 0 auto;
	width: 100%;
}
@media screen and (min-width: 770px)
{
	.two-column article {
		float: left;
		width: 48%;
		margin: 0 1%;
	}
}
.two-column article:hover
.submit-button {
	background-color: #39F;
	color: #FFF;
}
.two-column article:active
.submit-button {
	background-color: #333;
	color: #FFF;
}
#links img {
	width: 20%;
}