
/* OOCSS Grid
* https://github.com/stubbornella/oocss/wiki/grids
*/

.line, /* line - Groups units on one horizontal line. Note: for mobile layout units may be stacked to avoid horizontal scrolling. */
.lastUnit {
/*	overflow:hidden;
	*overflow:visible;
*/
	*zoom:1;
	padding:0;
}
.unit { /* unit - Base class which divides a line into sections (columns). */
	float:left;
	padding:0 10px;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	box-sizing:border-box; /* box-sizing:border-box; creates a box-model where 
	padding and border are NOT added onto the width - they are included in the width, 
	so a 200px wide element with 20px padding will be 200px, NOT 240px wide */
}
.unitRightv { /* Use this class if you want to offset a column eg: |--content(.unit)--|--content(.unit)--|--no-content--|--no-content--|--content(.unitRighttv)--| */
	float:right;
}

/* sizeXofY - Extends unit. Indicates the fractional width of the unit, for example size3of4 would take up three quarters, or 75%, of the horizontal space. 
The following fractions are supported: 1, 1/2, 1/3, 2/3, 1/4, 3/4, 1/5, 2/5, 3/5, 4/5 */
/* It is possible to add more columns if you wish you will just have to add the fractions that are missing eg: .size1of6 {width:16.66666%;} */

.size1of1 {
	float:none;
}
.size1of2 {
	width:50%;
	padding:15px 0;
}
.size1of3 {
	width:33.33333%;
}
.size2of3 {
	width:66.66666%;
}
.size1of4 {
	width:25%;
}
.size3of4 {
	width:75%;
}
.size1of5 {
	width:20%;
	text-align:center;
}
.size2of5 {
	width:40%;
}
.size3of5 {
	width:60%;
}
.size4of5 {
	width:80%;
}
.lastUnit { /* lastUnit - Extends unit. Applied to the last child of every line. */
	float:none;
	width:auto;
	_position:relative; /* Bug fix for IE6 - Internet Explorer 6 and below wouldn't fail on properties that were prefixed with non-alphanumeric characters. 
	meaning that anything prefixed with _ wouldn't be picked up by any other browsers */
	_left:-3px;
	_margin-right:-3px;
}

/* MAIN LAYOUT */
body {
    margin: 0;
    min-width: 240px; 
    -webkit-text-size-adjust: none; /* The text size is not adjusted for Safari on iPhone */
}
	.ie7 body,
	.ie8 body {
	    min-width: 860px; /* media queries are not supported in ie7/8 without a polyfill */
	}
	.main {

	}
	.inner {
	    max-width: 960px;
	    margin: 0 auto;

	}
	.ie6 .inner {
	    width: 960px;
	}
	.no-sidebar .content-wrapper {
	    width:95%; /* makes content container full width when there is no sidebar */
	}
	.content-wrapper {width: 75%; padding-top:90px; float:right}
	.sidebar { /* this is the sidebar element */
 		padding-top:90px;
		float:left;
	}
	.no-sidebar .sidebar {
	
	}

article {max-width:100%}
/* HEADER */
.header {
	width:100%;
	position: fixed;
	top:0px;
	left:0px;
	z-index:10;
}
	.header h1, .header img {padding-top:40px; padding-left:40px; }

/* MIXED */
header:after,
.main:after,
#Root:after,
.search-bar:after,
header .inner:after,
footer:after { /* clearfix */
    height: 0;
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
}
.search-bar form input.action,
.header .primary li a,
.footer a { /* adds color transition when links/inputs on hover */
    -moz-transition: color 0.2s;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}
.footer a.brand { color: #333; margin-left: 0; }
.footer a.brand:hover { color: #B80000; }
body h1 span.amp {
    font-family: Baskerville,"Goudy Old Style","Palatino","Book Antiqua",Georgia;
    font-style: italic;
}


/* FOOTER */
#footer {

	z-index:1;
}

#footer .footer-left {width:10%; float:left}
	#footer .footer-left img {position: fixed; bottom:40px; left: 40px;}
#footer .footer-right { float:right; width:10%; text-align:right;}
	#footer .footer-right img {position: fixed; bottom:40px; right: 40px; }
/* PAGE SPECIFIC LAYOUT */

	/* Homepage */
		/* currently no Hompage specific styles - feel free to add your own */

.menu-arrow {position:fixed; width:100%; text-align:center; z-index:1000; border-top:3px solid #231f20}
.slidingDiv {
	position:absolute;
	width:100%;
    margin-top:10px;
	text-align:center;
	z-index:50;
}
 
.show_hide {
    display:none;
}
.hide {display:none;}

#navcontainer ul {
	margin: 10px 0 0 0;
	padding: 0;
	list-style-type: none;
	text-align: center;
	position:fixed;
	width:100%;
	z-index:20;

}

#navcontainer ul li { display: inline; }

#navcontainer ul li a {
	position:relative;
	text-decoration: none;
	margin: 10px;
	z-index:100;
}
#secondary ul li {list-style:none; margin:0; padding:0}
#secondary a {border:0}
#directorswrap img {float:left;margin:1px;}
.projectwrap {float:left;}
.custhr img {min-width:100%}
.about img {float:right;width:50%; height:50%}

.trailer img a {position:relative; border:0; z-index:10}
.wrapedimg {position:relative; float:left;overflow:hidden;width:90px;height:70px; margin:1px;}
.wrapedimg img {}
.imgwrap {display:block;}

img.resize { z-index:1}
img.resize.resized {position:relative; width:110%; height:auto; z-index:1000; margin-left:-5%; margin-top:-5%; overflow:visible;}

div[class^="wrap"] img {z-index:1}
div[class^="wrap"].resized img {width:110%; height:110%; z-index:1000; margin-left:-5%; margin-top:-5%; overflow:visible}

.teamwrap {
	float:left;
	width:200px;
	height:360px;
	padding:10px;
	overflow: hidden;
	text-align:center;
}
.teamimg {cursor:pointer}

/* DEVICE & RESPONSIVE LAYOUT */
.header .nav-open-button {
    display: none; /* removes the nav toggle button for desktop site */
}
#media-query-trigger {
    /* instead of detecting the width of the window in simple/javascript/script.js it detects the visibility of this element (which is set using media queries) 
    instead to trigger the hiding/showing of nav and search in mobile mode */
    display: none;
    visibility: hidden;
}

/* BREAKPOINT 1024px */

@media only screen and (max-width: 1024px) {
	.no-sidebar .content-wrapper {
		width:75%; /* makes content container full width when there is no sidebar */
	}
}
/* BREAKPOINT 960px */

@media only screen and (max-width: 960px) {
	.content img {
	    max-width: 100%;
	    height: auto;
	}
	.header .primary ul {
	    margin-left: -12px;
	    -webkit-padding-start: 0px; /* removes default webkit padding on ul items */
	}


}

/* BREAKPOINT 640px */

/* when changing the breakpoint below, change it ito the same value in the script.js file as well */
@media only screen and (max-width: 640px) { 
	body {
	    max-width: 640px;
	}
	#media-query-trigger {
	    visibility: visible;
	}
	#navcontainer ul, .header, #footer .footer-left img, #footer .footer-right img {position:relative}
	#footer {margin-top:30px}
	.content-wrapper, .sidebar {padding-top:10px}
	.projectimg {clear:right}
	.about img {display:block;width:100%; margin-bottom:20px;}
	


	/* Main Content */
	.main {
	    padding: 0; /* decrease padding so that more content can fit on screen */
	}
	.content-wrapper,
	.sidebar {
	    width: 100%; /* sidenav is now shown above the page content */
	    margin-bottom: 30px;
	}
		.typography h1 { /* decrease size of page heading due to smaller screen */
		    font-size: 30px;
			line-height:35px;
		    margin-bottom: 15px;
		    padding-bottom: 10px;
		}
		.typography p {
/*
		    font-size: 14px;
		    line-height: 23px;
*/
		}
	p.intro {
	    font-size: 19px;
	    line-height: 27px;
	}
	.main .inner {
	    padding: 0 22px;
	}
	/* Secondry Nav */
	.secondary li a {
	    line-height: 24px;
	}
	.secondary li .arrow {
	    line-height: 26px;
	}
	/* Footer */
	.footer .right {
	    float: left;
	    width: 100%;
	}
}


/* Print Styles */

/* Based on HTML5 boilerplate print styles */
@media print {
	* {
	    background: transparent !important;
	    color: black !important;
	    box-shadow: none !important;
	    text-shadow: none !important;
	    filter: none !important;
	    -ms-filter: none !important;
	}
	a,
	a:visited {
	    text-decoration: underline
	}
	a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

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

	thead {
	    display: table-header-group
	}
	tr,
	img {
	    page-break-inside: avoid
	}
	img {
	    max-width: 100% !important
	}
	pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    @page {
        margin: 0.5cm;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

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

    /* Simple theme custom print styles */
	.header,
	.footer,
    .nav-open-button,
    .search-bar,
    .search-dropdown-icon,
    nav.primary {
	    display: none;
	}
}

img.resize {z-index:1}
img.resized {z-index:100}

.gallery-grid { margin: 0 auto; }
