/*
Theme Name: Erez
Author: braican
Author URI: http://braican.com/
Description: This is a totally barebones theme to help expedite WordPress builds by providing a base point.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Erez
Domain Path: /languages/
Tags:

 Erez is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/


/* -----------------------------------
 * --colors
 * ----------------------------------- */


/* --------------------------------------------------------------
 * --reset
 * --------------------------------------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
html {
    font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
    overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */
    -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
    -ms-text-size-adjust:     100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
    -webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; see http://caniuse.com/#search=box-sizing */
    -moz-box-sizing:    border-box; /* Still needed for Firefox 28; see http://caniuse.com/#search=box-sizing */
    box-sizing:         border-box;
}
body {
    background: #fff; /* Fallback for when there is no custom background color defined. */
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
    display: block;
}
ol, ul {
    list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
    border-collapse: separate;
    border-spacing: 0;
}
caption, th, td {
    font-weight: normal;
    text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: "";
}
blockquote, q {
    quotes: "" "";
}
a:focus {
    outline: none;
}
a:hover,
a:active {
    outline: 0;
}
a img {
    border: 0;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}
ul, ol {
    margin: 0 0 1.5em 3em;
}
ul {
    list-style: disc;
}
ol {
    list-style: decimal;
}
li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}
dt {
    font-weight: bold;
}
dd {
    margin: 0 1.5em 1.5em;
}
img {
    height: auto; /* Make sure images are scaled correctly. */
    max-width: 100%; /* Adhere to container width. */
}
figure {
    margin: 0;
}
table {
    margin: 0 0 1.5em;
    width: 100%;
}
th {
    font-weight: bold;
}


/* --------------------------------------------------------------
 * --Typography
 * --------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
    color: #404040;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    clear: both;
}
p {
    margin-bottom: 1em;
    font-weight: 100;
}
p img{
    vertical-align: middle;
    margin-right: 8px;
}
a {
    color: inherit;
    text-decoration: none;
}
a:visited {
    color: purple;
}
b, strong {
    font-weight: bold;
}
dfn, cite, em, i {
    font-style: italic;
}
blockquote {
    margin: 0 1.5em;
}
address {
    margin: 0 0 1.5em;
}
pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}
code, kbd, tt, var {
    font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}
mark, ins {
    background: #fff9c0;
    text-decoration: none;
}
sup,
sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    bottom: 1ex;
}
sub {
    top: .5ex;
}
small {
    font-size: 75%;
}
big {
    font-size: 125%;
}


/* --forms */
button,
input,
select,
textarea {
    font-size: 100%; /* Corrects font size not being inherited in all browsers */
    margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
    vertical-align: baseline; /* Improves appearance and consistency in all browsers */
}


/* --------------------------------------------------------------
 * --layout
 * --------------------------------------------------------------*/

html, body.home, .main-navigation{
    height: 100%;
}

.site-content{
    padding-top: 42px;
    padding-left: 5px;
    padding-right: 5px;
}
.home .site-content{
    padding-top: 0;
}

.erez-gallery{
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}
.erez-gallery.active{
    visibility: visible;
    opacity: 1;
}



/* ---------------------------------------------------------------
 * --components
 * ---------------------------------------------------------------*/

/**
 * --site header
 */
.site-header{
    position: fixed;
    background: #fff;
    width: 100%;
    padding: 6px 10px;
    z-index: 10;
}
.site-branding{
    float: right;
}
.site-branding img{
    display: block;
}



/**
 * --menu
 */
.main-navigation {
    position: fixed;
    visibility: hidden;
    overflow: auto;
    opacity: 0;
    width: 100%;
    z-index: 8;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    background: rgba(255,255,255,.95);

    -webkit-transition: all .5s;
         -o-transition: all .5s;
            transition: all .5s;
}
.menu-open{
    overflow: hidden;
}
.menu-open .main-navigation{
    visibility: visible;
    opacity: 1;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 36px 5px 0;
}
.main-navigation li {
    display: block;
    position: relative;
    line-height: 1.05;
}
.main-navigation a {
    text-decoration: none;
    font-size: 92px;
    color: #000;
    font-weight: 700;
}
.main-navigation .current_page_item a,
.main-navigation a:hover {
    color: #666;
}




/**
 * --menu trigger
 */
.menu-trigger{
    float: left;
    cursor: pointer;
}
.menu-trigger a{
    display: block;
    position: relative;
    margin-top: 6px;
}
.menu-trigger a > span{
    display: block;
    width: 20px;
    height: 3px;
    background: #000;
    position: relative;
    top: 0;

    -webkit-transition: all .3s;
         -o-transition: all .3s;
            transition: all .3s;
}
.menu-trigger a .mid{
    margin-top: 3px;
}
.menu-trigger a .bottom{
    margin-top: 3px;
}

.menu-open .menu-trigger a .mid{
    opacity: 0;
}
.menu-open .menu-trigger a .top{
    top: 6px;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
         -o-transform: rotate(45deg);
            transform: rotate(45deg);
}
.menu-open .menu-trigger a .bottom{
    top: -6px;
    -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
         -o-transform: rotate(-45deg);
            transform: rotate(-45deg);
}




/**
 * --splash page
 */
.splash-page-img{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-position: center center;
    -webkit-background-size: cover;
    background-size: cover;
    text-align: center;
    display: table;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.splash-page-img .img-container{
    display: table-cell;
    width: 100%;
    vertical-align: middle;
}


#splash-video-overlay{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
#splash-video-overlay iframe{
    height: auto;
    width: auto;
    min-height: 100%;
    min-width: 100%;
}
#splash-video{
    position:fixed;
    top:0;
    left:50%;
    min-width:100%;
    min-height:100%;
    width:auto;
    height:auto;
    z-index:9999;
    /* background:url(http://erezsabag.com/wp-content/uploads/2015/01/output_FbyLJT.gif) no-repeat; */
    background-size:cover;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}



/**
 * --image grid
 */
.gallery-image{
    float: left;
    padding: 5px;
    cursor: pointer;
}
.gallery-image.hide{
    display: none;
}
.gallery-image .img-container{
    overflow: hidden;
    height: 100%;
}
.gallery-image img{
    display: block;
    width: 100%;
}
.gallery-image.portrait_small{
    width: 144px;
    height: 176px;
}
.gallery-image.portrait_large{
    width: 288px;
    height: 352px;
}
.gallery-image.landscape_small{
    width: 288px;
    height: 176px;
}
.gallery-image.landscape_large{
    width: 576px;
    height: 352px;
}

@media screen and (max-width: 620px){
    .gallery-image.landscape_large{
        width: 288px;
        height: 176px;
    }    
}




/**
 * --play button
 */
.play-btn-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
}
.play-btn-overlay svg{
    width: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: .5;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
         -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}



/**
 * --loading
 */
.loading{
    padding-left: 5px;
    padding-right: 5px;
}
.loading.inactive{
    display: none;
}
.loading-bar{
    display: block;
    width: 0px;
    height: 4px;
    background: black;    
}




/**
 * --image slider
 */
.slider{
    position: fixed;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
}
.slider-padding{
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 920px;
    overflow: hidden;
}
.slider-container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.slider .img-container{
    position: absolute;
    top: 60px;
    bottom: 60px;
    width: 300%;
    max-height: 800px;
}
#img-slide{
    height: 100%;
}
#img-slide.sliding{
    -webkit-transition: all .5s;
         -o-transition: all .5s;
            transition: all .5s;
}
#img-slide .slide{
    height: 100%;
    width: 33.3333333333%;
    min-height: 1px;
    float: left;
    text-align: center;
}
#img-slide .slide > div{
    height: 100%;
}
#img-slide .slide > div > img{
    max-height: 100%;
    max-width: 100%;
    width: auto;
}
.slider-open .slider{
    display: block;
}


/* gallery controls */
.slider .controls{
    text-align: right;
    position: absolute;
    bottom: 12px;
    width: 100%;
}
.slider .controls a{
    display: inline-block;
}
.slider .controls a + a{
    margin-left: 20px;
}
.slider .controls .ctrl-prev,
.slider .controls .ctrl-next{
    width: 12px;
}
.slider .controls .ctrl-close{
    width: 20px;
}
.slider .controls a svg{
    display: block;
    height: 20px;
}
.slider .controls .disabled svg{
    opacity: .2;
    cursor: default;
}



/**
 * --page
 */
.page-main{
    padding-left: 5px;
    padding-right: 5px;
}
.type-page{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.type-page .entry-content{
    max-width: 500px;
}


/**
 * --footer
 */
.site-footer {
    clear: both;
    width: 100%;
}



/*--------------------------------------------------------------
 * --media
 * --------------------------------------------------------------*/

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}
.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

.page-content img.wp-smiley,
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}
/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
    max-width: 100%;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0 auto;
}
.wp-caption-text {
    text-align: center;
}
.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}


.vimeo-wrapper{
    width: 100%;
    margin: 0 auto;
}
.vimeo-container{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --------------------------------------------------------------
 * --utility
 * --------------------------------------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar */
}

/* --clear */
.erez-cf:before,
.erez-cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.erez-cf:after {
    clear: both;
}
.erez-.cf {
    *zoom: 1;
}


/* --------------------------------------------------------------
 * --media queries
 * --------------------------------------------------------------*/

@media screen and (max-height: 820px){
    .main-navigation a{
        font-size: 60px;
    }
}
@media screen and (max-width: 1200px){
    .slider .controls .ctrl-close{
        margin-right: 10px;
    }
}


