/*

	Template Author : pixelhint.com (a contribution for bestpsdfreebies.com)
	Author Email    : contact@pixelhint.com
	Template Name   : Foto
	
	
	*****************************************
	
	
    - Header
	- Main content home/portfolio 
    - Inner page 
    - Responsive code
	
*/



/*  Fonts  */
@font-face {
    font-family: 'Roboto-Regular';
    src: url('../fonts/Roboto-Regular.eot');
    src: url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Regular.woff') format('woff'),
         url('../fonts/Roboto-Regular.ttf') format('truetype'),
         url('../fonts/Roboto-Regular.svg#RobotoRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'Roboto-Bold';
    src: url('../fonts/Roboto-Bold.eot');
    src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Bold.woff') format('woff'),
         url('../fonts/Roboto-Bold.ttf') format('truetype'),
         url('../fonts/Roboto-Bold.svg#RobotoBold') format('svg');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'Roboto-Medium';
    src: url('../fonts/Roboto-Medium.eot');
    src: url('../fonts/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Medium.woff') format('woff'),
         url('../fonts/Roboto-Medium.ttf') format('truetype'),
         url('../fonts/Roboto-Medium.svg#RobotoMedium') format('svg');
    font-weight: normal;
    font-style: normal;

}



/*  General CSS*/

nav ul li a:after,
.main .item a:after,
.social_widget .sm ul li a,
.main .item a h2,
.main .work .content{
	transition:all .2s linear;
	-webkit-transition:all .2s linear;
	-moz-transition:all .2s linear;
	-o-transition:all .2s linear;
}





/*  Header  */
@media (min-width:900px){

    header{
        display: block;
        float: left;
        width: 270px;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0,162,232,.5);
    }

    .logo{
        width: 225px;
        margin: 0 auto;
    }

    .logo img{
        margin-top: 40px;
    }

    nav{
        margin: 120px 0 80px 90px; 
        font-family: "Times New Roman", Times, serif,"Roboto-Regular", arial;
    }
	
    .gros{
        margin: 30px 0px 20px -60px;
        color: #fff;
        font-size: 36px;
        text-decoration: underline;
    }
    .moy{
        margin: 30px 0px 20px -60px;
        color: #fff;
        font-size: 26px;
        text-decoration: underline;
    }
	
    nav ul{
        position: relative;
        padding-top: 5px;
        list-style: none;
        overflow: hidden;
    }

    nav ul li{
        display: block;
        margin-bottom: 25px;
        
    }

    nav ul li a{
        color: #fff;
        font-size: 20px;
        letter-spacing: 1.5px;
        text-decoration: none;
        position: relative;
        padding-bottom: 5px;
    }

    nav ul li a:after,
    nav ul li.selected a:after{
        content: '';
        width: 0;
        height: 1px;
        background: #fff;
        position: absolute;
        left: 0;
        bottom: 0;
    }

    nav ul li a:hover:after,
    nav ul li.selected a:after{
        width: 100%;
    }


    .social_widget{
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
    }

    .social_widget .sm ul{
        list-style: none;
    }

    .social_widget .sm ul li a{
        display: block;
        position: relative;
        width: 66.7px;
        height: 60px;
        float: left;
        border-top: 1px solid #383838;
        border-right: 1px solid #383838;
        text-align: center;
        z-index: 1!important;
    }
    .social_widget .sm ul li:last-child a{
        border-right: 0; 
    }

    .social_widget .sm ul li a:hover{
        display: block;}

    .social_widget .sm ul li .fb:hover{
        background: #4b67a1;
    }

    .social_widget .sm ul li .t:hover{
        background: #55acee;
    }

    .social_widget .sm ul li .g:hover{
        background: #DD4B39;
    }

    .social_widget .sm ul li .mail:hover{
        background: #383838;
    }

    .social_widget .sm ul a  i{
        height: 15px;
        text-align: center;
        display: inline-block;
        margin-top: 23px;
        background: url('../img/sm.png') no-repeat;
    }

    .social_widget .sm ul li a.fb i{
        width: 8px; 
        background-position: 0 0;
    }

    .social_widget .sm ul li a.t i{
        width: 16px; 
        background-position: -9px 0;
    }

    .social_widget .sm ul li a.g i{
        width: 8px; 
        background-position: -26px 0;
    }

    .social_widget .sm ul li a.mail i{
        width: 16px; 
        background-position: -35px 0;
    }

}
#menu_icon{
    display: none;
}




/*  main content home/portfolio  */
.main{
    width: 100%;
    height: auto;
    padding-left: 270px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
}

.main .item_{
    width: 12.5%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.main .item{
    width: 25%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.main .item1{
    width: 50%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.main .item2{
    width: 62.5%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.main .item0{
    width: 100%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.main .work .media{
    width: 100%;
    vertical-align: middle;
}

.main .work1 .media{
    width: 100%;
    vertical-align: middle;
}

.main .work{
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.main .work1{
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.main .work .content{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background: #f4f4f4;
    opacity: 0;
}

.main .work1.content{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background: #f4f4f4;
    opacity: 0;
}

.main a.work:hover .content{
    opacity: 1;
}

.main a.work1:hover .content{
    opacity: 1;
}

.main .work .content h2{
    position: absolute;
    top: 50%;
    margin-top: -30px;
    opacity: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
    color: #535252;
    font-family: "Roboto-bold", arial;
    font-size: 18px;
    text-transform: uppercase;
}

.main .work1 .content h2{
    position: absolute;
    top: 50%;
    margin-top: -30px;
    opacity: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
    color: #535252;
    font-family: "Roboto-bold", arial;
    font-size: 18px;
    text-transform: uppercase;
}

.main a.work:hover .content h2{
    margin-top: -19.5px;
    opacity: 1;
}

.main a.work1:hover .content h2{
    margin-top: -19.5px;
    opacity: 1;
}

.main .item h2:after{
    content: '';
    display: block;
    width: 30%;
    height: 1px;
    background: #d5d5d5;
    text-align: center;
    margin: 20px auto 0 auto;
}



/*  inner page  */
.hero_img{
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    margin-bottom: 100px;
}

.hero_img img{
    vertical-align: middle;
    width: 100%;
}

#slider{
  width: 100%;
  max-height: 350px;
  position: relative;
  list-style: none;
  overflow: hidden;
  margin-bottom: 100px;
}

#slider li{
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

#slider img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
  vertical-align: middle;
}


@media (min-width:1400px){

    .hero_img,
    #slider{
        max-height: 500px;
    }

}

hr{
    width: 30%;
    height: 1px;
    margin: 60px auto;
    display: block;
    border: 0;
    background: #e9e9e9;

}

.main_content{
    padding: 0 100px 60px 100px;
}

.main_content h1{
    text-align: center;
    color: #3f3b3b;
    font-family: "Roboto-Regular", arial;
    font-size: 30px;
    letter-spacing: .5px;
}

.main_content p{
    text-align: center;
    margin-bottom: 40px;
    color: #676767;
    font-family: "Roboto-Regular", arial;
    font-size: 18px;
    line-height: 26px;
}




h1, h2, h3, h4, h5 ,h6{
    text-align: center;
    color: #3f3b3b;
    font-family: "Roboto-Regular", arial;
    letter-spacing: .5px;
}

h1              { font-size: 2em; margin: .67em 0 }
h2              { font-size: 1.5em; margin: .75em 0 }
h3              { font-size: 1.17em; margin: .83em 0 }
h5              { font-size: .83em; margin: 1.5em 0 }
h6              { font-size: .75em; margin: 1.67em 0 }
h1, h2, h3, h4,
h5, h6          { font-weight: bolder }




/*  Responsive code  */
@media (max-width:1000px){

    .main .item{
        width: 33.33333333333333%;
    }

}



@media (max-width:900px){

    header{
        background: #454444;
    }

    header .logo{
        display: inline-block;
        margin-left: 40px;
        padding: 40px 0;
    }

    header nav ul{
        list-style: none;
        display: none;
    }

    header nav ul li a{
        display: block;
        width: 100%;
        padding: 30px 0;
        text-align: center;
        background: #3e3d3d;
        text-decoration: none;
        border-bottom: 1px solid #393838;
        color: #fff;
        font-family: "Roboto-Regular", arial;
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .show_menu{
        display: block;
    }

    #menu_icon,
    .close_menu{
        display: block;
        float: right;
        margin-right: 40px;
        width: 19px;
        height: 19px;
        margin-top: 50px;
        cursor: pointer;
        background: url('../img/menu_icon.png') no-repeat;
       background-position: 0 0;
    }

    #menu_icon{
       background-position: 0 0;
    }

    .close_menu{
       background-position: -22px 0!important;
    }


    header .social_widget{display: none;}

    .main .item{
        width: 50%;
    }

    .main{
        padding-left:0;
    }

    .main_content {
        padding: 0 40px 60px 40px;
    }

}