/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.2;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
    font-family: 'mrseavfra';
    src: url('../fonts/mrseavfra-020415006EmigreWebOnly.eot');
    src: url('../fonts/mrseavfra-020415006EmigreWebOnly.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mrseavfra-020415006EmigreWebOnly.woff2') format('woff2'),
         url('../fonts/mrseavfra-020415006EmigreWebOnly.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'mrseavesitaliclining';
    src: url('../fonts/mrseavesitaliclining-020415006EmigreWebOnly.eot');
    src: url('../fonts/mrseavesitaliclining-020415006EmigreWebOnly.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mrseavesitaliclining-020415006EmigreWebOnly.woff2') format('woff2'),
         url('../fonts/mrseavesitaliclining-020415006EmigreWebOnly.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'mrseavsmacap';
    src: url('../fonts/mrseavsmacap-020415006EmigreWebOnly.eot');
    src: url('../fonts/mrseavsmacap-020415006EmigreWebOnly.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mrseavsmacap-020415006EmigreWebOnly.woff2') format('woff2'),
         url('../fonts/mrseavsmacap-020415006EmigreWebOnly.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'mrseavallsmacap';
    src: url('../fonts/mrseavallsmacap-020415006EmigreWebOnly.eot');
    src: url('../fonts/mrseavallsmacap-020415006EmigreWebOnly.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mrseavallsmacap-020415006EmigreWebOnly.woff2') format('woff2'),
         url('../fonts/mrseavallsmacap-020415006EmigreWebOnly.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}



body {
    color: #727272;
    font-family: 'mrseavesitaliclining', serif;
    font-size: 1.5em;
}

main {
    background: #e8e9ea;
    padding: 1em;
}

main img {
    width: 100%;
}

a, a:visited, a:link {
    text-decoration: none;
    color: #545A9D;
}

h2, h3, h4 {
    color: #545A9D;
    font-family: 'mrseavallsmacap', serif;
    font-weight: normal;
    text-transform: lowercase;
}

h2, h3, h4 {
    line-height: .8em;
    margin: 0.25em 0 0 0;
}

h2 {
    font-size: 1.25em;
}

p {
    font-size: .9em;
    margin: .65em 0;
}

/* header and main nav */
.promotion {
	background-color: #545A9D;
	color: #fff;
	display: block;
	text-align: center;
}

.promotion a {
	color: #fff;
	display: block;
	padding: 0.25em 5%;
	width: 90%;
}

.promotion span {
	white-space: nowrap;
}

header {
    padding: 1em;
}

.logo, nav {
    text-align: center;
}

.logo {
    padding-left: 1em;
}

.logo a > img {
    display: inline-block;
    margin: 0;
    max-width: 100px;
    width: 20%;
}

.logo h1 {
    line-height: 1em;
    margin: 0;
    width: 75%;
    display: inline-block;
}

.logo h1 > img {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.border-menu {
    position: relative;
    top: 1em;
}

.border-menu:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 0.18em;
    border-top: 0.5em double #ccc;
    border-bottom: 0.18em solid #ccc;
}

nav ul {
    list-style: none;
    font-family: 'mrseavallsmacap', serif;
    margin: 0;
    padding: 1em 0;
}

nav > ul > li {
    padding: .125em 0;
}
nav a {
    color: #ADADB5;
    display: block;
}

nav > ul > .sub.active {
    background: #F7F7F7;
    margin: .25em 0;
    padding: 1em 0;
}

nav a:hover, nav .active > a, nav .subnav .active > a,
a.next-project {
    color: #545A9D;
}

nav .subnav {
    display: none;
    font-family: 'mrseavesitaliclining', serif;
    font-style: italic;
    padding: .25em;
    text-transform: lowercase;
}

nav .active .subnav {
    display: inline-block;
    width: 35%;
}

nav .subnav span, a.next-project span {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid transparent;
    float: left;
    height: 0;
    margin: .5em 0 0 .5em;
    width: 0;
}
nav .subnav .active span, a.next-project span {
    border-left: 5px solid #9D9EA5;
}

a.next-project {
    display: inline-block;
    font-style: italic;
    margin-bottom: 1em;
    padding-left: 0;
    text-transform: lowercase;
}

ul.social {
	padding-top: 0;
	text-align: center;
}

ul.social li {
	display: inline-block;
	padding-left: .25em;
	max-width: 24px;
}

ul.social img {
	width: 100%;
}

/* home */
main.home, main.contact {
    background: none transparent;
}

.loader {
    display: none;
}

.home-fit, .contact-fit { object-fit: cover; }

.home-wrap img, .contact-wrap img { height: 100%; background-color: #444;}

.home-wrap img[class], .contact-wrap img[class] { 
    width: 100%;
}

.image {
    height: 100%;
    overflow: hidden;
}


/* portfolio & products */
.portfolio h2, .products h2 {
    font-family: 'mrseavesitaliclining', serif;
    font-size: 1.9em;
    text-align: center;
}

/* gallery pages, about, press */
.about div,
.portfolio > section,
.products > section,
.portfolio > div,
.products > div,
.gallery div,
.two-col > img,
#slider > div,
.trade-retail div:not(.banner),
section.single-product {
    padding-bottom: 6%;
}

.gallery div > img {
    width: 100%;
}


/* product gallery */

.banner {
	background-color: #545A9D;
	color: #fff;
	display: block;
	padding: 0.25em;
	text-align: center;
}

.banner a {
	color:#fff;
	text-decoration: underline;
}

/* product single */
.product > .gallery > div {
    display: inline-block;
    float: left;
    margin-right: 4%;
    vertical-align: top;
    width: 48%;
}

.product > .gallery > div:nth-child(2n){
	margin-right: 0;
}


/*trade-retail*/
.trade {
    margin-bottom: 4em;
}
.retail h2, .retail h3, .retail h4 {
    color: #68322C;
}
.trade-retail div > h3, .trade-retail p {
	margin: 0;
}


/*press*/
.press span {
	display: inline-block;
	margin-bottom: 1em;
}

/* contact */
.contact section {
    text-align: center;
}



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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

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

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 45em) {
        
    /* animations for loading screen */
    .loader {
        color: #fff;
        display: inherit;
        font-size: 5em;
        font-style: italic;
        left: 0;
        line-height: 1em;
        max-width: 100%;
        opacity: 1;
        overflow: hidden;
        position: absolute;
        text-align: center;
        top: 35%;
        transition: opacity 1.5s ease-out,
                    z-index 3s ease;
        z-index: 999;
    }
    .loader > img {
        max-width: 60%;
    }
    .done > .loader {
        opacity: 0;
        z-index: 0;
    }
 
     .home-wrap, .contact-wrap {
          position: absolute;
          height: 100%;
          width: 100%;
    }
    
    main.home, main.contact {
        padding-top: 0;
    }
 
    .index main img {
        display: none;
    }
    
    .index header {
        left: -100%;
    }
    
    .done > header {
        left: 0;
        transition: left 2s ease-in-out;
    }
    
    .no-js header {
        left: 0;
    }
    
    
    /* header/nav */
    header {
        background: white;
        height: 100%;
        max-width: 226px;
        padding: 1em 2em 0 0;
        position: absolute;
        z-index: 99;
        width: 23%;
    }
    
    #menu {
        display: none;
    }
    
    .logo {
        padding: 0;
    }
    
    .logo a > img {
        max-width: 120px;
        width: 80%;
    }
    
    .logo h1 {
        display: block;
        max-width: 400px;
        width: 100%;
    }

    .logo, nav > ul > li, nav > ul > .sub.active {
        padding-left: 1.5em;
    }

    nav {
	    position: relative;
	    bottom: 0;
        text-align: left;
    }
    
    nav .active .subnav {
        padding: 0;
        width: 95%;
    }
    
    nav .subnav span, a.next-project span {
        margin: .5em 0 0 .2em;
        padding-right: .25em;
    }
    
    a.next-project {
        padding-left: 1em;
    }
    
	ul.social {
		bottom: 1em;
		left: 0;
		padding-left: 1.25em;
		position: absolute;
		text-align: left;
	}

    main {
        left: 273px;
        min-height: 100%;
        padding: 1.5em 2em 0;
        position: absolute;
        right: 0;
        transition: width 1s linear, padding .5s ease-out;

    }
    
	/*about*/
	.katie > div {
    	    display: inline-block;
        vertical-align: top;
        width: 65%;
	}
	
	section.katie, section.partner, section.staff{
		margin-bottom: 1%;
	}
	
	.katie h2,
    .single-product h2 {
		margin-top:0;
	}
	
    /* gallery pages */
    .about div,
    .portfolio > section,
    .products > section,
    .portfolio > div,
    .products > div,
    .gallery div,
    .two-col > img,
    #slider > div,
    .trade-retail div:not(.banner) {
        padding-bottom: 3%;
    }

    .katie img,
    .staff > div,
    .partner div,
    .portfolio section,
    .products section,
    .portfolio > div {
        display: inline-block;
        margin-right: 2.5%;
        vertical-align: top;
        width: 31%;
	}

    .product > .gallery > div,
    .press .gallery div {
        display: inline-block;
        float: none;
        margin-right: 2%;
        word-break: break-word;
        vertical-align: top;
        width: 22.5%;
        
        -ms-word-break: break-all;
        word-break: break-all;
    
        /* Non standard for webkit */
        word-break: break-word;
    
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    
    .product > .gallery > div:nth-child(2n) {
	   margin-right: 2.5%
	} 
	  
    .staff > div:nth-of-type(3n),
	.portfolio section:nth-of-type(3n),
	.products section:nth-of-type(3n),
	.portfolio div:nth-of-type(3n),
    .product > .gallery > div:nth-of-type(4n),
    .press > .gallery > div:nth-of-type(4n),
    .trade-retail div:not(.banner):nth-of-type(4n) {
	    margin-right: 0;
	}

    
     /* project sliders */
    main.slider {
        padding-bottom: 1.5em;
    }
    .slider-wrapper {
        max-width: 100%;
    }
    #slider > div {
        height: 100%;
        padding: 0;
    }
    .lean-slider { overflow: hidden; }
    .lean-slider-slide {
        display: block;
        position: relative;
        opacity: 0;
        -webkit-transition: opacity 0.6s linear;
        -moz-transition: opacity 0.6s linear;
        -ms-transition: opacity 0.6s linear;
        -o-transition: opacity 0.6s linear;
        transition: opacity 0.6s linear;
    }
    .lean-slider-slide.current { opacity: 1; }
    .lean-slider-slide img { 
        display: block;
        margin: 0 auto;
        max-height: 100%;
        max-width: 100%; 
        width: auto;
    }
    .lean-slider-slide.vertical img { 
        margin: 0 auto;
        max-width: 100%; 
        width: auto;
    }
    #slider-direction-nav {
        position: absolute;
        left: 0;
        top: 47%;
        width: 90%;
        padding: 0 5%;
    }
    .slider-wrapper:hover #slider-direction-nav { opacity: 1; }
    #slider-direction-nav a {
        float: left;
        display: block;
        width: 26px;
        height: 40px;
        background: url(../img/arrows.png) no-repeat 0 0;
        text-indent: -9999px;
    }
    #slider-direction-nav .lean-slider-next {
        float: right;
        background-position: 100% 0;
    }
    .slider-wrapper:hover #slider-control-nav { opacity: 1; }
     
 
    /*fabric-single*/
    .banner {
        	margin-bottom: 1em;
        	padding: 1%;
        	width: 96%;
    }
    
    .single-product img {
        margin-right: 2.5%;
        width: 50%;
    }
    
    .single-product > div {
    	    display: inline-block;
        vertical-align: top;
        width: 46%;
	}
	


	 
	/*press*/
    .two-col > img {
        float: left;
        width: 48.75%;
    }
    .two-col > img:first-child {
        margin-right: 2.5%;
    }
    .press span {
        font-size: .95em;
        line-height: 1em;
    }


	/*trade-retail*/
	.trade-retail div:not(.banner) {
		display: inline-block;
		margin-right: 2.5%;
        word-break: break-all;
        vertical-align: top;
		width: 22%;
	}

	.contact section {
    	    background: #fff;
    	    margin: 10% auto;
    	    padding: 5%;
    	    width: 22%;
	}

}

@media only screen and (max-width: 62em) and (min-width:45em){
    header {
        padding: 1em 1.5em 0 0;
    }
    
    main {
        left: 28%;
        padding: 1.5em 1.5em 0;
        position: absolute;
        right: 0;
    }
    
    .banner {
        	width: 97%;
    }
    
	h3 {
		font-size: 0.95em;
	}
	.contact section {
    	    margin: 20% auto;
    	    padding: 5%;
    	    width: 42%;
	}
}


@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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