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

}


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

}


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

}


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

}


/*  General CSS*/
body{
    background: url(../img/fond.png), repeat;
}
.wrapper{
    width: 92.72727272727273%;
    margin: 0 auto;
}

.vh100 {
    min-height: 100vh;
}

header ul.social li a,
.main .work a .caption,
header nav ul li a{
    transition:all .1s linear;
    -webkit-transition:all .1s linear;
    -moz-transition:all .1s linear;
    -o-transition:all .1s linear;
}

header ul.social li a,
.main .work1 a .caption,
header nav ul li a{
    transition:all .1s linear;
    -webkit-transition:all .1s linear;
    -moz-transition:all .1s linear;
    -o-transition:all .1s linear;
}
ul > li > a > span {

    font-family: "sosa-regular-webfont", arial;
    font-size: 17px;
    margin-right: 11px;
    padding: 6px;
    border: 1px solid;
    border-radius: 100%;
    line-height: 20px;

}
ul > li:hover, ul > li.selected {
    color: #b0c8ce;
}

h1, h2, h3, h4, h5 ,h6{
    color: #4b4848;
    font-family: "raleway-regular", arial;
}

h1              { font-size: 2em; margin: .67em 0 }
h2              { font-size: 1.5em; margin: .75em 0 }
h3              { font-size: 1.17em }
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 }

.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
 
.clearfix {  
    *zoom: 1;  
}


/*  Header  */
@media (min-width:1000px){
    header{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        min-height: 100%;
        padding: 0 0 0 50px;
        background: rgb(0, 100, 118) url(../img/texture.png);
        float: left;
        overflow: hidden;
        z-index: 9999;
    }

   header .logo, header .logoA {
        margin-top: 52px;
        border-radius: 100%;
        height: 100px;
        width: 100px;
        overflow: hidden;
        display: flex;
        border: 5px solid #fff;
    }

    header nav ul{
        display: block;
        margin-top: 100px;
        list-style: none;
    }

    header nav ul li{
        display: block;
        margin-bottom: 25px;
    }
	
    header nav ul li.galerie{
        display: block;
        margin-bottom: 15px;
    }
	
    header nav ul li.galerie1{
        display: block;
        margin-bottom: 30px;
    }

    header nav ul li a{
        color: #ffffff;
        font-family: "raleway-regular", arial;
        font-size: 14px;
        text-decoration: none;
        letter-spacing: 1px;
    }
	
    header nav ul li a.galerie{
        color: #ffffff;
        font-family: "raleway-regular", arial;
        font-size: 12px;
        text-decoration: none;
        letter-spacing: 1px;
		margin-left: 10px;
    }

    header nav ul li a:hover,
    header nav ul li a.selected{
        color: #b0c8ce;
    }
	
    header nav ul li a.galerie:hover,
    header nav ul li a.galerie_s{
        color: #b0c8ce;
        font-size: 12px;
		margin-left: 10px;
    }
	
    header .footer{
        position: absolute;
        bottom: 50px;
    }
	
	footer{
		display:none;
	}

    header ul.social{
        list-style: none;
        margin-bottom: 5px;
    }

    header ul.social li{
        display: block;
        float: left;
        position: relative;
        margin: 0 15px 15px 0;
    }

    header ul.social li a{
        display: block;
        width: 30px;
        height: 30px;
        background: url('../img/sm.png') no-repeat;
        background-position: 0 0;
    }

    header ul.social li a:hover{
        background-color: #000;
    }

    header ul.social li a.art,
    header ul.social li a.art:hover{
        background-position: 0 0;
    }

    header ul.social li a.jer,
    header ul.social li a.jer:hover{
        background-position: -31px 0;
    }

    header .rights p{
        color: #b0c8ce;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }

    header .rights a{
        color: #FFFFFF;
        font-family: "raleway-regular", arial;
        text-decoration: none;
        font-size: 10px;
    }

    header .rights a.lienML, footer .rights a.lienML {
        color: #fff;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }
	
    #menu_icon,
    .close_menu{
        display: none;
    }
}

#menu_icon,
.close_menu{
    float: right;
    margin-right: 40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: url('../img/men_icons.png') no-repeat;
}

#menu_icon{    
    background-position: 0 0;
}
.close_menu{
    background-position: -41px 0!important;
}






/*  Main  */
.main{
    width: 100%;
    height: 100%;
    padding-left: 300px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    z-index: 55;
    background: url(../img/fond.png), repeat;
    clear: both;
}







/*  Home/portfolio  */
.main .work{
    display: block;
    width: calc(33.33333333333333% - 5px);
    float: left;
    position: relative;
    overflow: hidden;
    height: 0px;
    margin: 2.5px;
    padding-bottom: calc(33.33333333333333% - 5px);
}

.main .work:nth-child(1), .main .work:nth-child(2), .main .work:nth-child(3) {
    margin-top: 5px;
    padding-bottom: calc(33.33333333333333% - 7.5px);
}

.main .work:nth-child(3n+0) {
    width: calc(33.33333333333333% - 2.5px);
    margin-right: 0px;
}

.main .work:nth-child(3n+1) {
    width: calc(33.33333333333333% - 7.5px);
    margin-left: 5px;
}

.main .work1 {
    display: block;
    width: calc(20% - 5px);
    float: left;
    position: relative;
    overflow: hidden;
    height: 0px;
    padding-bottom: calc(20% - 5px);
    margin: 2.5px;
}

.main .work1:nth-child(1), .main .work1:nth-child(2), .main .work1:nth-child(3), .main .work1:nth-child(4), .main .work1:nth-child(5) {
    margin-top: 5px;
    padding-bottom: calc(20% - 7.5px);
}

.main .work1:nth-child(5n+0) {
    width: calc(20% - 2.5px);
    margin-right: 0px;
}

.main .work1:nth-child(5n+1) {
    width: calc(20% - 7.5px);
    margin-left: 5px;
}

/* CA VA ETRE LES CLASSES POUR JS */

/* BIENTOT */

/*

...
...
...

*/

/* MAINTENANT */

/*if width (>=) height*/
.media-paysage {
    vertical-align: middle;
    margin: 0px;
    width: auto;
    height: 100%;
    position: absolute;
    left: 0;
}
/*else*/
.media-portrait {
    vertical-align: middle;
    margin: 0px;
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
}

/* C'ETAIT LES CLASSES POUR JS */

.media-paysage:hover, .media-portrait:hover{
    filter: contrast(130%) brightness(80%);
    transition-duration: 0.2s;
}
.caption{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background: #ffffff;
    opacity: 0;
    margin: 435px 0 0 5px;
}

a:hover .caption{
    opacity: 1;
    background: rgba(204, 130, 95, 0.8); 
	margin: 0px;
}

.work_title{
    display: block;
    width: 100%;
    position: absolute;
    text-align: center;
    top: 50%;
    margin-top: -40px;
}

.main .work .caption h1, .main .work1 .caption h1 {
    position: relative;
    display: inline-block;
    width: 40%;
    padding: 20px 0;
    z-index: 77;
    color: #ffffff;
    font-family: "raleway-regular", arial;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 2.5px;
    border-bottom: 5px solid #fff;
}

.work_title > h1 > span {

    font-size: 20px;
    font-family: "sosa-regular-webfont", arial;
    margin-right: 10px;

}

.main .work1 .caption h1 {
    width: 80%;
    border-bottom: 0px solid #fff;
}

/*  Inner Page  */
.top{
    width: calc(100% - 10px);
    height: 530px;
	margin: 5px;
    overflow: hidden;
    display: block;
    position: relative;
    background: url('../img/bandeau.jpg') no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-position: 12% 50%;
}

.content{
    color: #4b4848;
    font-family: "raleway-regular", arial;
    font-size: 15px;
    line-height: 22px;
    padding: 60px 30px;
    background: #fff;
    background: transparent;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.content p{
    color: #4b4848;
    font-family: "raleway-regular", arial;
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 60px;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6{
    color: #4b4848;
    font-family: "raleway-semibold", arial;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 30px;

}







/*  Tooltip  */
.tooltip{
    display: block;
    padding: 7px 10px;
    background: #181B1B;
    color: #fff;
    font-family: "raleway-regular", arial;
    font-size: 12px;
    position: absolute;
    white-space: nowrap;
    z-index: 999;
    opacity: 0;
    text-align: center;
    letter-spacing: .5px;

}

.tooltip:after{
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 3px 3px 0 3px;
    border-color: #181B1B transparent transparent transparent;
    display: block;
    text-align: center;
    position: absolute;
    bottom: -3px;
    left: 50%;
    margin-left: -3px;
}





/*  formulaire de contact  */
.content1{
    display: flex;
    flex-wrap: wrap;
	color: #4b4848;
	background: url(../img/fond.png), repeat;
    font-family: "raleway-regular", arial;
    font-size: 15px;
    min-height: 100vh;
}
.content1 > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: calc(25% - 10px);
    margin: 5px;
    overflow: hidden;
}
.content1 > .img-d {
    justify-content: flex-start;
}
.content1 > div > h4 {
    padding: 20px;
    background: rgba(0, 100, 118, 0.3);
    color: #fff;
    text-align: center;
}
.content1 > div:nth-child(2) {
    display: block;
    width: calc(50% - 100px);
    min-height: auto;
    margin: 50px;
}
.content1 > div > img{
    width: auto;
    height: 100vh;
}
.content1 > div:nth-child(2) > h3{
    width: 100%;
    color: #4b4848;
    font-family: "raleway-semibold", arial;
    font-weight: bold;
    line-height: 28px;
}
.content1 > div:nth-child(2) > p {
    width: 100%;
    margin-top: 25px;
    background: rgba(0, 100, 118, 0.3);
    padding: 20px;
    padding-left: 0px;
    color: #fff;
    letter-spacing: -0.8px;
    text-align: center;
}
.content1 > div:nth-child(2) > p:nth-child(2){
    margin-top: 7px;
}
.content1 > div > form{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}
.content1 > div > p > span {
    font-family: sosa-regular-webfont;
    font-size: 18px;
}
.content1 > div > p > span:nth-child(2) {
margin-left: 10px;
}
#message {
    height: 200px;
}
.content1 > div > form > div {
    width: calc(50% - 25px);
}
.content1 > div > form > div:nth-child(1) {
    margin-right: 25px;
}
.content1 > div > form > div:nth-child(2) {
    margin-left: 25px;
}
.content1 > div > form > div:nth-child(4){
    width: 100%;
}
.content1 > div > form > div > input, .content1 > div > form > div > textarea {
    width: calc(100% - 15px);
    padding: 7.5px;
}
button, input, select, textarea {
    font-family: raleway-regular;
    font-size: 15px;
    border: 0 none;
    color: #000000;
    margin: 5px auto auto;
    padding: 3px;
    text-shadow: none;
    vertical-align: baseline;
}
button, input {
    line-height: normal;
    margin-bottom: 5px;
    margin-top: 5px;
}
table button, table input {
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
    padding: 7.5px;
    font-family: raleway-regular;
    font-size: 15px;
    width: 100%;
	background: rgba(0, 100, 118, 0.3);
    letter-spacing: 1px;
    transition: background 0.3s, letter-spacing 0.3s;
    text-transform: uppercase;
    color: #fff;
    margin-top: 0px;
}
button, input[type="button"], input[type="reset"], input[type="submit"]:hover {
    cursor: pointer;
    width: 100%;
    background: rgba(0, 100, 118, 0.2);
    letter-spacing: 2.5px;
    color: #fff;
}
input[type="checkbox"], input[type="radio"] {
}
input[type="search"] {
    -moz-box-sizing: content-box;
}
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0 none;
    padding: 0;
}
textarea {
    overflow: auto;
    resize: vertical;
    vertical-align: top;
    width: 100%;
}
.error-message{
	color:#FF9000;
}
#erreureNom, #erreureEmail, #erreureMessage{
    color: rgba(226, 113, 4, 1);
    opacity: 0;
    transition: opacity 0.3s;
}
input:valid, textarea:valid {
}
input:invalid, textarea:invalid {
    background-color: #F0DDDD;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
td {
    vertical-align: middle;
    padding: 5px;
}
ul li ul {
    margin-top: 19px;
    margin-left: 15px;
    border-left: 1px dashed #b0c8ce;
    padding-left: 5px;
}
.nom {
    font-family: "raleway-regular", arial;
    text-transform: uppercase;
    color: #fff;
    font-size: 22px;
    font-weight: lighter;
    position: absolute;
    margin-top: 16px;
    cursor: default;
    max-width: 130px;
}
.avatar {

    display: inline-block;
    margin-bottom: 62px;

}
.logo > a > img {
    height: 100%;
}
.logoA > a > img {
    height: 100%;
    margin-left: 0%;
    transition: margin-left 0.2s;
}
.logoA > a > img:hover {
   margin-left: -50%;
   transition: margin-left 0.2s;
}
hr {
	border: 0;
}
.aPropoRub {
    columns: 3;
    column-gap: 50px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    padding-top: 40px;
    padding-bottom: 40px;
}
.aPropo h3:first-child {
    margin-top: 0px;
    text-align: left;
    padding: 20px;
    background: rgba(0, 100, 118, 0.3);
    color: #fff;
}
.aPropo hr {
    margin-top: 0px;
	margin-bottom: 90px;
}
.aPropoRub h3:nth-child(2), .aPropoRub h4:nth-child(2), .aPropoRub p:nth-child(2) {
    margin-top: 0px;
}
.aPropoRub h2 {
    position: absolute;
    margin-top: -98px;
    padding-bottom: 15px;
    padding-top: 15px;
    background: rgba(0, 100, 118, 0.3);
    padding-left: 20px;
    margin-left: -20px;
    color: #fff;
    width: calc(100% - 80px);
}
.aPropoRub h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: rgba(0, 100, 118, 0.3);
    color: #fff;
    padding-left: 10px;
}
.aPropoRub h4 {
    margin-top: 15px;
    margin-bottom: 7px;
}
.aPropoRub p {
    margin-bottom: 7px;
}
.aPropo img {
    width: 100%;
    height: auto;
    margin-top: 15px;
}
.aPropo img:nth-child(2) {
    width: 100%;
    height: auto;
    margin-top: 0px;
}
.aPropo .sansMT {
    margin-top: 15p#EB963C33x;
}

.vente {
    z-index: 99;
    position: absolute;
    padding: 7px;
    width: 80px;
    right: -23px;
    background: #006274;
    font-family: "raleway-regular", arial;
    text-align: center;
    color: #ffffff;
    transform: rotateZ(45deg);
    font-size: 13px;
    top: 10px;
}

.ateliers {
    text-align: center;
    font-size: 13px;
    width: 100%;
    margin-top: 15px;
}

.imgatelier {
    margin-top: 15px!important;
}

table > thead > tr th {
    padding: 10px;
}

thead > tr:first-child > th {
    background: rgba(0, 100, 118, 0.3);
    color: #fff;
}

tr:nth-of-type(2n+1) {
    background-color: #f1f6f8;
}

header nav > ul {
    margin-top: 50px;
}

header nav ul li div {
    display: block;
    height: 0px;
    overflow: hidden;
}

header nav ul li:first-child .afficheMenu {
    height: calc(32px * 6);
    height: 0px;
}

header nav ul li:nth-child(2) .afficheMenu {
    height: calc(32px * 5);
    height: 0px;
}

header nav ul li:first-child:hover div {
    display: block;
    height: calc(32px * 6);
    transition: height 0.3s;
}

header nav ul li:nth-child(2):hover div {
    display: block;
    height: calc(32px * 5);
    transition: height 0.3s;
}

@media (max-width: 370px){
    .nom {
        margin-left: 103px;
        margin-top: 29px !important;
        width: 100px;
    }
}
/*  Responsive code  */
@media only screen and (max-aspect-ratio: 1/1) {
	header .footer {
		display: none;
	}
	
	footer{
		background: none repeat scroll 0 0 #2e2e51;
		height: 180px;
		margin-left: 305px;
		margin-top: 5px;
		display: block;
	}
	
    header .footer{
        position: absolute;
        bottom: 50px;
    }

	footer .footer {
        position: absolute;
        margin: 50px;
	}

	footer ul.social{
        list-style: none;
        margin-bottom: 5px;
    }

	footer ul.social li{
        display: block;
        float: left;
        position: relative;
        margin: 0 15px 15px 0;
    }

	footer ul.social li a{
        display: block;
        width: 30px;
        height: 30px;
        background: url('../img/sm.png') no-repeat;
        background-position: 0 0;
    }

	footer ul.social li a:hover{
        background-color: #000;
    }

	footer ul.social li a.art,
    footer ul.social li a.art:hover{
        background-position: 0 0;
    }

	footer ul.social li a.jer,
    footer ul.social li a.jer:hover{
        background-position: -31px 0;
    }

	footer .rights p{
        color: #b0c8ce;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }

	footer .rights a{
        color: #FFFFFF;
        font-family: "raleway-bold", arial;
        text-decoration: none;
    }
	
}
@media (max-width:1400px){
     .main .work1{
        width: calc(25% - 5px);
        height: 0px;
        padding-bottom: calc(25% - 5px);
	}

    .main .work1:nth-child(1), .main .work1:nth-child(2), .main .work1:nth-child(3), .main .work1:nth-child(4), .main .work1:nth-child(5) {
        margin-top: 5px;
        padding-bottom: calc(25% - 7.5px);
    }

    .main .work1:nth-child(5) {
        margin-top: 2.5px;
        padding-bottom: calc(25% - 5px);
    }

    .main .work1:nth-child(5n+0) {
        width: calc(25% - 5px);
        margin-right: 2.5px;
    }

    .main .work1:nth-child(5n+1) {
        width: calc(25% - 5px);
        margin-left: 2.5px;
    }

    .main .work1:nth-child(4n+0) {
        width: calc(25% - 2.5px);
        margin-right: 0px;
    }

    .main .work1:nth-child(4n+1) {
        width: calc(25% - 7.5px);
        margin-left: 5px;
    }

	footer{
		display: block;
	}
	footer .footer {
        position: absolute;
        margin: 30px;
	}

	footer ul.social{
        list-style: none;
        margin-bottom: 5px;
    }

	footer ul.social li{
        display: block;
        float: left;
        position: relative;
        margin: 0 15px 15px 0;
    }

	footer ul.social li a{
        display: block;
        width: 30px;
        height: 30px;
        background: url('../img/sm.png') no-repeat;
        background-position: 0 0;
    }

	footer ul.social li a:hover{
        background-color: #000;
    }

	footer ul.social li a.art,
    footer ul.social li a.art:hover{
        background-position: 0 0;
    }

	footer ul.social li a.jer,
    footer ul.social li a.jer:hover{
        background-position: -31px 0;
    }

	footer .rights p{
        color: #b0c8ce;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }

	footer .rights a{
        color: #FFFFFF;
        font-family: "raleway-bold", arial;
        text-decoration: none;
    }

    header .rights a.lienML, footer .rights a.lienML {
        color: #fff;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }
        .aPropoRub {
	    columns: 2;
	    column-gap: 50px;
	}
}
@media (max-width:1100px){

    .main .work1:nth-child(4n+0) {
        width: calc(25% - 7.5px);
        margin-right: 5px;
    }

    .main .work1:nth-child(4n+1) {
        width: calc(25% - 7.5px);
        margin-left: 5px;
    }
footer {
    background: rgb(0, 100, 118) url(../img/texture.png);
    width: calc(100% - 10px);
    height: 120px;
    margin-left: 5px;
    margin-top: 5px;
}
	footer .footer {
	display: inherit;
	}
    header{
        display: block;
        width: 100%;
        min-height: 100px;
        padding: 0;
        position: relative;
		background: rgb(0, 100, 118) url(../img/texture.png);
    }
     header .logo, header .logoA {
        margin-top: 21px;
        border-radius: 100%;
        height: 50px;
        width: 50px;
        overflow: hidden;
        display: flex;
        position: absolute;
        margin-left: 24px;
        border: 5px solid #fff;
    }
    .logoA > a > img:hover {
       margin-left: -25%;
       transition: margin-left 0.2s;
    }
    .nom {
        margin-left: 103px;
        margin-top: 30px;
    }
    header .footer{
        display: none;
    }
    header #menu_icon,
    header .close_menu{
        float: right;
        margin: 30px 30px 0 0;
    }
    header nav ul{
        list-style: none;
        display: none;
        margin-top: 35px;
        position: relative;
    }
    header nav ul li{
        display: block;
        margin-bottom: 0px;
    }
    header nav ul li a{
        display: block;
        width: 100%;
        padding: 30px 0;
        text-align: center;
        color: #ffffff;
        font-family: "raleway-regular", arial;
        font-size: 14px;
        text-decoration: none;
        border-top: 1px solid #ffffff;
        background: ##37374B;
    }
    header nav ul li a:hover,
    header nav ul li a.selected{
        color: #b0c8ce;
	}
    header nav ul li.galerie{
        display: block;
        margin-bottom: 0px;
    }
    header nav ul li.galerie1{
        display: block;
        margin-bottom: 15px;
    }
    header nav ul li a.galerie{
        font-family: "raleway-regular", arial;
        font-size: 12px;
        text-decoration: none;
        letter-spacing: 1px;
		width: 50%;
		margin: auto;
		padding: 15px 0;
        border-top: 1px dashed #b0c8ce;
    }
    header nav ul li a.galerie:hover,
    header nav ul li a.galerie_s{
        color: #b0c8ce;
        font-size: 12px;
		width: 50%;
		margin: auto;
		padding: 15px 0;
        border-top: 1px dashed #b0c8ce;
    }
    header nav ul li a:active{
        background: #f7f5f5;
    }
    #menu_icon,
    .close_menu,
    .show_menu{
        display: block;
    }
    .show_menu li .show_menu {
        margin-top: 0;
        margin-bottom: 10px;
        border: 0;
        padding: 0;
        margin-left: 0;
    }

    .main .work{
        width: calc(50% - 5px);
        height: 0px;
        margin: 2.5px;
        padding-bottom: calc(50% - 5px);
    }

    .main .work:nth-child(1), .main .work:nth-child(2), .main .work:nth-child(3) {
        margin-top: 5px;
        padding-bottom: calc(50% - 7.5px);
    }

    .main .work:nth-child(3) {
        margin-top: 2.5px;
        padding-bottom: calc(50% - 5px);
    }

    .main .work:nth-child(3n+0) {
        width: calc(50% - 5px);
        margin-right: 2.5px;
    }

    .main .work:nth-child(3n+1) {
        width: calc(50% - 5px);
        margin-left: 2.5px;
    }

    .main .work:nth-child(2n+0) {
        width: calc(50% - 7.5px);
        margin-right: 5px;
    }

    .main .work:nth-child(2n+1) {
        width: calc(50% - 7.5px);
        margin-left: 5px;
    }

    .main{
        width: 100%;
        position: relative;
        padding-left: 0;
    }
}
@media (max-width:825px){

	.content1 > div {
    	display: none;
	}
	.content1 > div > form {
	    display: block;
	    flex-wrap: wrap;
	    width: 100%;
	    margin-top: 50px;
	}
	.content1 > div:nth-child(2) {
	    display: block;
	    width: 100%;
	    min-height: auto;
	    margin: 50px;
	}
	.content1 > div > form > div:nth-child(2) {
    	margin-left: 0;
	}
	.content1 > div > form > div {
    	width: 100%;
	}
	.caption{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background: transparent; 
    opacity: 1;
    margin: 0;
    margin-top: 20%; 
    text-shadow: #000 1px 1px 3px;
	}
}

@media (max-width:750px){
     .main .work1{
        width: calc(33.333333% - 5px);
        height: 0px;
        padding-bottom: calc(33.333333% - 5px);
    }

    .main .work1:nth-child(1), .main .work1:nth-child(2), .main .work1:nth-child(3), .main .work1:nth-child(4), .main .work1:nth-child(5) {
        margin-top: 5px;
        padding-bottom: calc(33.333333% - 7.5px);
    }

    .main .work1:nth-child(4), .main .work1:nth-child(5) {
        margin-top: 2.5px;
        padding-bottom: calc(33.333333% - 5px);
    }

    .main .work1:nth-child(5n+0), .main .work1:nth-child(5n+1) {
        width: calc(33.333333% - 5px);
        margin-right: 2.5px;
    }

    .main .work1:nth-child(4n+0) {
        width: calc(33.333333% - 5px);
        margin-right: 2.5px;
    }

    .main .work1:nth-child(4n+1) {
        width: calc(33.333333% - 5px);
        margin-left: 2.5px;
    }

    .main .work1:nth-child(3n+0) {
        width: calc(33.333333% - 7.5px);
        margin-right: 5px;
    }

    .main .work1:nth-child(3n+1) {
        width: calc(33.333333% - 7.5px);
        margin-left: 5px;
    }
    .aPropoRub {
	    columns: 1;
	    column-gap: 50px;
	}
}

@media (max-width:550px){
     .main .work{
        width: calc(100% - 10px);
        height: 0px;
        margin: 2.5px 5px 2.5px 5px;
        padding-bottom: calc(100% - 5px);
    }

    .main .work:nth-child(1) {
        margin-top: 5px;
        padding-bottom: calc(100% - 7.5px);
    }

    .main .work:nth-child(2), .main .work:nth-child(3) {
        margin-top: 2.5px;
        padding-bottom: calc(100% - 5px);
    }

    .main .work:nth-child(3n+0) {
        width: calc(100% - 10px);
        margin-right: 5px;
    }

    .main .work:nth-child(3n+1) {
        width: calc(100% - 10px);
        margin-left: 5px;
    }

    .main .work:nth-child(2n+0) {
        width: calc(100% - 10px);
        margin-right: 5px;
    }

    .main .work:nth-child(2n+1) {
        width: calc(100% - 10px);
        margin-left: 5px;
    }

    .main .work1{
        width: calc(50% - 5px);
        height: 0px;
        padding-bottom: calc(50% - 5px);
    }

    .main .work1:nth-child(1), .main .work1:nth-child(2), .main .work1:nth-child(3), .main .work1:nth-child(4), .main .work1:nth-child(5) {
        margin-top: 5px;
        padding-bottom: calc(50% - 7.5px);
    }

    .main .work1:nth-child(3), .main .work1:nth-child(4), .main .work1:nth-child(5) {
        margin-top: 2.5px;
        padding-bottom: calc(50% - 5px);
    }

    .main .work1:nth-child(5n+0), .main .work1:nth-child(5n+1), .main .work1:nth-child(4n+0), .main .work1:nth-child(4n+1) {
        width: calc(33.333333% - 5px);
        margin-right: 2.5px;
    }

    .main .work1:nth-child(3n+0) {
        width: calc(50% - 5px);
        margin-right: 2.5px;
    }

    .main .work1:nth-child(3n+1) {
        width: calc(50% - 5px);
        margin-left: 2.5px;
    }

    .main .work1:nth-child(2n+0) {
        width: calc(50% - 7.5px);
        margin-right: 5px;
    }

    .main .work1:nth-child(2n+1) {
        width: calc(50% - 7.5px);
        margin-left: 5px;
	}
	.content1 > div:nth-child(2) {
	    margin: 30px;
	}
}