/*
 * 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: #fff;
}

body {
    font-size: 1;
    line-height: 120%;
}

div.3d {
    -webkit-transition: translate3d(0,0,0);
}

p {
    margin: 0;
}

/*
 * 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;
    float:left;
}

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

/* ==========================================================================
   custom styles
   ========================================================================== */

html {
    background:#fff;
}

body {
    position: absolute;
    background:#fff;
    width:100%;
    height:100%;
    -webkit-font-smoothing:antialiased;
} 

h1, h2, h3, h4, h5, h6 {
    margin:0;
    padding:0;
}

a, a:visited {
    color: #fff;
    text-decoration: none;
}

.left {
    position: relative;
    float: left;
}

.right {
    position: relative;
    float: right;
}

div, li, a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
}

#gifContainer {
    position: fixed;
    z-index: 0; 
    opacity: .66;
}

#gifContainer img {
    width: 100%;
    height: 100%;
}

.absCentered, #big-video-wrap {
    max-width: 100%;
    max-height: 100%;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
}

#big-video-wrap {
    overflow: hidden;
    opacity: 0;
}

#big-video-vid {
    position: absolute !important;
}

.dim {
    position: absolute;
    z-index: 1;
    background: rgba(0,0,0,.7);
    width: 100%;
    height: 100%;
    opacity: 0;
}

/*
HEADER
*/

header {
    position: fixed;
    width: 100%;
    height: 20px;
    padding: 25px 30px;
    top: 0;
    left: 0;
    background: #000;
    z-index: 10;

    text-transform:uppercase;
    font-family: Baskerville, serif;
    color:#fff !important;
    font-weight: 100 !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 3px !important;
}

header a h1 {
    font-size: 18px;
    font-weight: 100 !important;
    position: relative;
    top: -1px;
}

header nav a {
    font-size:10px;
    position: relative;
    top: -6px;
}

nav a, nav a:visited {
    text-decoration:none;
    cursor:pointer;
}

header div#logo a h1 {
    text-indent:-9999px;
    background:url(/static/img/logo-large.png) center center no-repeat;
    background-size: 124px 41px;
    width:124px;
    height:41px;
    float:left;
    position:relative;
    left:40px;
    opacity:0;
}

header nav {
    position: relative;
    right: 50px;
    top: 4px;
}

header nav ul {
    height: 10px;
    position: relative;
}

header nav ul li {
    float: left;
    padding-right: 20px;
    padding-left: 20px;
    border-right: 1px solid rgba(255,255,255,.9);
    height: 10px;
}

header nav ul li.last {
    border-right: none;
}

header ul, header li, nav ul, nav li {
    padding:0;
    margin:0;
}

/*
 * Footer
*/

footer#footer {
    font-family: Baskerville, serif;
    color: #fff !important;
    font-weight: 100 !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 3px !important;
    text-transform: uppercase;
    text-align: center;
    padding: 0 10% 0 10%;
    position: fixed;
    bottom: 8%;
    width: 80%;
    z-index: 2;
}

footer#footer div#title {
    border-top: 1px #464646 dotted;
    padding-top: 20px;
    font-size: 90%;
}

footer#footer div#tier1 {
    color: #acacac;
    font-size: 80%;
    margin-top: 25px;
}

footer#footer div#tier1 a, footer#footer div#tier2 a {
    color: #000;
    padding: 5px;
}

footer#footer div#tier1 a:hover {
    color: #fff;
    background: #000;
}

footer#footer div#tier2 {
    color: #acacac;
    font-size: 70%;
    margin-top: 25px;
}

footer#footer div#tier3 {
    font-size: 8px;
    line-height: 1.4em;
    color: #929292;
    font-family: Helvetica, san-serif;
    font-variant: small-caps;
    margin: 0 auto;
    -webkit-text-stroke: 0.2px;
    letter-spacing: 3px;
    padding: 20px 0;
}

footer#footer div {

}

footer#footer ul {

}

footer#footer ul li:first-child {
    border:none;
}

footer#footer ul li {
    display: inline;
    list-style: none;
    padding: 0 1.5% 0 2.2%;
    border-left: 1px solid;
}

/*
* Main
*/

#scroller {
    position: relative;
    width: 100%;
}

#scroller div#dim {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
}

#scroller article {
    font-family: Baskerville, serif;
    color:#000 !important;
    font-weight: 100 !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 3px !important;
}

#scroller article.about {
    position: relative;
    z-index: 0;
}

#scroller article.portfolio {
    position: relative;
    z-index: 1;
}

#scroller article p {
    margin:0;
}

#scroller article h2 {
    font-size: 22px;
    font-weight: 100 !important;
    text-transform:uppercase;
    text-align: center;
}

#scroller article h3 {
    font-size: 18px;
    font-weight: 100 !important;
    text-transform:uppercase;
    padding: 20px 0 0 0;
}

#scroller article div.icon {
    position: fixed;
    z-index: 1;
}

#scroller article div.marquee, #scroller article div.marquee div.slide {
    z-index: 0;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position-x: center !important;
    height: 100%;
}

#scroller article div.marquee.chrome {
    background-attachment: local !important;
}

#scroller article div.panel {
    position: relative;
    z-index: 2;
    padding: 50px 110px;
    background: #fff;
    color: #2d2d2d;
    height: 800px;

    -webkit-transition: translate3d(0,0,0);
}

#scroller article div.panel div.copy {
    width: 60%;
    position: relative;
    margin: auto;
    padding: 20px 0;
    letter-spacing: 1px;

    opacity: 0;
    top: 25px;
}

#scroller article.about div.marquee {
    background: #000;
}

#scroller article.about div.panel {
    background: #e6e6e6;
    height: 400px;
    text-align: center;
}

#scroller article.portfolio h2 {
    padding: 10px 0 40px 0;
    font-size: 175%;
}

#scroller article.portfolio div.panel div.left {
    position: relative;
    float: left;
    width: 34%;
    margin-right: 10px;
}

#scroller article.portfolio div.panel div.middle {
    position: relative;
    float: left;
    width: 30%;
    margin-right: 10px;
    height: 660px;

    margin-top: 50px;
    opacity: 0;
}

#scroller article.portfolio div.panel div.right {
    position: relative;
    float: left;
    width: 33%;
}

#scroller article.portfolio div.panel div.left div.top {
    position: relative;
    height: 370px;

    margin-top: 50px;
    margin-left: 50px;
    opacity: 0;
}

#scroller article.portfolio div.panel div.left div.bottom {
    margin-top: 10px;
    position: relative;
    height: 280px;

    margin-top: 50px;
    margin-left: 50px;
    opacity: 0;
}

#scroller article.portfolio div.panel div.left div.top div.media img {
    height: 100%;
}

#scroller article.portfolio div.panel div.left div.bottom div.media img {
    width: 100%;
}

#scroller article.portfolio div.panel div.middle div.media img {
    height: 100%;
}

#scroller article.portfolio div.panel div.right div.top {
    position: relative;
    height: 370px;

    margin-top: 50px;
    margin-left: 50px;
    opacity: 0;
}

#scroller article.portfolio div.panel div.right div.bottom {
    margin-top: 10px;
    position: relative;
    height: 280px;

    margin-top: 50px;
    margin-left: 50px;
    opacity: 0;
}

#scroller article.portfolio div.panel div.left div.top div.media img {
    height: 100%;
}

#scroller article.portfolio div.panel div.left div.bottom div.media img {
    width: 100%;
}

#scroller article.portfolio div.panel div.left div.top div.copy {
    position: absolute;
    z-index: 2;
    color: #fff;
    padding: 20px 30px;
    width: auto;
    height: auto;
}

#scroller article.portfolio div.panel div.media {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}

#scroller article.portfolio.simple div.panel {
    position: relative;
    z-index: 2;
    padding: 50px 110px;
    background: #fff;
    color: #2d2d2d;
    height: 800px;

    -webkit-transition: translate3d(0,0,0);
}

#scroller article.portfolio.simple div.panel div.copy {
    width: 60%;
    position: relative;
    margin: auto;
    padding: 20px 0;
    letter-spacing: 1px;

    text-align: center;
    padding-top: 0;
}

div.marquee div.carousel-arrows {
    top: 47%;
}

div.marquee div.carousel {
    height: 100%;
    margin-top: 0;
    opacity: 1;
}

div.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    opacity: 0;
    margin-top: 100px;
}

div.carousel ul.slides {
    width:20000em;
    position:absolute;
    height: 100%;
    margin: 0;
}

div.carousel ul.slides li.slide {
    float: left;
    position: relative;
    height: 100%;
    width: 100%;
    text-align: center;
    list-style: none;
}

article.about div.carousel-arrows {
    position: fixed;
    top: 47%;
    width: 100%;
}

div.carousel-arrows {
    position: relative;
    z-index: 2;
    top: 250px;
}

div.carousel-arrows a {
    position:absolute;
    width: 81px;
    height: 81px;
    cursor: pointer;
    background: url(../img/carousel-arrows.png) top left no-repeat;
}

div.carousel-arrows a.prev {
    position:absolute;
    left: 20px;
    background-position: 0;
}

div.carousel-arrows a.next {
    right: 20px;
    background-position: -81px 0;
}

#diamond {
    z-index: 3;
    opacity:0;
    background: #000;
    width: 10px;
    height: 10px;
    /* Rotate */
/*    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
     Rotate Origin 
    -webkit-transform-origin: 0 100%;
    -moz-transform-origin: 0 100%;
    -ms-transform-origin: 0 100%;
    -o-transform-origin: 0 100%;
    transform-origin: 0 100%;*/
}

#marquee {
    position: fixed;
    top: 50%;
    margin: auto;
    z-index: 10;
    text-align: center;
    margin-top: -9px;
    width: 100%;
}

#marquee h1 {
    text-transform: uppercase;
    font-family: Baskerville, serif;
    color: #fff !important;
    font-weight: 100 !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 3px !important;
    position: relative;
}

#marquee h1 img {
    margin-top: -15px;
    margin-left: -8px;
}

#video {
    background-color: #fff !important;
}

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

/*
 * Typekit replacement
 */


html.wf-loading {
    visibility:hidden;
}

html.wf-active {
    visibility:visible;
}

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

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/*iPad*/

@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
    div.commission {
        top: 0px !important;
    }
    div.commission div.gallery {
        float: none !important;
    }
    div.commission div.gallery div.thumbs {
        left: 0;
        position: relative;
        top: 0;
    }
    div.commission div.gallery div.thumbs div.thumb {
        margin-left:0 !important;
        margin-right:10px !important;
    }
    div.commission div.gallery div.thumbs div.thumb.active, div.news div#newsExpanded div.gallery div.thumbs div.thumb.active {
        /*border: none;*/
    }
    div.commission header {
        width: 100% !important;
    }
    div.commission div.content {
        /*top: 60px !important;*/
    }
    div.commission div.content div.primary {
        width: 75% !important;
    }
    div.commission div.content div.secondary {
        width: 25% !important;
    }
    a#portfolio {
        display: none;
    }
    header#header nav ul {
        left: 20px;
    }
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) {
    div.commission {
        top: 20px !important;
    }
    div.commission div.gallery {
        float: none !important;
    }
    div.commission div.gallery div.thumbs {
        left: 0;
        position: relative;
        top: 0;
    }
    div.commission div.gallery div.thumbs div.thumb {
        margin-left:0 !important;
        margin-right:10px !important;
    }
    div.commission div.gallery div.thumbs div.thumb.active, div.news div#newsExpanded div.gallery div.thumbs div.thumb.active {
        /*border: none;*/
    }
    div.commission header {
        width: 100% !important;
    }
    div.commission div.content {
        /*top: 60px !important;*/
    }
    div.commission div.content div.primary {
        width: 75% !important;
    }
    div.commission div.content div.secondary {
        width: 25% !important;
    }
    a#portfolio {
        display: none;
    }
    header#header nav ul {
        left: 20px;
    }
}

/*smaller tablets*/
@media screen and (max-width: 759px) and (min-width: 470px) {
/*    html {
        zoom:0.49;
    }*/
}

/*iphone and android*/
/*@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation: portrait) {*/

@media only screen and (min-device-width : 320px) and (max-device-width : 640px) {
    /*
     * HOME & GLOBAL
    */
    html {
        zoom: 0.654;
    }
    body {
        width: 490px !important;
        float: left !important;
    }
    footer#footer {
        bottom: 10px !important;
        font-size: 14px !important;
    }

    #marquee h1 {
        margin-top: -5px !important;
    }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation: landscape) {
    html {
        zoom: 0.4;
    }
    footer#footer {
        bottom: 10px !important;
        font-size: 8px !important;
        line-height: 100% !important;
    }

    #marquee h1 {
        margin-top: -15px !important;
    }

    #diamond {
        -webkit-transform-origin: 85px 50% !important;
        -webkit-transform: rotate(-45deg) !important;
        width: 170px !important;
        height: 170px !important;
    }
}

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