/*
Theme Name: Component Media
Author: Rosalie Morrow
Author URI: http://rosaliemorrow.com
Description: Component Media Theme
Version: 1.0
*/

.page {
	width: 95%;
	margin: 0 auto;
	max-width: 1080px;
}

header a.logo {
	display: block;
	width: 130px;
	margin: 1em auto;
}

header a.logo img {
	max-width: 100%;
}

h2 {
	font-family: "proxima-nova";
	font-weight: 300; 
	font-style: normal;
	color: #3f3f3f;
	font-size: 1.5em;
	margin: 0.5em 0;
	clear: both;
	text-align: center;
}

h2.last {
	margin-bottom: 2em;
}

p {
	font-family: "proxima-nova";
	font-weight: 300; 
	font-style: normal;
	text-align: center;
	color: #3f3f3f;
}

p a {
	color: #3f3f3f;
	text-decoration: none;
}

.video-wrapper {
	width: 100%;
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	z-index: 0;
	background-color: #000;
	margin-top: 1.5em;
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	border: 0;
}

.thumbs {
	margin-top: 1em;
	margin-left: -5px;
	text-align: center;
}

.thumbs a {
	display: inline-block;
	margin: 5px;
	position: relative;
}

.overlay {
	display: none;
}

.video-overlay {
	display: none;	
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,0.9);
	top: 0;
	left: 0;	
}

.video-popup-wrap {
	display: none;
	width: 300px;
	height: 200px;
}

.video-popup {
	width: 100%;
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	z-index: 0;
	background-color: #000;
}

.video-popup iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	border: 0;
}

span.close {
	display: block;
	width: 30px;
	height: 30px;
	background-color: #fe0000;
	position: absolute;
	top: -10px;
	right: -10px;
	border-radius: 15px;
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
	color: #fff;
	text-align: center;
	line-height: 30px;
	cursor: pointer;
	z-index: 5;
}

.small-logo { 
	margin: 0 auto 1em; 	
}

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

	.video-popup-wrap {
		width: 400px;
		height: 300px;
	}
	
	.video-wrapper {
		margin-top: 3em;
	}
	
	.thumbs {
		margin-top: 2em;
	}

}

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

	header {
		width: 30%;
	}
	
	.header-inner {
		position: fixed;
		margin-top: 2em;
	}
	
	.wrapper {
		width: 70%;
		float: right;
	}
	
	p {
		text-align: left;
	}
	
	header a.logo {
		margin: 1em 0;
	}
	
	.overlay {
		display: block;
		opacity: 0;
		background-color: rgba(255,255,255,0.7);
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		transition: all 0.1s; 
		-moz-transition: all 0.1s; 
		-webkit-transition: all 0.1s; 	
	}
	
	.overlay img {
		position: absolute;
		width: 40px;
		left: 50%;
		top: 50%;
		margin-left: -20px;
		margin-top: -20px;
	}
	
	.thumbs {
		text-align: left;	
	}
	
	h2 {
		text-align: left;
	}
	
	.thumbs a:hover .overlay {
		opacity: 0.6;
	}
	
	.video-popup-wrap {
		width: 600px;
		height: 337px;
		padding: 1em;
		background-color: #000;
	}
	
	.video-popup {
		width: 100%;
	}
	
	header a.logo { 
		width: 190px;	
		margin-left: -14px;
	}
	
	.small-logo {
		float: right;
		margin-top: 0.65em;
	}
	
	h2.last {
		float: left;
	}
	
}

@media screen and (min-width: 900px) {
	
	.thumbs {
		margin-left: 0;
	}

	.thumbs a {
		display: block;
		float: left;
		width: 24%;
		margin: 5px 1.333333% 5px 0;
	}
	
	.thumbs a img {
		max-width: 100%;
	}
	
	.thumbs a:nth-child(4n+4) {
		margin-right: 0;
	}	

}

@media screen and (min-width: 1080px) {
	
	header {
		width: 25%;
	}
	
	.wrapper {
		width: 75%;
	}
	
	.thumbs a {
		margin: 8px 1.333333% 7px 0;
	}
	
}
