/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    background: black url('../img/bg.jpg') top center no-repeat;
}
.row{
    width: 940px;
    clear: both;
    margin: 0 auto;
}
#page-header{
    padding: 0.9375em 0 0 0;
}
#logo{
    float: left;
}
#main-nav{
    float: right;
    margin-top: 2.8125em;
    text-align: right;
}
#main-nav ul{
    margin: 0;
    padding: 0;
}
#main-nav li{
    float: left;
    /*margin: 0 0 0 25px;*/
    margin: 0;
    padding: 5px 15px 30px 15px;
}
.first{
    margin-left: 0 !important;
}
.active, #main-nav li:hover{
    background: #537826;
    padding: 5px 15px 30px 15px;
}
#main-nav li a{
    color: white;
    text-decoration: none;
}
#slider-wrap{
    position: relative;
    height: 39.4875em;
    background: url('../img/slider-bg.jpg') top center no-repeat;
    background-size: contain;
    padding: 1.875em 0 0 3.061224489795918%;
}
#slider-wrap ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
#slider-wrap li img{
    position: relative;
    z-index: 5;
}
#slider-wrap li p{
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 10;
    bottom: 20px;
    left: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 5px #666;
}
#home-quote{
    padding: 1.875em 5.102040816326531%;
    background: rgba(0,0,0,0.7);
    color: #cdc595;
}

.lt-ie9 #home-quote{
    background: url('../img/transparent-bg.png') top center repeat;
}

#home-quote p{
    margin: 0;
    padding: 0;
    font-size: 1.125em;
}
#home-author{
    margin-top: 1.25em;
}
#home-author p{
    font-size: 0.9375em;
}
.left{
    float: left;
}
.right{
    float: right;
}
#home-author a{
    text-decoration: none;
    color: #7eb3c8;
}
#home-author a span{
    color: #92be5c;
}
#page-footer{
    color: #cbcbcb;
    font-size: 0.75em;
}
.divider{
    padding: 0 1.326530612244898%;
}
#page-footer a{
    color: #7eb3c8;
    text-decoration: none;
}
#gallery-wrap, #main-wrap{
    background: url('../img/content-bg.jpg');
    background-image: -webkit-linear-gradient(left, #e9e9e9, #d9d6d3); 
    background-image: -moz-linear-gradient(left, #e9e9e9, #d9d6d3);
    background-image: -ms-linear-gradient(left, #e9e9e9, #d9d6d3);
    background-image: -o-linear-gradient(left, #e9e9e9, #d9d6d3);
    padding: 2.8125em 0;
}
#gallery{
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 95.159183673469388%;
}
#gallery li{
    display: inline-block;
    width: 29.871428571428571%;
    padding: 0 13px;
    margin: 0 0 35px 0;
    /*color: #333;*/
    vertical-align: top;
}
.lt-ie8 #gallery li{
    float: left;
}
#gallery li img{
    border: 2px solid #999;
    margin: 0;
    padding: 0;
    max-width: 100%;
}
#gallery p{
    text-align: left;
    padding: 1.25em 0 0 0;
    margin: 0;
    font-size: 85%;
}
.sub-head{
    background: #d0cbc7;
    padding: 3.125em 4.591836734693878% 2.1875em 4.591836734693878%;
}
.about{
    padding: 3.125em 7.653061224489796% 2.1875em 7.653061224489796%;
}
.sub-head h1{
    font: 34px 'Times', serif;
    color: #202020;
    margin: 0;
    padding: 0;
}
.sub-head h2{
    margin: 0;
    padding: 0;
    font: 16px Arial, sans-serif;
    color: #202020;
    font-weight: bold;
}
.sub-head h3{
    margin: 0;
    padding: 0;
    font: 21px Arial, sans-serif;
    color: #537826;
    font-weight: bold;
}
.sub-head p{
    padding-bottom: 0;
    margin-bottom: 0;
    color: #202020;
}
.sub-head a{
    color: #0074a3;
}
.sub-head a:hover{
    color: #202020;
}

.split-left{
    float: left;
    width: 46.808510638297872%;
    padding-left: 7.653061224489796%;   
}
    .split-left p{
        color: #202020;
        font: 15px Arial, sans-serif;
        margin: 0 0 1.25em 0;
    }

.split-right{
    float: right;
    width: 305px;
    padding-right: 7.653061224489796%;
}
    .split-right p{
        font: 24px/28px 'Clicker Script', cursive;
        color: #456b17
    }

#memberships{
    padding: 1.25em 0 0 0;
    border-top: 1px solid #ccc;
}
    #memberships h4{
        margin: 0 0 1.25em 0;
        padding: 0;
        font-size: 13px;
    }
    #memberships ul{
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 13px;
    }
    #memberships li{
        margin-bottom: .3em;
    }

#about-pic{
    margin: -9em 0 0 0;
}

.intro-para{
    padding-bottom: 1.25em;
    border-bottom: 1px solid #d0cbc7;
}
#contactForm ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
#contactForm li{
    margin-bottom: 10px;
}
#contactForm label{
    display: block;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 13px;
}
#contactForm label span{
    color: red;
}
#contactForm input{
    border: 2px solid #d0cbc7;
    width: 300px;
    padding: 4px 5px;
}
#contactForm textarea{
    border: 2px solid #d0cbc7;
    width: 460px;
    height: 90px;
    padding: 4px 5px;
}
.contactSubmit{
    width: 69px !important;
    height: 30px !important;
    color: white;
    font-size: 14px;
    background: url('../img/submit-bg.png') top center no-repeat;
    border: none !important;
    cursor: pointer;
}

/*.carousel-nav {
    position: absolute;
    top: 50%;
    height: 36px;
    cursor: pointer;
    text-decoration: none;
    background: transparent url('../img/blank.gif');
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    z-index: 8040;
    width: 36px;
}

#prev-btn {
    left: 10px;
    background-position: 0 -36px;
}

#next-btn {
    right: 10px;
    background-position: 0 -72px;
}*/
















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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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 */
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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

/****
    Fancybox
****/
/*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    vertical-align: top;
}

.fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8020;
}

.fancybox-skin {
    position: relative;
    background: #f9f9f9;
    color: #444;
    text-shadow: none;
    -webkit-border-radius: 4px;
       -moz-border-radius: 4px;
            border-radius: 4px;
}

.fancybox-opened {
    z-index: 8030;
}

.fancybox-opened .fancybox-skin {
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
       -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer, .fancybox-inner {
    position: relative;
}

.fancybox-inner {
    overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
    -webkit-overflow-scrolling: touch;
}

.fancybox-error {
    color: #444;
    font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
    margin: 0;
    padding: 15px;
    white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.fancybox-image {
    max-width: 100%;
    max-height: 100%;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span, #prev-btn span, #next-btn span {
    background-image: url('../img/fancybox_sprite.png');
}

#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    background-position: 0 -108px;
    opacity: 0.8;
    cursor: pointer;
    z-index: 8060;
}

#fancybox-loading div {
    width: 44px;
    height: 44px;
    background: url('../img/fancybox_loading.gif') center center no-repeat;
}

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

.fancybox-nav, .carousel-nav {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    background: transparent url('../img/blank.gif'); /* helps IE */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    z-index: 8040;
}

.fancybox-prev, #prev-btn {
    left: 0;
}

.fancybox-next, #next-btn {
    right: 0;
}

.fancybox-nav span, .carousel-nav span {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 8040;
    visibility: hidden;
}

.fancybox-prev span, #prev-btn span {
    left: 10px;
    background-position: 0 -36px;
}

.fancybox-next span, #next-btn span {
    right: 10px;
    background-position: 0 -72px;
}

.fancybox-nav:hover span {
    visibility: visible;
}

.fancybox-tmp {
    position: absolute;
    top: -99999px;
    left: -99999px;
    visibility: hidden;
    max-width: 99999px;
    max-height: 99999px;
    overflow: visible !important;
}

/* Overlay helper */

.fancybox-lock {
    overflow: hidden;
}

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 8010;
    background: url('../img/fancybox_overlay.png');
}

.fancybox-overlay-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
}

.fancybox-lock .fancybox-overlay {
    overflow: auto;
    overflow-y: scroll;
}

/* Title helper */

.fancybox-title {
    visibility: hidden;
    font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
    position: relative;
    text-shadow: none;
    z-index: 8050;
}

.fancybox-opened .fancybox-title {
    visibility: visible;
}

.fancybox-title-float-wrap {
    position: absolute;
    bottom: 0;
    right: 50%;
    margin-bottom: -35px;
    z-index: 8050;
    text-align: center;
}

.fancybox-title-float-wrap .child {
    display: inline-block;
    margin-right: -100%;
    padding: 2px 20px;
    background: transparent; /* Fallback for web browsers that doesn't support RGBa */
    background: rgba(0, 0, 0, 0.8);
    -webkit-border-radius: 15px;
       -moz-border-radius: 15px;
            border-radius: 15px;
    text-shadow: 0 1px 2px #222;
    color: #FFF;
    font-weight: bold;
    line-height: 24px;
    white-space: nowrap;
}

.fancybox-title-outside-wrap {
    position: relative;
    margin-top: 10px;
    color: #fff;
}

.fancybox-title-inside-wrap {
    padding-top: 10px;
}

.fancybox-title-over-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 10px;
    background: #000;
    background: rgba(0, 0, 0, .8);
}
