* {
	margin: 0;
	padding: 0;
/*
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
*/
}
html,
body {
    height:100%;
}
body {
	position: relative;
	background-color: rgb(98, 98, 98);
	font-family: "Helvetica Neue", Helvetica, sans-serif;
	font-weight: 300;
	color: rgb(235, 235, 235);
}
h2 {
    margin-bottom: 18px;
    font-size: 1.3em;
    text-align: center;
}
h2,
h3 {
    font-style: italic;
}
h2,
h3,
h4 {
    font-size: 1.3em;
    font-family: 'Century Gothic', sans-serif;
}
h3,
h4 {
    margin: 6px 0 6px 0;
    font-size: 1.1em;
}
h4 {
    font-size: 1em;
}    
p {
  margin: 6px 0 12px 0;
}
a {
	color: rgb(235, 235, 235);
	text-decoration: none;
}
a:hover,
.image-navigation a:hover {
	color: #000;
}
a.current {
  color: #000;
}
iframe {
    display: block;
}
img {
    max-width: 100%;
    max-height: 100%;
}
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px 10px 10px;
}

/*                                ---------- STYLE FIX for IE */

@media screen and (min-width:0\0) { 
    img {
        max-width: 800px;
    }
}

/*                                ---------- STYLE FIX for Firefox */

@-moz-document url-prefix() {
    .homepage img,
    .image-wrapper img {
        height: 100%;
		width: 100%;
    }

}

/*                                ---------- Main Navigation */

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}
.navigation {
    padding: 40px 0 0 0;
    text-transform: uppercase;
    font-size: 15px;
    text-align: justify;
    /*border-bottom: 1px dotted #ccc;*/
}
.navigation li {
    display: inline-block;
    margin-bottom: 0;
}

.navigation li.hidden {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 0px;
}

/*                                ---------- SUB NAV */

.subnav,
.subnav-video {
	width: 200px;
	margin: 40px 50px 0 0;
	float: left;
	list-style: none;
}
.subnav {
	text-transform: uppercase;
}
.subnav-video {
	text-transform: lowercase;
}
.subnav li,
.subnav-video li {
    margin: 0 0 20px 0;
}
.subnav ul,
.subnav-video ul {
    list-style: none;
    margin: 0 0 0 20px;
    text-transform: none;
}
.subnav ul li,
.subnav-video ul li {
    margin: -10px 0 20px 0;
}
.text li {
    margin: 0 0 10px 0;
    list-style: none;
    line-height: 1.2em;
}

/*                                ---------- Home Page */

h1 {
	font-style: italic;
	font-size: 48px;
	font-weight: 100;
	text-align: center;
	color: rgb(235, 235, 235);
	margin: 20px auto 30px;
	clear: both;
}
table.homepage-table {
    max-width: 800px;
    margin: -10px auto auto;
    border-collapse: collapse;
}
td.homepage {
    display: block;
    margin-top: 40px;
}
.copyright-homepage {
    max-width: 800px;
    margin: 0 auto;
	text-align: center;
	color: rgb(160, 160, 160);
}

/*                                ---------- Article class for pages with IMAGES */

table.image-page {
    margin: -10px auto auto;
    max-width: 800px;
    height: 90%;
    border-collapse: collapse;
}
td {
    text-align: center;   
}
.image-wrapper img {
    margin-top: -5%;
}
.copyright {
	text-align: right;
	margin: 0 auto 10px auto;
	font-size: .75em;
	color: rgb(160, 160, 160);
}
.title {
	text-align: center;
	margin: 0;
	padding: 10px 0;
    font-size: .95em;
    line-height: 1em;
}

/*                                ---------- IMAGE Navigation */

.image-navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 40px;
    width: 200px;
    text-align: center;
    margin-left: -100px;
    padding-top: 5px;
    padding-bottom: 25px;
    background-color: rgb(98, 98, 98);
    -webkit-border-radius: 20px 20px 0 0;
    border-radius: 20px 20px 0 0;
    /*border-width: 1px 1px 0 1px;
    border-color: #717171;
    border-style: solid;*/
}
.image-navigation li {
    display: inline-block;
}
.image-navigation a {
    color: rgb(160, 160, 160);
    padding: 5px;
}
.arrow {
    font-weight: bold;
    font-size: 2em;
}
.grid-view {
    /*position: relative;
    top: -5px;*/
    font-size: .8em;
    vertical-align: super;
}

/*                                ---------- Article class for pages with TEXT */

.text {
  margin: 0 0 0 250px;
  padding-top: 40px;
  line-height: 1.5em;
}

/*                                ---------- Article class for pages with VIDEO */

.video {
    max-width: 640px;
    margin: 0 auto; /* 250px */
  padding-top: 40px;
  line-height: 1.5em;
}

.video-container {
    position: relative;
    clear: both;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*                                ---------- Thumbnails */

.blurb {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    padding-top: 20px;
    font-style: italic;
}
.thumbnails {
	text-align: center;
    margin-top: 20px;
}
.thumbnail-outer  {
	display: inline-block;
    vertical-align: middle;
    margin: 10px;
}
.thumbnail-inner a {
	display: table-cell;
	vertical-align: middle;
    text-align: center;
    height: 170px;
	width: 170px;
}
.thumbnail-inner a img {
    width: auto;
    height: auto;
}

/*                                ---------- MEDIA QUERRIES */

/*                                ---------- iPhone */

@media (max-width: 480px) {
    html,
    body {
        height: auto;
        width: auto;
    }
    .hide-header {
        display: none;
    }
    .image-wrapper {
        padding: 5px 10px 0 10px;
    }
    .image-navigation {
        position: relative;
        padding-top: 0;
    }
	h1 {
		font-style: italic;
		font-size: 48px;
		font-weight: 100;
		text-align: center;
		color: rgb(235, 235, 235);
		margin: 0 auto 60px;
		clear: both;
	}
    .thumbnail-outer {
        margin: 5px;
    }
    .thumbnail-inner a {
        height: 135px;
        width: 135px;
    }
    .blurb {
        text-align: center;
        max-width: 540px;
        margin: 0 auto 10px;
        font-style: italic;
    }
    .title {
        padding: 0;
    }
    .copyright {
        margin: -5px auto 10px auto;
    }
    .copyright-homepage {
        margin: 100px auto 0 auto;
    }
}

/*                                ---------- iPad */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    html,
    body {
        height: auto;
        width: auto;
    }
    .image-wrapper {
        padding: 0 10px;
    }
    .image-wrapper img {
        max-height: 480px;
        margin-top: 5px;
	}
    h1 {
        margin: 0 auto 20px;
    }
    .homepage img {
        max-height: 395px;
        margin-top: 0;
	}
    .image-navigation {
        position: relative;
        padding-top: 0;
    }
    .title {
        padding: 0;
    }
}

/*                                ---------- 800 PX */

@media (max-width: 800px) {
    .navigation {
        text-align: center;
    }
    .navigation li {
        display: inline-block;
        margin-bottom: 5px;
    }

    .navigation li a {
        padding: 10px;
        display: block;
    }
    .navigation li.hidden {
      display: none;
    }
}

/*                                ---------- 660 PX */

@media (max-width: 660px) {
	
    .text {
      margin: 0;
      padding-top: 30px;
        clear: both;
    }
    .subnav,
    .subnav-video {
		background-color: #6e6e6e;
        width: auto;
		margin: 0 -10px;
        text-align: center;
		float: none;
		list-style: none;
	}
	.subnav li,
	.subnav-video li {
		margin: 5px 20px;
        display: inline-block;
            
	}
	.subnav ul,
	.subnav-video ul {
		list-style: none;
		margin: 0 0 0 0;
		text-transform: none;
	}
    .subnav ul,
    .subnav-video ul {
        background-color: #808080;
        list-style: none;
        margin: 0;
        text-transform: none;
    }
    .subnav ul li,
    .subnav-video ul li {
        margin: 5px 10px;
    }
}

/*                                ---------- Vertical Image Resizing */
@media (max-height: 1200px) {
	.image-wrapper img {
		max-height: 800px;
	}
    .homepage img {
        max-height: 750px;
    }

}

@media (max-height: 1000px) {
	.image-wrapper img {
		max-height: 700px;
	}
    .homepage img {
        max-height: 650px;
    }
    .image-navigation {
        padding-top: 5px;
        padding-bottom: 10px;
    }

}
@media (max-height: 950px) {
	.image-wrapper img {
		max-height: 700px;
	}
    .homepage img {
        max-height: 600px;
    }
    
}
@media (max-height: 900px) {
	.image-wrapper img {
		max-height: 600px;
	}
    .homepage img {
        max-height: 550px;
    }
}
@media (max-height: 850px) {
	.image-wrapper img {
		max-height: 550px;
	}
    .homepage img {
        max-height: 500px;
    }
}
@media (max-height: 800px) {
	.image-wrapper img {
		max-height: 500px;
	}
    .homepage img {
        max-height: 450px;
    }
}
@media (max-height: 780px) {
	.image-wrapper img {
		max-height: 475px;
	}
    .homepage img {
        max-height: 390px;
    }
    .image-navigation {
        height: 30px;
        padding-top: 0;
        padding-bottom: 10px;
    }
}
@media (max-height: 700px) {
	.image-wrapper img {
		max-height: 450px;
	}
    .homepage img {
        max-height: 380px;
    }
}
@media (max-height: 680px) {
	.image-wrapper img {
		max-height: 425px;
	}
    .homepage img {
        max-height: 350px;
    }
}
@media (max-height: 640px) {
	.image-wrapper img {
		max-height: 370px;
	}
    .image-wrapper img {
        margin-top: 0;
    }
    .homepage img {
        max-height: 315px;
    }
}
@media (max-height: 600px) {
	.image-wrapper img {
		max-height: 280px;
        margin: 10px 0 0 0;
	}
    .homepage img {
        max-height: 250px;
    }
    table.image-page {
        margin: 0 auto;
        max-width: 800px;
        height: auto;
        border-collapse: collapse;
    }
    .image-navigation {         /* change image navigation stack */
        position: relative;

    }
}
@media (max-height: 400px) {
	.image-wrapper img {
		max-height: 250px;
	}
    .image-wrapper img {
        margin-top: 0;
    }
    .homepage img {
        max-height: 200px;
    }
}

/* iOS fix */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    
}
