/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

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

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

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

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

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px "baskerville-urw",Georgia, serif;
    /*font: 12px/26px Helvetica,"baskerville-urw",Georgia, serif;*/
    font-weight: 300;
    letter-spacing: 0.02em;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}



/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: white;
    background: #e44d26;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* ==============
    MOBILE: Main
   ============== */




.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}





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

html,
body {
    height: 100%;
}

/*.galleria-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
}*/


/*.galleria-centred {
    background: #000;
    height: 670px;
    max-width: 1600px;
    width: 100%;

    overflow: auto;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}*/


#galleria {
    height: 100%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 5%;
/*    overflow: auto;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;*/
}


div.button {
    height: 5%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.galleria-layer {
    position: relative;
}


/*#galleria img {
        background: url(../assets/tsm-icon.png) no-repeat center -20px;

}*/


#galleria .caption {
    position: absolute;
    bottom: -25%;
    width: 100%;
    text-align: center;
    height: 2em;
    display: block;
}

#galleria span small {
    color: gray;
    font-size: 10px;
    padding: 0 .5em;
}

#galleria span a {
    /*font-size: .75em;*/
    font-weight: normal;
    /*letter-spacing: 0.025em;*/
    margin-top: 90px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #999;
}

#galleria span a:hover {
    color: #222;
}

.galleria-stage {
    padding: 0 50px 0 50px;
}

.galleria-thumbnails-container {
    display: none;
}


.audiojs,
.audiojs .play-pause,
.audiojs .pause,
.audiojs .scrubber,
.audiojs .time,
.audiojs .time strong,
.audiojs .progress,
.audiojs .loaded,
.audiojs .error-message,
.audiojs p,
.audiojs .time em {
    position: absolute;
    top: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
    line-height: 0;
    text-shadow: none;
    visibility: hidden;
}





.video-div
{
     position: absolute;
     margin: auto;
     top: 0;
     right: 0;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 100%;
}


div.wistia_popover_overlay {
    background-color:#000!important;
}




/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {


#galleria span {
    bottom: -20%;
}

#galleria span a {
    font-size: .9em;
}

.galleria-stage {
    /*padding: 0 50px 5% 50px;*/
    padding: 0 50px 0 50px;
}





/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}




@media only screen and (min-width: 768px) {

/* ====================
    WIDE:
   ==================== */

    #galleria span {
        bottom: -12%;
    }

    #galleria span a {
        font-size: 1.25em;
    }

    .galleria-stage {
        padding: 0 50px 0 50px;
    }

}

@media only screen and (min-width: 1025px) {
/*@media handheld {*/
    #galleria .hide-on-desktop {
        display: none;
    }
}



@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

    #galleria  {
        /*margin-top: -25px;*/
        /*min-height: 600px;*/
    }

    #galleria .caption {
        bottom: -9%;
    }

    .galleria-stage {
        padding: 0 50px 0 50px;
    }
}

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

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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;
    }

    #galleria
}
