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

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

input {
	vertical-align: top;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's default styles -- ALL 
   ========================================================================== */
html {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 22px;
}

body {
    height: 100%;
}

p {
    font-family: Arial, sans-serif;   
    margin-top: 0;
    color: #666;
}

a {   
    text-decoration: none;
}

p a,
h2 a,
h4 a {
    color: #282828;
} 

p a {
    border-bottom: 1px solid;
}

p a:hover {color:#666;}

h1 {
    color: #282828;
    margin: 0;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 23px;
    font-weight: normal;
}

h2 {
    color: #666;
    margin: 0 0 21px 0;
    font-size: 16px;
    line-height: 23px;
    font-weight: normal;
}

.bodytext h1 {
	font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    line-height: 36px;
    text-transform: lowercase;
    margin-bottom: 20px;
}

.bodytext h2 {
    color: #282828;
}

h3 {
    color: #808080;
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 18px;
    font-weight: normal;
}

h4 {
    color: #808080;
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    font-weight: normal;
}
 
/* ==========================================================================
   Author's custom styles -- ALL 
   ========================================================================== */ 	
#start_overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

#container {
    width: 1050px;
    margin: 0 auto;
    min-height: 100%;
    position: relative;
}
   
#header {
    position: relative;
    width: 1000px;
    height: 70px;
    padding: 25px;
}

#header a {
    color: #808080;   
}

#header #logo {
    width: 300px; 
    display: block;
    float: left;
}

#header #logo span {
    color: #282828; 
    display: block;
}

#header #logo:hover {
    color: #282828; 
}

#nav-btn {
    display: none;
}

#slider-btn {
    position: absolute;
    display: block;
    width: 32px;
    height: 32px;
    top: 31px;
    right: 360px;
    background-image: url(../../images/projects-hover.png);
    background-size: 100% 100%;
}

#slider-btn:hover {
    background-image: url(../../images/projects.png);
}

#slider-btn.active {
    background-image: url(../../images/projects-close-hover.png);
}

#slider-btn.active:hover {
    background-image: url(../../images/projects-close.png);
}

#nav {
    display: table;
    list-style-type: none;
    width: 540px;
    margin: 0;
    padding: 0;
    float: right;
    text-align: right;
    direction: rtl;
}

#nav.new {
    width: 370px;
}

#nav .row {
    display: table-row;   
}

#nav li {
    display: table-cell;
    padding: 0 0 0 30px;
    min-width: 50px;
    text-transform:lowercase;
}

#nav li a {
    color: #575756;
}

#nav li a:hover,
#nav li a.selected{
    color: #808080;
}

#home-cycle {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 95px;
    z-index: 100;
}

#home-cycle > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#home-cycle + .cycle-pager {
    display: block;
    position: fixed;
    margin: 0 auto;
    width: 90vw;
    height: 5px;
    max-width: 1000px;
    bottom: 2vw;
    left: 0;
    right: 0;
    text-align: right;
    z-index: 100;
    font-size: 0;
    cursor: pointer;
}

#home-cycle + .cycle-pager span {
    display: inline-block;
    margin: 0 0 0 20px;
    width: 5px;
    height: 5px;
    color: transparent;
    background: #fff;
}

#home-cycle + .cycle-pager span.cycle-pager-active {
    background: #000;
}

#title-caption {
    position: fixed;
    font-size: 3vw;
    line-height: 3.6vw;
    color: #fff;
    width: 90vw;
    max-width: 1000px;
    margin: auto;
    bottom: 4vw;
    left: 0;
    right: 0;
    z-index: 101;
    text-align: right;
    
}

#title-caption h1 {
    text-transform:none;
    font-size: 6.4vw;
    line-height: 7.5vw;
    color: #fff;
}

#title-caption h1 br:nth-child(2) {
    display: none;
}

#title-caption a:hover h1,
#title-caption a:hover span{
    opacity: 0.5;
}

#home-overlay {
    transition: 0.3s ease;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 80px;
    padding-top: 10px;
    z-index: 150;
    background: #fff;
    mix-blend-mode: screen;
}

#home-overlay.show {
    opacity: 1;
    pointer-events: all;
}

#home-overlay-menu {
    transform-origin: top center;
    display: block;
    max-width: 500px;
    width: 90vw;
    padding-right: 170px;
    margin: 0 auto;
    text-align: right;
}

#home-overlay-menu a {
    font-size: 5.5vh;
    line-height: 6.5vh;
    color: #000;
}

#home-overlay-menu a:hover {
    //border-bottom: 0.3vh solid;
    opacity: 0.5;
}

#scaption1{
    display: inline-block;
    max-width: 60%;
}

.credits {
    margin-top: 40px;
}

.credits p {
    font-size: 11px;
    line-height: 14px; 
}

.col1_3 {
    width: 300px;
    margin: 0 25px;
    float: left;
}

.col1_3.coltainer {
    width: 324px;
    margin: 0 1px 0 25px;   
}

.col2_3 {
    width: 650px;
    margin: 0 25px;
    float: left;
}

.col2_3.coltainer {
    width: 700px;
    margin: 0;   
}

.jukebox p {
    color: #282828 !important; 
    font-family: 'Montserrat', sans-serif;
}

.col2_3 p {
    color: #808080;   
}

.col2_3 img,
.col1_3 img{
    margin-bottom: 5px;
}

.col1_3 img {    
    margin-top: 5px;   
}

.col2_3 img {    
    margin-top: 3px;   
}

.col2_3 iframe {
    max-width: 100%;
}

.sidebar {
    box-sizing: border-box; 
    margin-top: 28px;
    padding: 10px;
    background: #e7e7e7;  
    font-size: 14px;
    line-height: 18px;
    cursor: pointer
}

.sidebar:hover {
    background: #d2d2d2;   
}

.sidebar .cycle-slideshow {
    cursor: pointer;
}

.sidebar h3 {
    color: #282828; 
}

.sidebar img {
    margin-top: 0;
}

.h_gallery {
    padding: 0 25px;
    margin-bottom: 30px;
}

.b_gallery {
    margin: 20px 0 40px 0;
}

.iframe {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
}

.iframe iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#overlay2 .col1_3 {
    width: 1000px;
    margin: 0 25px 25px 25px;
    text-align: center;
}

#overlay2 .col2_3 {
    width: 600px;
    margin: 25px auto;
    float: none;
}

#overlay,
#overlay2 {
    color: #282828;  
    margin-top: -20px;
}
	
.work {
    display: block;
    color: #808080;
    margin-bottom: 18px;
    font-size: 14px;
}

.work img {
    margin-bottom: 3px;   
}

.work span {
    color: #b4b4b4;   
    float: right;
}

#slider {
    margin-left: 25px;  
    white-space: nowrap;
    position: relative;
    padding-bottom: 0px;
    width: 100%;
    //overflow-x:scroll;
}

#slide_container {
    position: relative;
}

.slide {
    min-width: 300px;
    margin-right: 50px;  
    display: inline-block;
    vertical-align: top;
}

.slide.text {
    width: 500px;
    white-space: normal;
    text-align: right;
}

.slide p {
    color: #808080;   
    line-height: 22px;
    margin-top: 3px;
}

.slide img {
	max-height: calc(100vh - 200px);
}

.slide img.landscape {
	max-height: calc(95vh - 200px);
}

.slide.text p {
    font-size: 16px;
    margin-top: 0px;
}

.slide .photo_text {
    text-align: right;
    max-width: 500px;
    white-space:normal;
    margin-top: -18px;
    
}

.slide .photo_text.ext,
.slide .photo_text.ext p {
    width: auto;
    max-width: none;
}

.slide .photo_text .intro {
    margin-top: 10px;
}

.slide .photo_text p,
.slide .photo_text h2,
.slide .intro {
    width: 500px;
}

.slide .photo_text p {
    font-size: 16px;
    line-height: 22px;
}

.slide .intro p {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    line-height: 36px;
    color: #808080;   
}

.prev,
.next {
    display: block;
    height: 70px;
    width: 70px;
    position: fixed;
    top: 365px;
    box-shadow: 7px 7px 5px rgba(60,60,60,0.6);
}

.prev {
    left: 0;
    background: url('../../images/prev.png') no-repeat;
}

.next {
    right: 0;
    background: url('../../images/next.png') no-repeat;
}

.bigcycle .cycle-slideshow {
	aspect-ratio: 3 / 2;
}

.bigcycle .cycle-slideshow img {
    left: 0px !important;
    right: 0px !important;
    height: 100% !important;
    width: auto!important;
    margin: 0px auto!important;
}

.smaller p {
    font-size: 14px;
    line-height: 18px;
}

#vimeo {
    margin: 0 25px 15px 25px;  
}

.review {
    display: block;
    cursor: pointer;
}  

.review:not(.disable) h4,
h4.black a {
    display: inline;
    border-bottom: 1px solid #282828;
    margin-bottom: -1px;
}

.review p {
    font-size: 14px; 
    line-height: 18px;
    margin: 0;
}

.review span {
    display: none;
}

.review.disable {
    pointer-events: none;
    cursor: auto;
}

.quote {
    display: block;
    font-size: 24px;
    line-height:29px;
    color: #282828;
    font-family: Georgia, serif;
    font-style: italic;
    margin-top: 10px;
}

.quote p {
    color: #282828;
    font-family: Georgia, serif;
    margin: 0;
}

.review {
    margin-bottom: 12px;   
    background:#fff;
}

.review:hover p {
    color: #282828;   
}

.review.disable:hover p {
    color: #666;   
}

.review_text,
.review_img {
    display: none;   
}

.review:hover h3,
.review:hover h4 {
    color: #282828;
}

.review:hover img {
    display: none;
}

.review:hover span{
    display: block;
}

#overlay,
#overlay2 {
    position: absolute;
    z-index: 100;
    min-height: 100%;
    height: auto;
    width: 1050px;
    padding: 25px 0;
    background: #fff;
    top: 0;
    display: none;
}

#overlay p {
    max-width: 600px;   
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
}

#overlay.gallery {
    z-index: 100;
}

#overlay.gallery #slider {
    margin-top: 120px;
}

#overlay.gallery .close {
    position: fixed;
    
}

.vimeo_thumb {
    display: block;
    float: left;
    width: 138px;
    height:72px;
    margin: 0 24px 24px 0;
}

.vimeo_thumb img {
    width: 138px;
    height: 72px;
    margin: 0;
}

.vimeo_thumb div {
    display: none;   
}

.vimeo-thumb {
    display: block;
    float: left;
    background: #000;
    width: 138px;
    height:90px;
    margin: 7px 7px 18px 27px;
}

a[title="Empty"] {
    cursor:auto;
    pointer-events: none;
}

a[title="Empty"] img {
    display: none;
}

.vimeo-col {
    width: 172px;
    float: left;  
}

.vimeo-colspan {
    width: 344px;
    float: left;
}

.vimeo-title {
    height: 73px;
}

.vimeo-row {
    height: 90px;
    margin: -7px 0 0 -27px;
}

.vimeo-row .vimeo-thumb {
    margin-bottom: 0;   
}

.vimeo-colspan.jukebox {
    width: 311px;
    height: 150px;
    float: right;
}

.vimeo-colspan.jukebox p {
    font-size: 14px;
    line-height: 18px;
}

.vimeo-thumb img {
    height: 90px;
}

.vimeo-div {
    width:655px;
    float: left;  
    margin: 7px 7px 0 27px;
}

.vimeo-div #vimeo {    
    margin: 0 0 15px 0!important;
}

.news {
    margin-bottom: 40px;   
}

.news:hover p{
    color: #282828;
}

.news img {
    margin-bottom: 3px;   
}

.news span {
    display: block;
    color: #808080;   
}

.purchase h1 {
    font-size: 14px;
    line-height: 18px;
}

.purchase p {
    font-size: 14px;
    line-height: 18px;
}

.info {
    display: block;
    font-size: 14px;
    margin-top: 15px;
    line-height: 18px;
    color: #808080;
}

span.gray {
    color: #666666;   
    font-family: Arial;
}

.black {
    color: #282828;   
}

.button_text {
    margin-top: 20px;   
}

.button_text p:last-child {
    margin-bottom: 0;   
}

.bigcycle {
    padding: 0 25px;
    margin-bottom: 30px;
}

.bigcycle p {
    color: #808080;
    margin-top: 2px;
}

.padbottom {
    padding-bottom: 40px;
}

.bgbutton {
    display: block;
    cursor: pointer;
    background: #e7e7e7;  
    padding: 10px;
}

.bgbutton:hover {
    background: #d2d2d2;   
}

.email {
    vertical-align: bottom;
    font-size: 13px;   
    height:28px;
    padding: 0 10px;
    width: 188px;
    margin-right: 8px;
    border: 1px solid #ccc;
}

.submit {
    border: 0;
    vertical-align: top;
    height:30px;
    font-size: 13px;   
    width:80px;
    color: #fff;
    background: #ccc;
}

.nxt, .prv {
    cursor: pointer; 
    margin-left: 5px;
}

.pager span {
    display: inline-block;
    width: 10px;
    height: 18px;
    line-height: 18px;
    vertical-align: top;
    text-align: center;
    cursor: pointer;    
    font-size: 8px;
}

span.cycle-pager-active {
    color: #000 !important;
}

.clear {
    clear: both;   
}

#footer {
    clear: both;
    height: 40px; 
    width: 950px;
    padding: 0 25px;
    margin-top: 50px;
    line-height: 16px;
}

#footer a {
    border: none !important;
}

#footer a:hover {
    color: #282828 !important;   
}

#footer p a {

    color: #666 !important;   
}

#footer p a:hover {
    color: #282828 !important;
}

#footer p {
    font-size: 11px;
    margin: 0;
    display: inline-block;
    margin-right: 20px;
}

.blogtitle {
    font-size: 18px;
    line-height: 24px;
    margin-top: 6px;
}

.bloglink {
    display: block;
    font-size: 14px;
    line-height: 16px;
    color: #666;
    margin-top: 15px;
    text-transform: lowercase;
}

.bloglink:hover,
.archivelink:hover {
    color: #282828;   
}

.archivelink {
    display: block;
    margin-top: 15px;
    line-height: 21px;
    font-family: Arial, sans-serif; 
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
    color: #666;
}

.emaillink {
    display: inline-block;
    border: 1px solid #808080;
    width: 82px;
    margin: 5px 8px 50px 0;
    line-height: 30px;
    color: #808080;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
}

.emaillink:hover {
    border: 1px solid #282828;
    color: #282828;
}

.btn-prev em,
.btn-next em {
    display: inline-block;
    color: #282828;
    font-size: 14px;
    line-height: 18px;
    font-family: Arial, sans-serif;
    font-style: normal;
    border-top: 1px solid #282828;
}

.btn-prev {
    display: block;
    float: left;   
}

.btn-next {
    display: block;
    float: right;  
    text-align: right;
}

.btn-prev span,
.btn-next span {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-prev:hover span,
.btn-next:hover span {
    color: #282828;   
}

.floatleft {
    float: left;
    height: 450px;
} 

#films p {
    font-size: 14px;
    line-height: 18px
}

#films p strong {
    color: #282828;   
}

#films .full {
    width: 1000px;
    margin: 0 25px;
}

#films .film-full h2 {
    margin-bottom: -8px;
}

#films .film-full::after,
#films .film-half::after {
    content: '';
    display: block;
    height: 1px;
    width: 1000px;
    margin: 45px 25px;
    background: #BDBDBD;
}

#films .film-full:last-child::after,
#films .film-half:last-child::after {
    background: #fff;
    margin: 0;
}

#films .film-half iframe {
    margin: 5px 0 0 0;
    line-height: 0;
}

#films p {
    margin-bottom: 0;   
}

.vimeo {
    display: block;
    width: 47px;
    height: 14px;
    background: url('../../images/vimeo.png') no-repeat bottom;
    background-size: 47px 28px;
    border: none;
}

.vimeo:hover {
    background-position: top;
}

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


/* ==========================================================================
   Firefox remove dotted lines
   ========================================================================== */

a:focus { 
    outline: none; 
}

button::-moz-focus-inner {
  border: 0;
}




/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media all and (min-width: 1050px) {
    html {
        overflow-x: hidden;  
    }
    
    #title-caption {
        font-size: 30px;
        line-height: 36px;
    }
    
    #title-caption h1 {
        font-size: 70px;
        line-height: 80px;
    }
}

@media all and (max-width: 1050px) {
    html {
        max-width: 1050px;
        width: 100%; 
        overflow-x: hidden;
    }
    
    #header {
        width: calc(100% - 50px);
    }
    
    #container {
        width: 90%;
    }
    
    .col1_3 {
        width: calc(50% - 50px);
    }
    
    .col1_3:not(.floatleft):nth-child(4) {
        margin-top: 50px;
    }
    
    #slider {
        width: 100%;
        overflow-x: hidden;
    }
    
    .col2_3 {
        width: calc(100% - 50px);
    }
    
    .col2_3 > img {
        width: 100%;
    }
    
    .col2_3 img {
        max-width: 100%;
    }
    
    .col2_3 > div {
        max-width: calc(100vw - 50px) !important;
    }
    
    .col1_3 > a .info {
        padding-bottom: 25px;
    }
    
    #films .full iframe,
    #films .film-half iframe {
        width: 100%;
        height: calc((100vw - 50px) * 0.56);
    }
    
    
    .slide p {
        white-space: normal;
    }
    
    #footer > div {
        padding: 6px 0 !important;
    }
    
    .col2_3,
    .bgbutton,
    .bodytext {
        margin-bottom: 80px;
    }
    
    .bodytext h1 {
    	margin-top: -50px;
    }
    
    .floatleft {
        height: calc(32vw + 190px);
    }
}

@media all and (max-width: 815px) {
    
    #slider-btn {
        width: 24px;
        height: 24px;
        right: 75px;
        top: 33px;
    }
    
    #home-overlay {
        position: absolute;
        top: -15px;
    }
    
    #home-overlay a {
        padding-right: 0;    
    }
    
    #home-cycle + .cycle-pager {
        bottom: 1.5vw;
    }
    
    #home-cycle + .cycle-pager span {
        margin: 0 0 0 10px;
        width: 3px;
        height: 3px;
    }
    
    .floatleft {
        height: auto;
    }
}

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

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

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