f/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	color:#1e1e22;
	font-family: futura-pt, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	padding:0px;
	margin:0;
}

h4 {
	font-family: futura-pt, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
}

a {
	color:#00a6e9;
	text-decoration: none;
	-moz-transition: all .2s ease; -webkit-transition: all .2s ease; transition: all .2s ease;
}
a:hover {
	color:#105de9;
}

ul, ol {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#header-wrapper {
	background: #00a6e9 url(http://www.ocularinvasion.com/tumblr/img/header_bg.jpg) repeat;
	background-size:230px 115px;
	width:100%;
	box-sizing: border-box;
	top:0;
	position: fixed;
	z-index: 99;
}

#header-wrapper.big {
	padding: 40px 40px 0 40px;
}

#header-wrapper.small{
	padding: 20px 40px 0 40px;
}
	#header-wrapper p {
		font-size: 2em;
		width:75%;
		max-width: 690px;
		letter-spacing: .0001em;
	}
.logo {
	width:353px;
	height:29px;
	background: url(http://www.ocularinvasion.com/tumblr/img/oi_full_logo.png) no-repeat;
	background-size: 353px 29px;
	display: block;	
}
#header-wrapper.big .logo {
	width:85px;
	height:69px;
	background: url(../img/oi_mark.png) no-repeat;
	background-size: 85px 69px;
	display: block;	
}

#header-wrapper.small .logo{
	position: absolute;
	right:40px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	
}

#content {
	opacity: 0;
	
}

#sidebar {
	display: none;
}

#main-menu-wrapper li{
	float:left;
	padding: 0 30px 0 0;
}

	#main-menu-wrapper a {
		color:#1e1e22;
		text-decoration: none;
		display: block;
		box-sizing: border-box;
		padding: 0 0 35px 0;
		
	}
		#header-wrapper.small #main-menu-wrapper a{
			padding: 0 0 15px 0;
		}
	#main-menu-wrapper a:hover {
		color:#ffffff;
	}
		
	#main-menu-wrapper a.current {
		color:#ffffff;
		border-bottom:solid 5px #ffffff;
	}
	
#project-wrapper {
	box-sizing: border-box;
	padding: 2.86%;
}
	.project-name, .project-description {
		padding: 0 0 40px 0;
		margin: 0;
	}
		.project-description {
			font-family: purista-web, sans-serif;
			text-transform: none;
			font-weight: normal;
			line-height: 1.6em;
			font-size: 1.1em;
		}
		.project-description p:first-child {
			padding-top:0;
			margin-top:0;
		}
		.project-description p:last-child {
			padding-bottom:0;
			margin-bottom:0;
		}
	
	.page-title {
		padding: 0;
		margin: 0;
	}
	#project-wrapper img {
		width: 100%;
		height: auto;
	}
	
#loading-page, #infscr-loading {
	width:100%;
	height:100%;
	background: none;
	position: fixed;
}
#infscr-loading {
	height:70px;
	bottom:0;
}

#loading-page img, #infscr-loading img {
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	
}
	
	#pagination {opacity: 0;}
	
#content-wrapper {
	box-sizing: border-box;
	margin-top: 60px;
	padding:2.485%;
}	
	
.post {
	margin: .375%;
	padding: 0;
	display: block;
	width:24.25%;
	float:left;
	position: relative;
	height: auto;
	box-sizing: border-box;
	font-family: purista-web, sans-serif;
	text-transform: none;
}
.post-content {
	position: relative;
}

.textBox {
	position: absolute;
	background: rgba(255, 255, 255, .95);
	width:80%;
	margin:0 10%;
	text-align: center;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	opacity: 0;
	box-sizing: border-box;
	padding:0;
	-moz-transition: all .2s ease; -webkit-transition: all .2s ease; transition: all .2s ease;
}
	.caption {
		padding:0 5%;
	}
.html_photoset iframe{
	width:100%;
}
.html_photoset iframe img{
	width:100%;
}

.video-wrap {
	position: relative;
	max-width: 100%;
	overflow: hidden;
	height: 0;
	padding-bottom:56.25%; 
}
	.video-wrap iframe, .video-wrap object , .video-wrap embed  {
		position: absolute;
		width: 100%;
		height: 100%;	
		top:0;
		left:0;
	}

#content.single-page {
	opacity: 1;
}
	.single-page .post {
		width:100%;
	}
	.single-page .post img, .single-page .video-wrap {
		width: 49.25%;
		margin:.375%;
		float:left;
	}
	.single-page .video-wrap {
		padding-bottom:27.703125%;
	}
	.single-page .textBox {
		position: relative;
		transform: none;
		opacity: 1;
		width: 49.25%;
		margin:.375%;
		float:left;
		text-align: left;
	}
	.single-page .caption {
		font-size: 1.1em;
	}
	
	.single-page .show_some_love {
		text-align:left;
		padding:0 5%;
	}
	.single-page #post-notes {
		width:95%;
		margin:0 0 0 5%;
		background: white;
		padding: 8px 0;
		color:rgba(30,30,34,.8);
		font-size: .75em;
	}
		.single-page #post-notes:hover {
			color:rgba(30,30,34,1);
		}
	.single-page #post-notes li {
		margin: 10px 0;
		text-align: left;
	}
	
	.single-page #post-notes a {
		color:#00a6e9;
	}
	.single-page #post-notes a:hover {
		color:#105de9;
	}
	.single-page .post #post-notes img{
		display: none;
	}



.caption p:last-child{
	margin-bottom: 0;
}

.post-meta {
	margin:16px 0;
}

.post:hover .textBox {
	opacity: 1;
}

.show_some_love {
	margin: 0 auto;
	text-align: center;
}

.show_some_love li{
	display: inline-block;
	margin:0 5px;
}

.meta-links-wrapper, .date {
	display: none;
}
	.post img{
		width:100%;
		height: auto;
		background:#00a6e9;
	}	
	.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal .ccm-block-page-list-page-entry-thumbnail {
		position: absolute;
	}
	.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal .ccm-block-page-list-page-entry-text {
		width: 100%;
		text-align: center;
		position: absolute;
		top: 50%;
		-webkit-transform: translateY(-50%);
		-ms-transform: translateY(-50%);
		transform: translateY(-50%);
		z-index: 10;
		padding: 0;
		font-size: 1.5em;
	}
		.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal img {
			-moz-transition: all .2s ease; -webkit-transition: all .2s ease; transition: all .2s ease;
		}
		.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal a{
			color:#ffffff;
		}
		.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal:hover {
			cursor: pointer;
		}
		.ccm-block-page-list-pages .ccm-block-page-list-page-entry-horizontal:hover img {
			opacity: .4;
		}

.about-header {
	text-align: center;
	width:75%;
	margin: 100px auto;
}

.big-text {
	font-size: 1.6em;
	line-height: 1.5em;
	font-weight: 300;
	width:49.5%;
	margin: .25%;
	padding: 0 2%;
	float:left;
}

	.big-text>p:first-child{
		margin-top:0;
	}
.column{
	float:left;
	box-sizing: border-box;
	font-family: purista-web, sans-serif;
	text-transform: none;
	
}
	.column h4 {
		margin-top: 0;
	}
	.column img{
		width:100%;
		height:auto;
	}
	
.half {
	width:50%;
	float:left;
}
	.ccm-layout-column-inner {
		opacity: 0;
	}

#ccm-layout-column-wrapper-2 {	
	margin:0 0 100px;
}

.about.half {
	width:49.5%;
	margin: .25%;
	padding: 0 2%;
	float:left;
}
.about.quarter {
	width:24.5%;
	margin: .25%;
	padding: 0 2%;
	line-height: 1.5em;
	float:left;
}
.about.third {
	width: 32.833333333%;
	margin: .25%;
	padding: 0 2%;
	float:left;
	line-height: 1.5em;
}
.about.twothird{
	width:66.1666666%;
	margin: .25%;
	padding: 0 2%;
	float:left;
	line-height: 1.5em;
}
.credits p{
	margin-bottom: 0;
}
.credits ul {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap:wrap;
	-webkit-flex-direction: row;
	flex-flow:row wrap;
	-webkit-justify-content:left;
	justify-content: left;
}
.credits ul li {
	width:25%;
	margin-top: 16px;
	font-family: purista-web, sans-serif;
	text-transform: none;
	font-weight: 300;
}

.credits strong {
	font-weight:normal;
	display: block;
}

.social-wrapper .twitter {
	background: url(http://www.ocularinvasion.com/tumblr/img/twitter-logo.png) no-repeat center center;
	background-size: 14px 14px;
	height:14px;
	width: 14px;
}
.social-wrapper .facebook {
	background: url(http://www.ocularinvasion.com/tumblr/img/facebook-logo.png) no-repeat center center;
	background-size: 14px 14px;
	height:14px;
	width: 14px;
}
.social-wrapper .instagram {
	background: url(http://www.ocularinvasion.com/tumblr/img/instagram-logo.png) no-repeat center center;
	background-size: 14px 14px;
	height:14px;
	width: 14px;
}
.social-wrapper a:hover {
	opacity: .5;
}
.social-wrapper li {
	float:left;
	padding:0 5px;
}

.social-wrapper li:last-child {
	padding:0 0 0 5px;
}

#footer-wrapper {
	font-family: purista-web, sans-serif;
	text-transform: none;
	padding:10px 2.86%;
	font-size: .8em;
}

#footer-wrapper small {
	text-transform: uppercase;
}

#footer-wrapper .social-wrapper {
	float:right;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
	display: block;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
}

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media only screen and (max-width: 700px) {
	
	
	
	
}

	
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
