/* CSS Document */
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input[type=text],input[type=button],input[type=submit],input[type=password],select{vertical-align:middle}

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

body {
margin:0;
padding:0;
color: #706F6F;
line-height: 1.350;
}

body, p, td, td p {
font-family: 'Raleway', sans-serif;
font-size: 20px;
}

h1, h2, h3, h4, h5, h6 ,p {
margin-bottom:40px;
}

h1 {
font-size:32px;
text-transform:uppercase;
background-color:#989898;
color:#FFFFFF;
margin-left:-20px;
margin-right:-20px;
line-height:45px;
padding:7px 20px;
}

h1::first-letter {
    color: #FF0000;
}

a:active, a:focus { 
outline: 0; 
} 

a {
text-decoration:none;
color:#FF0000;
}

a:hover {
text-decoration:underline;
}

input[type=text], input[type=email],input[type=button],input[type=submit],input[type=password], textarea {
-webkit-appearance: none;
}

.button {
display:inline-block;
background-color:#FF0000;
color:#FFFFFF;
text-transform:uppercase;
padding:3px 15px;
border:none;
}

#content [style*="underline"] {
color:#FF0000;
text-decoration:none !important;
}

#content img[style*="left"], #content img[align="left"] { margin: 0 20px 10px 0; }
#content img[style*="right"], #content img[align="right"] { margin: 0 0 10px 20px; }

#content img {
max-width:100%;
height:auto;
}

#content u {
text-decoration:none;
color:#FF0000;
}

#headerwrapper {
width:100%;
height:auto;
background-image:url(../layout/bg.png);
background-repeat:repeat-x;
background-position:top center;
}

#header {
width:100%;
max-width:1280px;
height:auto;
margin:0 auto;
padding:0 20px;
}

#logo {
float:left;
width:75%;
height:auto;
padding:40px 0 35px 0;
}

#logo a{
display:inline;
}

#logo img {
max-width:100%;
height:auto;

}

#social {
float:left;
width:25%;
height:auto;
text-align:right;
padding-top:40px;
}

#social a {
display:inline-block;
width:46px;
height:46px;
margin-right:7px;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
-khtml-border-radius: 25px;
border-radius: 25px;
font-size:29px;
line-height:45px;
color:#FFFFFF;
text-align:center;
/* Fallback for web browsers that doesn't support RGBa */
background: rgb(0, 0, 0) transparent;
/* RGBa with 0.6 opacity */
background: rgba(0, 0, 0, 0.6);
}

nav {
clear:both;
width:100%;
background-color:#989898;
text-align:right;
}

#sfeer {
width:100%;
height:auto;
position:relative;
}

#sfeer img {
width:100%;
height:auto;
display:block;
}

#cta {
position:absolute;
top:40px;
right:40px;
width:141px;
height:141px;
z-index:9;
}

#contentwrapper {
width:100%;
height:auto;
}

#content {
width:100%;
max-width:1280px;
height:auto;
margin:0 auto;
padding:0 40px;
margin-bottom:40px;
}

#footer1wrapper {
width:100%;
height:auto;
font-size:18px;
background-color:#706F6F;
-webkit-box-shadow: 0px 9px 14px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 9px 14px 0px rgba(0,0,0,0.3);
box-shadow: 0px 9px 14px 0px rgba(0,0,0,0.3);
z-index:2;
position:relative;
}

#footer1 {
width:100%;
max-width:1320px;
height:auto;
margin:0 auto;
padding:2px 20px;
color:#FFFFFF;
text-align:center;
}

#footer2wrapper {
width:100%;
height:auto;
font-size:18px;
background-color:#ECEAE9;
z-index:1;
position:relative;
}

#footer2 {
width:100%;
max-width:1320px;
height:auto;
margin:0 auto;
padding:5px 20px 60px 20px;
color:#706F6F;
text-align:center;
}

#footer2 a {
color:#706F6F;
}

.clear {
clear:both;
}

/*home*/

.mx_photo_box {
position: relative;
z-index:1;
margin-left:-20px;
margin-right:-20px;
padding:10px;
}

.mx_photo_box::before {
position:absolute;
top:0;
left:0;
content:"";
background-image:url(../layout/box-before.png);
background-size:100% 100%;
width:37px;
height:37px;
z-index:2;
}

.mx_photo_box::after {
position:absolute;
bottom:0;
right:0;
content:"";
background-image:url(../layout/box-after.png);
background-size:100% 100%;
width:37px;
height:37px;
z-index:2;
}

/*project*/

#projectwrapper {
width:103%;
margin-left:-20px;
}

.project {
float:left;
width:22.75%;
border:solid 2px #989898;
margin-right:3%;
margin-bottom:30px;
}

.project:nth-of-type(4n) {
margin-right:0;
}

.project .image img {
display: block;
width:100%;
height:auto;
}

.project .image a {
display:none;
}

.project .image a:first-of-type {
display:block;
}

/*.project .image a:first-of-type img {
-webkit-filter: grayscale(1);
  filter: grayscale(1);
}

.project:hover .image a:first-of-type img {
-webkit-filter: none;
  filter: none;
}*/

.project .name {
padding:6px 20px;
text-align:center;
}

@media screen and (max-width: 1023px) {

#headerwrapper {
background-size: auto 100px;
}

#logo {
padding-top:10px;
padding-bottom:15px;
}

#logo img {
width:180px;
}

#social {
display:none;
}

#cta {
display:none;
}

#sfeer {
padding-bottom:15px;
}

#content {
padding: 0 20px;
}

h1 {
font-size:24px;
line-height:24px;
padding:7px 20px;
}

body, p, td, td p {
font-size: 18px;
}

#footer1 {
font-size:16px;
padding:7px 25px;
}

#footer2 {
font-size:16px;
padding:7px 0 30px 0;
}

#projectwrapper {
margin-left:0;
margin-right:0;
width:100%;
}

.mx_photo_box {
margin-left:0;
margin-right:0;
}

} /* end mediaquery */

@media screen and (max-width: 950px) {

.project {
width:46%;
margin-right:4%;
}

.project:nth-of-type(4n), .project:nth-of-type(2n) {
margin-right:0;
}

} /* end mediaquery */

@media screen and (max-width: 600px) {

.project {
width:100%;
margin-right:0;
}

} /* end mediaquery */