/*responsive*/

@media only screen and (min-width: 996px) and (max-width:1220px) {
	#slider-wrapper {
	    width: 979px;
	}
	a.nivo-nextNav {
	    right: -60px;
	}
	#slider {
	    margin-right: 55px;
	}
	a.nivo-prevNav {
	    left: -250px;
	}
	.nivo-caption {
	    height: 320px;
	    left: -200px;
	    top: 190px;
	    width: 320px;
	    background-size: contain;
	}
	.nivo-caption .nivo-caption-inner {
	    padding: 70px 35px 0;
	}
	.nivo-caption h2 {
	    font-size: 70px !important;
	    line-height: 60px !important;
	    margin-top: 80px;
		margin-left: -10px;
		text-indent: 40px;
	}
	.nivo-caption h2 span {
	    font-size: 20px;
	    line-height: 24px;
	    padding: 10px 30px 0 50px;
	}
	.nivo-caption .link {
	    background-size: contain;
	    font-size: 20px;
	    height: 70px;
	    line-height: 22px;
	    width: 104px;
	    padding-top: 28px;
	}
	.slider-wrap {
		background-image:url(../images/slider-wrap-996.png);
		background-size:  680px 680px;
	}
	.logo {
	    left: 0;
	    top: 47px;
	    width: 350px;
	}
	.logo img {
	    width: 100%;
	    height: auto;
	}
	.sf-menu > li {
	    padding-left: 19px;
	    margin-left: 19px;
	}
	.sf-menu {
	    margin: 99px 0 0 0;
	}
	#first-home-area {
	    margin: 0 0 47px;
	    padding: 0;
	}
	#first-home-area .bottom-line {
	    margin: 0;
	    padding: 0;
	}
	#back-top {
	    left: auto;
	    margin: 0;
	    right: 20px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 995px) {
	#slider-wrapper {
	    width: 768px;
	    height: 450px;
	}
	#slider {
	    margin-right: 60px;
	    height: 450px !important;
	    width: 450px !important;	
	}
	.nivo-directionNav a {
	    top: 205px;
	}
	a.nivo-nextNav {
	    right: -50px;
	}
	a.nivo-prevNav {
	    left: -250px;
	}
	.nivo-caption {
	    background-size: contain;
	    height: 310px;
	    left: -195px;
	    top: 115px;
	    width: 240px;
	}
	.nivo-caption .nivo-caption-inner {
	    padding: 50px 27px 0;
	}
	.nivo-caption h2 {
	    font-size: 52px !important;
	    line-height: 45px !important;
	    margin-top: 55px;
		margin-left: -10px;
		text-indent: 30px;
	}
	.nivo-caption h2 span {
	    font-size: 16px;
	    line-height: 21px;
	    padding: 10px 5px 0 25px;
	}
	.nivo-caption .link {
	    background-size: contain;
	    font-size: 15px;
	    height: 125px;
	    line-height: 19px;
	    padding-top: 26px;
	    width: 86px;
	}
	.slider-wrap {
		background-image:url(../images/slider-wrap-768.png);
		background-size:  450px 450px;
		background-position: 100% 0;
	}
	#back-top {
	    left: auto;
	    margin: 0;
	    right: 20px;
	}
	.sf-menu {
	    margin: 99px 0 0 0;
	}
	.sf-menu > li {
	    margin-left: 16px;
	    padding-left: 16px;
	}
	.sf-menu > li > a {
	    font-size: 18px;
	}
	.logo {
	    left: 0;
	    top: 50px;
	    width: 250px;
	}
	.logo img {
	    width: 100%;
	    height: auto;
	}
	.top-box h2 {
	    font-size: 23px;
	}
	#footer-text #footer-logo {
	    top: -24px;
	    width: 215px;
	}
	#footer-logo > img {
	    width: 100%;
	}
	.team_custom_class li {
	    margin-left: 55px;
	}
	#first-home-area {
	    box-sizing: border-box;
	    width: 100%;
	    padding: 0 20px;
	    margin: 0 -5px 47px;
	}
	#first-home-area .bottom-line {
		padding: 0;
		margin: 0;
	}
	.box.right-indent {
	    margin-right: 0;
	    padding-left: 0;
	    padding-right: 0;
	}
	.header-title {
	    text-align: center;
	}
	#gallery {
	    text-align: center;
	}
	.pagenavi {
	    padding-left: 20px;
	}
	.google-map iframe {
	    width: 455px !important;
	}
	.wpcf7-form textarea {
	    min-width: 230px;
	    width: 230px;
	}
	#searchform .submit {
	    display: block;
	    margin-top: 10px;
	    width: auto;
	}
	#searchform .searching {
	    width: 92%;
	}
	.featured-thumbnail.large img {
	    width: 100%;
	}
	#gallery.one_column .folio-desc {
	    width: 200px;
	    text-align: left;
	}
	#gallery .portfolio li a.image-wrap img {
	    width: 100%;
	}
	#gallery.one_column .portfolio li a.image-wrap, #gallery.one_column .portfolio li span.image-border {
	    max-width: 500px;
	    height: auto;
	}
	.hfeed .portfolio .two_third, .hfeed .portfolio .one_third {
	    width: 100%;
	}
	.page.post-1535.type-page.status-publish.hentry, 
	.page.post-1438.type-page.status-publish.hentry {
	    padding: 0 10px;
	}
	.page.post-1535.type-page.status-publish.hentry img {
	    width: 100%;
	    height: auto;
	}
	.page.post-1438.type-page.status-publish.hentry img.wp-image-1924 {
	    width: 100%;
	    height: auto;
	}
	#mc4wp-form-1 input,
	.wpcf7-form input {
		width: 100%;
    	box-sizing: border-box;
	}
	#mc4wp-form-1 input[type="submit"],
	.wpcf7-form .wpcf7-submit {
		width: auto;
    	box-sizing: border-box;
	}
	#content {
	    box-sizing: border-box;
	    padding: 0 10px;
	}
}

@media only screen and (max-width: 767px) {
	nav.primary {
	    margin-top: 140px;
	}
	.logo {
	    left: 0;
	}
	#logo img {
	    height: auto;
	    width: 100%;
	}
	#back-top {
	    left: auto;
	    margin: 0;
	    right: 20px;
	    bottom: 20px;
	}
	#mc4wp-form-1 input,
	.wpcf7-form input {
		width: 100%;
    	box-sizing: border-box;
	}
	#mc4wp-form-1 input[type="submit"],
	.wpcf7-form .wpcf7-submit {
		width: auto;
    	box-sizing: border-box;
	}
	body.home .vr {
	    background: none;
	}
	.vr, .vr-alt {
	    background: none;
	}
	.team_custom_class li {
	    float: none;
	    margin: 0 auto;
	}
	.widget-footer {
	    text-align: center;
	}
	#footer-text {
	    text-align: center;
	}
	#footer-text #footer-logo {
	    clear: both;
	    display: block;
	    float: none;
	    margin: 0 auto;
	}
	.box.right-indent {
	    margin-right: 0;
	    padding-left: 0;
	    padding-right: 0;
	}
	#gallery {
	    text-align: center;
	}
	.pagenavi {
	    padding-left: 20px;
	}
	.portfolio .image-wrap > img {
	    width: 100%;
	}
	#gallery.two_columns .portfolio li {
	    width: 100%;
	}
	#gallery.two_columns .portfolio li span.image-border {
	    height: auto;
	    width: 100%;
	}
	#gallery.one_column .portfolio li a.image-wrap, 
	#gallery.one_column .portfolio li span.image-border {
	    display: inline-block;
	    float: none;
	    height: auto;
	    width: 100%;
	}
	#gallery.one_column .image-border {
	    margin-left: 0;
	}
	#gallery.one_column .folio-desc {
	    float: none;
	    margin: 0 auto;
	    padding-top: 10px;
	    text-align: center;
	    width: 100%;
	}
	#gallery.one_column table {
	    margin: 0 auto;
	}
	.hfeed .portfolio .two_third .grid_gallery_inner {
	    width: 100%;
	}
	.hfeed .portfolio .two_third, .hfeed .portfolio .one_third {
	    width: 100%;
	}
	.header-title h1 {
	    padding-bottom: 10px;
	}
	.page.post-1535.type-page.status-publish.hentry img {
	    width: 100%;
	    height: auto;
	}
	.page.post-1438.type-page.status-publish.hentry img.wp-image-1924,
	.page.post-1438.type-page.status-publish.hentry img.wp-image-1437 {
	    width: 100%;
	    height: auto;
	}
	.pp_gallery, div.pp_default .pp_nav {
	    display: none !important;
	}
	div.pp_default .pp_previous {
	    background: rgba(0, 0, 0, 0) url("../images/prettyPhoto/default/sprite_prev.png") no-repeat scroll left center;
	    cursor: pointer;
	}
	div.pp_default .pp_next {
	    background: rgba(0, 0, 0, 0) url("../images/prettyPhoto/default/sprite_next.png") no-repeat scroll right center;
	    cursor: pointer;
	}
	#error404 {
	    padding: 0 0 50px;
	}
	.error404-num {
	    font-size: 110px;
	}
	#error404 #searchform .submit {
	    margin: 10px auto 0;
	    width: auto;
	}
	.sf-menu {
	    display: block !important;
	    position: absolute;
	    right: 0;
	    top: 60px;
	    margin: 0;
	    padding: 0;
	}
	.sf-menu li {
	    display: none;
	}
	.sf-menu > li:last-child {
	    background-image: none;
	    display: block;
	    margin: 0;
	    padding: 0;
	}	
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
	.google-map iframe {
	    width: 420px !important;
	}
	#gallery.two_columns .portfolio li a.image-wrap {
	    height: auto;
	    width: 420px;
	}
	.grid_gallery .gallery_item {
	    margin: 0 10px 11px 0;
	}
	.ppt {
		width: 300px !important;
	}
	#pp_full_res > img {
		height: auto!important;
    	width: 100%!important;
	}
	.pp_details {
		width: 95%!important;
	}
	div.pp_default .pp_content_container .pp_right {
	    padding-right: 20px!important;
	}
	.pp_close {
	    z-index: 2210;
	}
	#slider-wrapper {
	    width: 480px;
	    height: 271px;
	}
	#slider {
	    margin-right: 35px;
	    height: 271px !important;
	    width: 271px !important;
	}
	.nivo-directionNav a {
	    top: 105px;
	}
	a.nivo-nextNav {
	    right: -37px;
	}
	a.nivo-prevNav {
	    left: -179px;
	}
	.nivo-caption {
	    -webkit-background-size: contain;
	    -moz-transition: contain;
		-o-transition: contain;
		background-size: contain;
	    height: 250px;
	    left: -140px;
	    top: 40px;
	    width: 200px;
	}
	.nivo-caption .nivo-caption-inner {
	    padding: 51px 25px 0;
	}
	.nivo-caption h2 {
	    font-size: 40px !important;
	    line-height: 35px !important;
        margin-top: 50px;
    	margin-left: -15px;
    	text-indent: 30px;
	}
	.nivo-caption h2 span {
	    font-size: 14px;
	    line-height: 19px;
	    padding: 10px 16px 0 36px;
	}
	.nivo-caption .link {
	    -webkit-background-size: contain;
	    -moz-transition: contain;
		-o-transition: contain;
		background-size: contain;
	    font-size: 15px;
	    height: 90px;
	    line-height: 19px;
	    padding-top: 24px;
	    width: 85px;
	}
	.slider-wrap {
		background-image: url(../images/slider-wrap-480.png);
		background-size:  271px 271px;
		background-position: 100% 0;
	}
}

@media only screen and (max-width: 479px) {
	#first-home-area {
	    box-sizing: border-box;
	    width: 100%;
	    padding: 0;
	    margin: 0;
	}
	#first-home-area .bottom-line {
		padding: 0;
		margin: 0;
	}
	.textwidget > h2 {
	    padding-top: 20px;
	    text-align: center;
	}
	.testimonials div.testi_item.alt .featured-thumbnail {
	    float: none;
	}
	.testimonials .featured-thumbnail {
	    float: none;
	    margin-left: auto !important;
	    margin-right: auto !important;
	    width: 90px;
	}
	.testimonials .featured-thumbnail > img {
	    display: block;
	    float: none;
	}
	#gallery .portfolio li a.image-wrap {
	    width: 298px;
	}
	.post-holder .featured-thumbnail.large img {
	    width: 100%;
	}
	#searchform .searching {
	    width: 92%;
	}
	#searchform .submit {
	    display: block;
	    margin-top: 10px;
	    width: auto;
	}
	.google-map iframe {
	    width: 300px !important;
	}
	.wpcf7-form textarea {
	    min-width: 280px;
	    width: 280px;
	}
	#gallery.two_columns .portfolio li a.image-wrap {
	    height: auto;
	    width: 300px;
	}
	.two_third .grid_gallery .gallery_item {
	    display: inline-block;
	    float: none;
	    margin: 0 0 11px;
	}
	.hfeed .portfolio .two_third .grid_gallery_inner {
	    text-align: center;
	}
	article.testimonial {
		background: none;
	    padding: 130px 0 0 0;
	}
	article.testimonial .featured-thumbnail {
	    left: 90px;
	}
	.single-post .featured-thumbnail {
	    margin: 5px 20px 10px 70px;
	}
	.single-post .post-content.extra-wrap {
	    clear: both;
	}
	#slider-wrapper {
	    width: 320px;
	    height: 181px;
	}
	#slider {
	    margin-right: 35px;
	    height: 181px !important;
	    width: 181px !important;
	}
	.nivo-directionNav a {
	    top: 68px;
	}
	a.nivo-nextNav {
	    right: -37px;
	}
	a.nivo-prevNav {
	    left: -107px;
	}
	.nivo-caption {
	    -webkit-background-size: contain;
	    -moz-transition: contain;
		-o-transition: contain;
		background-size: contain;
	    height: 250px;
	    left: -77px;
	    top: 35px;
	    width: 110px;
	}
	.nivo-caption .nivo-caption-inner {
	    padding: 22px 10px 0;
	}
	.nivo-caption h2 {
	    font-size: 22px !important;
	    line-height: 18px !important;
	    margin-top: 30px;
    	margin-left: -15px;
    	text-indent: 25px;
	}
	.nivo-caption h2 span {
	    font-size: 12px;
	    line-height: 14px;
	    padding: 5px 1px 0 16px;
	}
	.nivo-caption .link {
	    -webkit-background-size: contain;
	    -moz-transition: contain;
		-o-transition: contain;
		background-size: contain;
	    font-size: 10px;
	    height: 149px;
	    line-height: 13px;
	    padding-top: 9px;
	    width: 45px;
	}
	.slider-wrap {
		background-image: url(../images/slider-wrap-320.png);
		background-size:  181px 181px;
		background-position: 100% 0;
	}
	.nivo-directionNav a {
	    background-size: 75px auto;
	    height: 53px;
	    width: 35px;
	}
	a.nivo-nextNav {
		background-position: -42px 0px
	}
	a.nivo-nextNav:hover {
	    background-position: -42px -51px;
	}
	a.nivo-prevNav:hover {
	    background-position: 0 -51px;
	}
	blockquote {
	    margin: 0;
	}
	.pp_pic_holder a.pp_expand, 
	.pp_pic_holder a.pp_contract {
	    top: 0;
	}
	.five_sixth {
	    width: 76%;
	}
	.one_sixth {
	    width: 20%;
	}
	#content h1 {
		font-size: 25px;
	}
}