.centerrow{ overflow:hidden; width:104%;}
.centerthreecol,.centerfourcol,.centersixcol,
.centerfourcol-s,.centersixcol-s {
margin:0 0 0 0;
float: left;
min-height: 1px;
margin-bottom:30px !important;
}

.centerrow .centerthreecol {
width: 21.7%;
margin:1px 3% 1px 1px;
height:362px !important;
overflow:hidden;
}

.centerrow .centerfourcol {
width: 30%;
margin:1px 3% 1px 1px;
height:365px !important;
overflow:hidden;
}

/* @the 1200px grid
********************************************************************************************
********************************************************************************************/

.container {
width: 100%;
max-width: 960px;
margin: 0 auto;
padding:0;
overflow:hidden;
position:relative;
}


.onecol, .twocol, .threecol, .fourcol, .fivecol,.fifthcol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol {
margin-left:0;
float: left;
min-height: 1px;
overflow:hidden;
}

.fourcol {
width: 31.4%;
padding-right:0;
padding-left:4%;
float:left;
}



.eightcol {
width: 64.6%;
padding-right:0;
padding-left:0;
float:left;
}

.sixcol {
width: 50%;
}

.twelvecol {
width: 90%;
float: left;
}



.first {
margin-left: 0px;
}

object, embed {
max-width: 100%;
}



img {
	height: auto;
}


/* Smaller screens */


@media screen and (min-width: 1600px){
    .home .container {
        max-width:1400px;
    }
}

@media screen and (min-width: 1250px){
    .home .container {
        max-width:1150px;
    }

    .home #projects .container img {
        width:100%;
    }

}

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

.container {
width:auto;
margin: 0 20px;
padding:0 0;
}
	
}


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

#clientsbox li{ width:239px;}

#servicesbox li{ width:37.2%}

.resmode-No{ display:none; visibility:hidden;}

.section .container{padding:40px 0 !important;}

#header a img.logo{margin:0 0 30px 0;}

#nav,#main-nav{ float:left; width:100%}

#nav li,#main-nav li{ float:left; margin-left:0; margin-bottom:10px;}

.flexfull_wrap{ max-height: 580px !important}

ul.block li img {
    max-width:none;
}

#index-link .inside {
    left:1.5em;
}
#index-link a {
    font-size:1em;
    left:.5em;
}

#servicesbox li h3 {
    padding-bottom:1em;
}
#servicesbox li:nth-child(6) h3 {
    padding-bottom:2em;
    margin-top:-1em;
}
#servicesbox li:nth-child(6) i {
    top:8px;
}
}
@media screen and (max-width: 1024px) and (orientation: landscape){
    .flexfull img {
      width:160% !important;
      margin-left:-30%;
    }
}
@media screen and (max-width: 768px) and (orientation: portrait){
    #scroll-to-projects {
        display:none;
    }
}
@media screen and (min-width: 768px) and (max-width: 960px){
    .logo-link {
        float:left;
        width:25%;
        margin-top:.25em;
    }
    .flexfull img {
      width:150% !important;
      margin-left:-25%;
    }
    .logo-link img {
        width:100%;
        height:auto;
        margin:0 !important;
    }
    #header #nav ,
    #header #main-nav {
        float:right;
        width:70%;
    }

    #header .container {
        height:37px;
        overflow:hidden !important;
    }
    #portfolio-list * {
        box-sizing:border-box;
        -moz-box-sizing:border-box;
        -webkit-box-sizing:border-box;
    }
    #portfolio-list li {
        margin:0 !important;
        padding-right:1em !important;
        width:32% !important;
    }

}

/* Mobile */



@media handheld, only screen and (max-width: 767px) {

body {
font-size: 16px;
-webkit-text-size-adjust: none;
}

body {
width: 100%;
min-width: 0;
margin-left: 0px;
margin-right: 0px;
padding-left: 0;
padding-right: 0;
margin-top:0;
}

.flexfull_wrap,.flexfull,.slider_full{position:relative; height:auto !important; width:100%}

.slider_full:after {
display:none; visibility: hidden;
}

.inflexion {
    float:none !important;
}
.inflexion a {
    display:block;
    text-align:center;
}


#header,
.onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol, .twelvecol,.fifthcol,
#foliocontent,#foliosidebar
 {
width: auto;
float: none !important;
padding-left: 20px;
padding-right: 20px;
margin-left: 0;
margin-right: 0;
}

#header{
	padding:30px 0 25px 0;
	position: relative !important;
	top: auto;
	left: auto;
	margin:0;
	float:left;
}

.container_alt,
.container_block{padding-top:40px !important; margin-bottom:0 !important;}

ul.block{ margin-bottom:0;}

#content,#sidebar{
	padding-left:0;
	padding-right:0;
	margin-top:40px;
}


.flexfull{ position:relative !important; top:0; margin:0 -5%; width:110%}
.flexfull .stuff2,
.flexfull .flex-direction-nav li{display:none; visibility:hidden;}
.flex-control-nav { left:44%}

#copyright{ padding:0 5%;}

#servicesbox li{ width:37%; margin-right:0}

.pagination{ margin-bottom:40px; height:35px;}

.section {background-attachment: scroll !important; background-color: transparent !important; background-position: center center !important;}
#expertise.section {background-image: none !important;}
#projects.section {background-position: 50% 0 !important; background-color: #E6E6E6 !important;}
#layoutpost-351.section {background-color: #004C8E !important;}

/* prettyPhoto styling for small screens */
.pp_pic_holder.pp_default { width: 100%!important; left: 0!important; overflow: hidden; }
div.pp_default .pp_content_container .pp_left { padding-left: 0!important; }
div.pp_default .pp_content_container .pp_right { padding-right: 0!important; }
.pp_content { width: 100%!important; height: auto!important; }
.pp_fade { width: 100%!important; height: 100%!important; }
a.pp_expand, a.pp_contract, .pp_hoverContainer, .pp_gallery, .pp_top, .pp_bottom { display: none!important; }
#pp_full_res img { width: 100%!important; height: auto!important; }
.pp_details { width: 94%!important; padding-left: 3%; padding-right: 4%; padding-top: 10px; padding-bottom: 10px; background-color: #fff; margin-top: -2px!important; }
a.pp_close { right: 10px!important; top: 10px!important; }

}


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

#header {
    top:0 !important;
}
#index-link .inside {
    left:1.2em;
}
.services {
    height: auto !important;
    padding-bottom:1em;
}
.scrollTo_top{ visibility:hidden; display:none}

.tmnf-sc-quote.left,
.tmnf-sc-quote.right{ width:100%; float:none; margin-left:0; margin-right:0}


.contact-form .forms textarea,
.contact-form .forms input.txt{ width:100%; float:none; margin-left:0; margin-right:0; padding-left:0; padding-right:0}

.contact-form .forms label{ margin-bottom:10px}

.contact-form .forms .buttons .submit,
.contact-form .forms input#sendCopy{ margin-left:0;}

a.trigger,
ul.block li.block7,
a.hoverstuff-zoom{ display:none; visibility:hidden}

#servicesbox li:nth-child(1) h3 ,
#servicesbox li:nth-child(3) h3 {
    padding-bottom:1em;
}
#servicesbox li:nth-child(2) h3 ,
#servicesbox li:nth-child(4) h3 ,
#servicesbox li:nth-child(5) h3 {
    padding-top:1em;
    padding-bottom:2em;
}
#servicesbox li:nth-child(2) i ,
#servicesbox li:nth-child(4) i ,
#servicesbox li:nth-child(5) i {
    top:13px;
}
#servicesbox li:nth-child(6) h3 {
    padding-top:1em;
    padding-bottom:3em;
}
#servicesbox li:nth-child(6) i {
    top:22px;
}



.section>.container>h2{ font-size:30pt; letter-spacing:-2px;}

.centerrow .centerthreecol,
.centerrow .centerfourcol{ width:100%; margin:0 0 30px 0; height:auto;}

#header a img.logo{ display:block; float:none; margin:0 auto 30px auto;}

#nav>li,#main-nav>li{width:25%;}


ul.block{ overflow:hidden; height:auto;}
ul.block li{ position:relative !important; width:50%; height:100px; float:left; top:auto; left:auto;}
ul.block li img{ width:100%; position:relative; opacity:1}
ul.block li .inside{ left:5px; bottom:0}
ul.block li h2{ font-size:14pt;}

li.pricing_three,
li.pricing_four{ width:48%}

#clientsbox li{ width:98%;}

#clientsbox li img{ width: auto;}

#clientsbox li .adipoli-wrapper {
    display:block;
    margin:0 auto;
}

.section>.container>p {
	   -moz-column-count: 1;
       -moz-column-gap:30px;
       -webkit-column-count: 1;
       -webkit-column-gap:30px;
	   margin-bottom:25px;
	   overflow:hidden;
}

iframe{width:100%; max-height:400px}

ul.medpost>li>.meta,
ul.medpost>li>.entry{ text-align:left; width:100%;}

ul.medpost>li>.meta{height:20px; overflow:hidden;}

.twocol-one ,
.threecol-one {
    width:100% !important;
    padding-bottom:2em;
    float: none !important;
}

} 

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

#nav>li,#main-nav>li{width:33%;}

#servicesbox li{ width:76%; height:auto;}

iframe{max-height:280px}

#header #main-nav li ,
#header #nav li {
	display:block;
	width:100%;
}
#header .logo {
	margin:0 !important;
	width:75%;
}
#header #main-nav.open ,
#header #nav.open {
	max-height:500px;
	padding-top:1em;
}
#header #main-nav ,
#header #nav {
	max-height:0;
	overflow:hidden;
	transition:.2s linear all;
	-o-transition:.2s linear all;
	-ms-transition:.2s linear all;
	-moz-transition:.2s linear all;
	-webkit-transition:.2s linear all;
}

#mobile-toggle {
	display:block;
	position:absolute;
	right:-4px;
	top:7px;
	border-radius:20em;
	width:14px;
	height:14px;
	padding:7px;
	background: -moz-linear-gradient(-45deg,  #ef3026 0%, #ce2321 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#ef3026), color-stop(100%,#ce2321)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(-45deg,  #ef3026 0%,#ce2321 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(-45deg,  #ef3026 0%,#ce2321 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(-45deg,  #ef3026 0%,#ce2321 100%); /* IE10+ */
	background: linear-gradient(135deg,  #ef3026 0%,#ce2321 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ef3026', endColorstr='#ce2321',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
	background-color:#ef3026;
	box-shadow:0 0 2px rgba(0,0,0,.2), inset -1px -1px 2px rgba(255,255,255,.3);
}
#mobile-toggle .bar {
	display:block;
	width:100%;
	height:2px;
	background-color:rgba(255,255,255,.9);
	margin-bottom:3px;
	position:relative;
	top:1px;
	left:0;
}

.portfolio-list {
    opacity:0;
}
.portfolio-list.show {
    opacity:1;
}
}
