/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

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

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

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #e1ded9 url('../img/white-bg.png') repeat-y center top;
    font-family: "Times New Roman", Georgia, Serif;
    font-size: 12.5px;
}

a {
    color: #907351;
}

#container {
    margin: 0 auto;
    width: 960px;
}

header {
    margin-bottom: 25px;
}

header h2 a {
    background: url('../img/logo.png') no-repeat 0 0;
    display: block;
    height: 162px;
    margin: 30px auto 25px;
    overflow: hidden;
    text-indent: 100%;
    width: 162px;
    white-space: nowrap;
}

nav {
    border-bottom: 1px solid #907351;
    border-top: 1px solid #907351;
}

.sf-menu {
    line-height: 1;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
}

.sf-menu li {
    display:inline-block;
    position: relative;
}

.sf-menu li ul {
    background: #ffffff;
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    min-width: 16em; /* allow long menu items to determine submenu width */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99;
}

.sf-menu li ul li {
    border-top: 1px solid #907351;
    display: block;
    text-align: left;
}

.sf-menu > li {
    /*float: left;*/
}

.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
    display: block;
}

.sf-menu li ul li:hover, .sf-menu li ul li.sfHover {
    background: #e1ded9;
    /* only transition out, not in */
    -webkit-transition: none;
    transition: none;
}

.sf-menu li:hover a, .sf-menu li.sfHover, .sf-menu li:hover ul li a:hover, .sf-menu li.sfHover a:hover, .sf-menu li.current a {
    color: #907351;
}

.sf-menu a {
    display: block;
    padding: 15px 20px;
    position: relative;
    text-decoration: none;
}

.sf-menu a, .sf-menu li:hover ul li a, .sf-menu li.sfHover ul li a {
    color: #000000;
}

.sf-menu li ul li a { padding: 10px 20px; }

h1, h3, h4 {
    color: #907351;
    font-size: 1em;
    margin: 0;
    text-transform: uppercase;
}

.item {
    float: left;
    margin-left: 16px;
    width: 228px;
}

.item.left {
    margin-left: 0;
}

.item.first { clear: left; }

.item img { max-width: 100% }

.item img.margin-bottom { margin-bottom: 16px; }

.double {
    width: 472px;
}

.item .block { display: block; }

footer {
    border-top: 1px solid #907351;
    font-size: 0.875em;
    margin-top: 16px;
    padding: 0 0 40px;
}

footer p {
    float: left;
    width: 228px;
}

/* homepage */

#intro {
    background: #e1ded9;
    height: 440px;
    padding: 16px;
    width: 196px;
}

#intro h1 { margin-bottom: 1em; }

/* categories */

.wrap {
    float: right;
    padding-bottom: 50px;
    width: 732px;
}

.wrap h1 { margin-left: 16px; }

.wrap .item { margin-top: 20px; }

.wrap.category .item h3 {
    color: #000000;
    font-size: 1em;
    margin: 15px 0 0;
    text-transform: uppercase;
}

.wrap.category.archive .item h3 { text-transform: none; }

.wrap.category .item h3 a { color: #000000; text-decoration: none; }

.item p { margin-top: 0; }

.item p.find-out-more { margin-top: -1em; }

ul.vertical-nav {
    border-top: 1px solid #907351;
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    width: 216px;
}

ul.vertical-nav li {
    border-bottom: 1px solid #907351;
    color: #907351;
    padding: 5px 2px;
}

ul.vertical-nav li a {
    color: #000000;
    text-decoration: none;
}

ul.vertical-nav li.current-cat a { color: #907351; }

.lightbox-content {
    display: none;
    width: 480px;
}

.lightbox-content img { max-width: 100%; }

/* contact */

.wrap.contact strong {
    color: #907351;
    font-weight: bold;
}

.contact .item {
    height: 400px;
    position: relative;
}

.contact .item img.absolute {
    bottom: 0;
    position: absolute;
}

#map-canvas {
    height: 100%;
    width: 100%;
}

#map-canvas img { max-width: none; width: auto; }

/*! fancyBox v2.1.5 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: #ffffff;
    color: #000000;
    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 {
    background-image: url('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('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 {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    background: transparent url('blank.gif'); /* helps IE */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    z-index: 8040;
}

.fancybox-prev {
    left: 0;
}

.fancybox-next {
    right: 0;
}

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

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

.fancybox-next 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 !important;
    width: auto;
}

.fancybox-lock body {
    overflow: hidden !important;
}

.fancybox-lock-test {
    overflow-y: hidden !important;
}

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 8010;
    background: url('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);
}

/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-device-pixel-ratio: 1.5){

    #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
        background-image: url('fancybox_sprite@2x.png');
        background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
    }

    #fancybox-loading div {
        background-image: url('fancybox_loading@2x.gif');
        background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
    }
}

#modal-overlay {
    background: rgba(0,0,0,0.5);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 800;
}

#modal-window {
    background: #ffffff;
    box-sizing: border-box;
    color: #000000;
    left: 50%;
    margin-left: -250px;
    padding: 20px;
    position: absolute;
    top: 20px;
    width: 500px;
    z-index: 1000;
}

#modal-window img {
    margin: 10px 0 5px;
    max-width: 100%;
}

#modal-window h2, #modal-window h3 {
    text-align: center;
    margin: 0;
}

#modal-window h3 {
    color: #000000;
    font-size: 1.125em;
    font-weight: normal;
    text-transform: none;
}

#modal-window a {
    color: #000000;
}

#close-modal {
    background: url('../img/close.png') no-repeat 0 0;
    background-size: 15px 15px;
    display: block;
    height: 15px;
    right: 20px;
    position: absolute;
    top: 20px;
    text-indent: -9999px;
    width: 15px;
}

/* ==========================================================================
   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.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* screens above 1220px wide */
@media screen and (min-width: 1220px) {

    body {
        background-image: url('../img/white-bg_large.png');
        font-size: 14px;
    }

    #container {
        width: 1220px;
    }

    header {
        margin-bottom: 34px;
    }

    .item {
        margin-left: 20px;
        width: 290px;
    }

    .item img.margin-bottom { margin-bottom: 20px; }

    .double {
        width: 600px;
    }

    footer {
        margin-top: 20px;
    }

    footer p {
        width: 228px;
    }

    #intro {
        height: 560px;
        padding: 20px;
        width: 250px;
    }

    ul.vertical-nav { width: 276px; }

    .wrap {
        width: 930px;
    }

    .wrap h1 { margin-left: 20px; }

    .wrap .item { margin-top: 20px; }

    .contact .item {
        height: 488px;
    }
}

/* iPad portrait */
@media only screen and (max-width : 1023px) {

    body {
        background: #ffffff;
        font-size: 12.5px;
    }

    #container {
        width: 716px;
    }

    header {
        margin-bottom: 25px;
    }

    header h2 a {
        background: url('../img/logo.png') no-repeat 0 0;
        height: 162px;
        margin: 30px auto 25px;
        width: 162px;
    }

    .item {
        float: left;
        margin-left: 16px;
        width: 228px;
    }

    .item.left {
        margin-left: 0;
    }

    .item.first { clear: left; margin-left: 0; }

    .item img { max-width: 100% }

    .item img.margin-bottom { margin-bottom: 16px; }

    .double {
        width: 472px;
    }

    footer {
        font-size: 0.875em;
        margin-top: 16px;
        padding: 0 0 40px;
    }

    footer p {
        width: 228px;
    }

    /* homepage */

    #intro {
        height: auto;
        margin-left: 0;
        margin-top: 16px;
        padding: 16px;
        width: 684px;
    }

    /* categories */

    .wrap {
        float: right;
        padding-bottom: 50px;
        width: auto;
    }

    .wrap h1 { margin-left: 0; }

    .wrap .item { margin-top: 20px; }

    ul.vertical-nav {
        display: none;
        width: 216px;
    }

    .news ul.vertical-nav {
        display: block;
    }

    .news .wrap {
        margin-left: 20px;
        width: 480px;
    }

    .news .wrap .item.double {
        margin-left: 0;
        width: auto;
    }

    .news .wrap .item.no-margin {
        display: none;
    }

    .lightbox-content {
        width: 480px;
    }

    /* contact */

    .contact .item {
        height: 400px;
        position: relative;
    }

    .contact .item img.absolute {
        bottom: 0;
        position: absolute;
    }

    #map-canvas {
        height: 100%;
        width: 100%;
    }

    #map-canvas img { max-width: none; width: auto; }

}

/* mobiles */
@media only screen and (max-width : 568px) {

    body {
        background: #ffffff;
        font-size: 12.5px;
    }

    #container {
        width: 90%;
    }

    header {
        margin-bottom: 25px;
    }

    header h2 a {
        background: url('../img/logo.png') no-repeat 0 0;
        height: 162px;
        margin: 30px auto 25px;
        width: 162px;
    }

    .item {
        float: left;
        margin-left: 0;
        width: 100%;
    }

    .no-mobile { display: none; }

    .item.left {
        margin-left: 0;
    }

    .item.first { clear: left; }

    .item img { max-width: 100%; width: 100%; }

    .item img.margin-bottom { margin-bottom: 16px; }

    .block { text-align: center; }

    .double {
        width: 100%;
    }

    footer {
        font-size: 0.875em;
        margin-top: 16px;
        padding: 0 0 40px;
    }

    footer p {
        width: 228px;
    }

    /* homepage */

    #intro {
        padding: 2%;
        width: 96%;
    }

    /* categories */

    .wrap {
        float: right;
        padding-bottom: 50px;
        width: 100%;
    }

    .wrap .item { margin-top: 20px; }

    ul.vertical-nav {
        display: none;
        width: 216px;
    }

    .lightbox-content {
        width: 230px;
    }

    /* contact */

    .contact .item {
        height: auto;
        position: relative;
    }

    .contact .item img.absolute {
        bottom: auto;
        position: static;
    }

    #map-canvas {
        height: 300px;
        width: 100%;
    }

    #map-canvas img { max-width: none; width: auto; }

    .sf-menu ul { display: none !important; }

    .wrap.category .item h3 a { text-decoration: underline; }

    .news ul.vertical-nav {
        display: block;
        margin-bottom: 20px;
        width: 100%;
    }

    .news .wrap {
        margin-left: 0;
        width: auto;
    }

    #modal-window {
        margin-left: -150px;
        padding-top: 40px;
        width: 300px;
    }

}

/* ==========================================================================
   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;
    }
}
