/****************************************************************
 *		@media Qurey (Responsive)
 ****************************************************************/

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 1000px) {

    /*OWN*/
    #main-plus #logo { float: none; display: block; margin: 20px auto; }
    #main-plus .advertisement a img { width: 100%; }
    #main-plus .social-nav {  }
    #nav { margin-top: 71px; position: relative; }
    #main-plus .social-nav { position: absolute; top: -71px;  border: 1px solid #E6E9EA; }
	#main-plus .advertisement { width:100%; }
  	
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 1000px) {

    #main-plus .social-nav { left: 177px; }
	.posts-block .post .thumbnail { display:none; }

    #nav .main-menu ul { float: none; text-align: center; width: 100%; padding: 0; }
    #nav .main-menu ul li { display: inline-block; float: none; margin-right: -2px; }
    #nav .main-menu ul li a { float: none; display: inline-block; }

    #header .top div, #header .top nav { width: 480px; }

	/* layout */
	.main { width: 651px; }
	.top-line { width: 651px; }
	.top-line .mask { width:539px; }
	.main-gallery .navigator-content { display:none; }
	.main-gallery .holder, .sliders-wrapper { width: 639px !important; }
	.main-gallery .holder ul li img{ max-width:100%; }
	#sidebar { width: 651px; margin-top: 40px; -webkit-column-count: 1; -webkit-column-gap: 0; -moz-column-count: 1; -moz-column-gap: 0; column-count: 1; column-gap: 0; }
	.widget, .tabs { clear: none !important; /*margin: 0 3px 20px;*/ margin: 0 0 20px; -webkit-column-break-inside: avoid; -moz-column-break-inside: avoid; column-break-inside: avoid; }
	.section-2{ margin:0; width: 651px !important; }
	.testimonials q{ width: 562px; }
	.testimonials .wrapper .testimonial q { width: 227px; }
	.mobileTopMenu, .mobileMainMenu { display: none; }
	.search-form { margin: 0 0 0 5px; }
	.search-form input[type="text"] { width: 115px; }
	
	/* top box */
	#header .box{ display:none; }
	
	/* logo */
	#logo{ width:280px; }

	/* Social counter */
	#header .social{ width:268px; }
	#header .social li{ padding:0 3px; }
	#nav ul li a { padding: 0 15px 4px; }


    .main-gallery .holder { float: none; margin: 0; height: auto; }
    .main-gallery .holder .home-slides { height: auto; }

    .main-gallery .home-slider-nav { width: 100%; float: none; }
    .main-gallery .home-slider-nav ul { margin: 0; }
    .main-gallery .home-slider-nav ul li { width: 159px; float: left; padding: 0; }
    .main-gallery .home-slider-nav ul li h5 { display: none; }
    .main-gallery .home-slider-nav ul li figure { border: none; padding: 0; margin: 0; width: 100%; }
    .main-gallery .home-slider-nav ul li figure img { width: 100%; opacity: 0.7; border: 1px solid #eeeeee; }
    .main-gallery .home-slider-nav ul li.flex-active { background-color: none; }
    .main-gallery .home-slider-nav ul li.flex-active img { opacity: 1; }
    .main-gallery .home-slider-nav ul li.flex-active span.ract { display: none; }
	.mobileMainMenu { display:none; }
	.main-title .frame{ width:651px; }
	.news-area .visual img{ max-width:100%; }
	.comment-form input[type="text"], .comment-form input[type="email"]{ margin-bottom:5px; width: 75%; }

    #sidebar .widget .video iframe { height: auto !important; }

    #respond textarea { width: 96% !important; padding: 5px 2%; max-width: 100%; }
    #respond input[type="text"] { width: 96% !important; padding: 5px 2%; max-width: 100%; }

    #footer .footer { width: 651px; }
    #footer .footer-widgets .column { width: 100%; border-right: none; margin-bottom: 0; padding: 0; }
    #footer .footer-widgets .column:last-child { border: none; margin-bottom: 0; }
    #footer .footer-widgets .column .widget { padding-bottom: 0; }

    #footer .footer-menu li ul { display: none; }


    #footer .holder .footer-menu, #footer .holder > div { float: none; text-align: center; margin: 0 0 20px; padding: 0; width: 100%; max-width: 100%; }
    #footer .holder .footer-menu ul, #footer .holder > div ul { width: 100%; text-align: center; }
    #footer .holder .footer-menu ul li, #footer .holder > div ul li { display: inline; float: none; margin: 0; padding: 0; }
    #footer .holder .footer-menu ul li a, #footer .holder > div ul li a { display: inline-block; padding: 0 8px; }
    #footer .holder .footer-menu ul li:after, #footer .holder > div ul li:after { display: none; }

    #footer .holder p { text-align: center; }
}


/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {

    #main-plus .social-nav { left: 72px; }
    .latest-video { height: 267px; }
    .flex-control-thumbs li { margin: 0 10px 0 0; }
    .latest-video .caption { width: 95%; }
    #nav { margin-bottom: 20px; }
	.aside-gallery li { margin: 0 14px 22px 2px; }
	.aside-gallery li:last-child { margin-bottom:0px; }
	.categories ul:first-child { border-bottom:1px solid #5B5D5E; }	
	.news-area .text-box { overflow:visible; }
	.signup-form input[type="email"] { width:308px; }
	form.nsu-form input[type="email"], 
	form.nsu-form input[type="text"] { width:308px; }

    .main-title .black-title { float: none; margin: 0 auto; padding:5px 14px 5px 18px; text-transform:uppercase; text-align: center; }


	/* layout */
	.main { width: 440px; }

    #sidebar { margin-top: 40px; }

    .top-line { width: 440px; }
	.top-line .mask { width:328px; }
	.flex-control-thumbs img { width:75px; height:50px; }
	
	.main-gallery .holder, .sliders-wrapper { width: 428px !important; height:229px; }
	.main-gallery .holder ul li img{ width:429px; height:auto;}
	.main-gallery .text{ max-width:300px; }

    .info-gallery ul.slides li { height: auto; }
    .info-gallery figure { float: none; width: 100%; }
    .info-gallery .box{ width: 100%; float: none; height: auto; padding: 15px 25px; }
    .info-gallery .box h4 { margin: 0; }
    .info-gallery .box p, .info-gallery .box footer span{ display:none; }
    .info-gallery .flex-direction-nav a { top: 40%; }

    #content .twocolumns, #content .twocolumns .widget{ width:100%; }
	.news-area, #sidebar{ width: 440px; margin-top: 40px; }
	.widget-content .image img{ min-width:100%; height: auto; }
	.section-2{ margin:0; width: 440px !important; }
	.testimonials q, .testimonials .wrapper .testimonial q{ width: 351px; }
	#header .top nav ul,
    #header .top div ul { display: none; }
	.mobileTopMenu, .mobileMainMenu { display: block; }
	.mobileTopMenu { float: left; background: #fff; margin-top: 5px; border: 1px solid #E6E9EA; color: #A4A5AA; width:220px; font-size: 11px; height: 26px; line-height: 17px; padding: 4px; }
	.search-form { margin: 3px 0 0 5px; }
	.search-form input[type="text"] { width: 150px; }
	
	/* top box */
	#header .box{ display:none; }
	
	/* logo */
	#logo{ width:440px; }
	
	/* Social counter */
	#header .social{ width:440px; }
	#header .social li{ padding:0 31px; }
	#nav{ border:none; }	
	#nav ul{ display:none; }
	.mobileMainMenu { margin-top: 5px; max-width: 767px; padding: 8px; width: 100%; border: 1px solid #EAEAEA; color: #40454D; font-family: ubuntuRegular, Arial, Helvetica, sans-serif; font-size: 14px; }
	.main-title .frame{ width:440px; }
	.news-area .visual img{ max-width:100%; height: auto; }
	.comment-form input[type="text"], .comment-form input[type="email"]{ margin-bottom:5px; width: 75%; }

    .news-area .columns { margin: 0; }
    .news-area .columns .one-third,
    .news-area .columns .two-third,
    .news-area .columns .one-fourth,
    .news-area .columns .three-fourth,
    .news-area .columns .two-cols,
    .news-area .columns .single-col { width: 100%; padding: 0; margin: 0 0 10px 0; float: none; }
    .news-area .columns br { clear: both; }

    #pagination { padding:8px 0; font-weight:bold; margin: 7px 0 40px; }
    #pagination a { margin: 0 4px; padding: 0 5px; font-size: 14px; font-weight: normal; line-height: 18px; color: #3f4752; background: none; border: none; }
    #pagination .current { color: #5886c5; border-color: none; background: none; font-weight: bold; }
    #pagination a.current:hover,
    #pagination a:hover{ color: #5886c5; border: none; }


    #respond textarea { width: 96% !important; padding: 2px 2%; max-width: 100%; }
    #respond input[type="text"] { width: 96% !important; padding: 2px 2%; max-width: 100%; }

    #footer .footer { width: 440px; }
    #footer .footer-widgets .column { width: 100%; border-right: none; margin-bottom: 0; padding: 0; }
    #footer .footer-widgets .column:last-child { border: none; margin-bottom: 0; }
    #footer .footer-widgets .column .widget { padding-bottom: 0; }
    #footer .footer-menu li ul { display: none; }

    #footer .holder .footer-menu, #footer .holder > div { float: none; text-align: center; margin: 0 0 20px; padding: 0; width: 100%; }
    #footer .holder .footer-menu ul, #footer .holder > div ul { width: 100%; text-align: center; }
    #footer .holder .footer-menu ul li, #footer .holder > div ul li { display: inline; float: none; margin: 0; padding: 0; }
    #footer .holder .footer-menu ul li a, #footer .holder > div ul li a { display: inline-block; padding: 0 8px; }
    #footer .holder .footer-menu ul li:after, #footer .holder > div ul li:after { display: none; }
    #footer .holder p { text-align: center; }
	
}
@media only screen and (max-width: 767px) {

	#comments .comment .comment-body, #comments .comment .comment-meta { width: 325px; }
    #comments .commentlist .children .depth-2 .comment-meta { width: 239px; }
    #comments .commentlist .children .depth-2 .comment-body { width: 315px; margin-top: 20px; }

    #header .top div, #header .top nav { width: 230px; }

	#footer .footer .holder { text-align:center; }
	#footer .holder ul { float:none; }
	#footer .holder ul li { float:none; display:inline-block; }
    #footer .holder ul li:after { background: none; }
    #footer .holder ul li ul { display: none; }
    #footer .footer-widgets .heading { margin-bottom:0 }
	#footer .footer-widgets .widget { margin-bottom:25px; padding:0; }
	.main-gallery .navigator-content { display:none; }

    #sidebar .flickr-photos .aside-gallery li { margin: 0 0 0 36px; }
    #sidebar .flickr-photos .aside-gallery li img { width: 95px; }
    .listing-slider { width: auto; margin: 0 auto; }
    .news-area .visual .holder { width: 430px; }

    #header .top nav ul,
    #header .top div ul { display: none; }

    #sidebar .widget .posts-block .post img {  }

    #sidebar { margin-top: 40px; }

    #respond textarea { width: 96% !important; padding: 5px 2%; max-width: 100%; }
    #respond input[type="text"] { width: 96% !important; padding: 5px 2%; max-width: 100%; }

    .news-area .columns { margin: 0; }
    .news-area .columns .one-third,
    .news-area .columns .two-third,
    .news-area .columns .one-fourth,
    .news-area .columns .three-fourth,
    .news-area .columns .two-cols,
    .news-area .columns .single-col { width: 100%; padding: 0; margin: 0 0 10px 0; float: none; }
    .news-area .columns br { clear: both; }

    .main-gallery .holder { float: none; margin: 0; height: auto; }
    .main-gallery .holder .home-slides { height: auto; }
    .main-gallery .holder .home-slides li h2 { font-size: 23px; line-height: 26px; }
    .main-gallery .home-slider-nav { width: 100%; float: none; }
    .main-gallery .home-slider-nav ul { margin: 0; }
    .main-gallery .home-slider-nav ul li { width: 106px; float: left; padding: 0; }
    .main-gallery .home-slider-nav ul li h5 { display: none; }
    .main-gallery .home-slider-nav ul li figure { border: none; padding: 0; margin: 0; width: 100%; }
    .main-gallery .home-slider-nav ul li figure img { width: 100%; opacity: 0.7; border: 1px solid #eeeeee; }
    .main-gallery .home-slider-nav ul li.flex-active { background-color: none; }
    .main-gallery .home-slider-nav ul li.flex-active img { opacity: 1; }
    .main-gallery .home-slider-nav ul li.flex-active span.ract { display: none; }

    #footer .holder .footer-menu, #footer .holder > div { float: none; text-align: center; margin: 0 0 20px; padding: 0; width: 100%; }
    #footer .holder .footer-menu ul, #footer .holder > div ul { width: 100%; text-align: center; }
    #footer .holder .footer-menu ul li, #footer .holder > div ul li { display: inline; float: none; margin: 0; padding: 0; }
    #footer .holder .footer-menu ul li a, #footer .holder > div ul li a { display: inline-block; padding: 0 8px; }
    #footer .holder .footer-menu ul li:after, #footer .holder > div ul li:after { display: none; }

    #footer .holder p { text-align: center; }

}
/*Mobile 320*/
@media only screen and (max-width: 479px) {

    #header .top div, #header .top nav { width: 140px; }

    .latest-video { height: 165px; }
    .flex-control-thumbs li { margin: 0 6px 0 0; }
	.flex-control-thumbs img { width:45px; height:34px; }
	.flexslider .slides img { display:none; }
    .latest-video .caption { display: none; }
    .home#main { padding-top: 20px; }
    #main-plus .social-nav li a { height: 43px; }
    #nav { margin-bottom: 20px; }
    #main-plus .social-nav li a { padding: 0 23px 4px 22px;}	
	.alt .widget-content .image { width: 100%; height:auto; }
	#footer .footer-menu ul { margin-left:-8px; }
	#footer .footer-menu li { padding: 0 2px 0 3px; }
	#footer .footer-menu li:after { content:none; }
	.alt.widget .box-list .box { float:none; width:100%; }
	form.nsu-form input[type="email"], 
	form.nsu-form input[type="text"] { margin-bottom:8px; width:231px; }
	#footer .footer-widgets .categories ul { margin-left:0; width:100%; }
	#footer .footer-widgets .categories ul:first-child { border-bottom:1px solid #5B5D5E; }
	.aside-gallery li { padding:0 28px 25px 18px; }
	.news-area .text-box { overflow:visible; }
	.contact-img { margin:10px 0; }
	.contact-img img { float:none !important; }
	.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="url"]  { width:280px; }
	.contact-form textarea { width:91% !important; }



	/* layout */
	.main { width: 280px; }
	.main-gallery .text { display:none; }
	.top-line { display:none; }
	.info-gallery .box { width: 280px; height:auto; background-image: url("images/bg-gallery-text.png"); }
	.info-gallery .box footer span{ display:none; }
	.info-gallery ul.slides li {height:auto; }
	.news-area, #sidebar{ width: 280px; margin-top: 40px; }
	#content .twocolumns .widget{ margin: 0; width: 280px; }
	.section-2{ margin:0; width: 280px !important; }	
	.testimonials q, .testimonials .wrapper .testimonial q{ width: 191px; }	
	#header .top div ul { display: none; }
	.mobileTopMenu, .mobileMainMenu { display: block; }
	.mobileTopMenu { float: left; background: #fff; margin-top: 5px; color: #A4A5AA; width:135px; font-size: 11px; height: 26px; line-height: 17px; padding: 4px; border: 1px solid #E6E9EA; }
	.search-form { margin: 5px 0 0 5px; }
	.search-form input[type="text"] { width: 80px; }
	
	/* top box */
	#header .box{ display:none; }
	
	/* logo */
	#logo{ width:280px; }

    .main-gallery { display: none; }
    .main-gallery .home-slider-nav ul li { width: 67px; }

	
	/* Social counter */
	#header .social{ width:268px; }
	#header .social li{ padding:0 3px; }
	#nav{ border:none; }	
	#nav ul{ display:none; }
	.mobileMainMenu { margin-top: 5px; max-width: 767px; padding: 8px; width: 100%; border: 1px solid #EAEAEA; color: #40454D; font-family: ubuntuRegular, Arial, Helvetica, sans-serif; font-size: 14px; }
	.main-title .frame{ width:280px; }
	.news-area .title .meta ul li{ margin: 0 15px 0 0; }
	.news-area .visual img{ max-width:100%; height: auto; }
	.news-area .visual .holder { display:none; }
	.social-area{ width:120px; }
	.social-area li{ float:left; }	
	.comment-form input[type="text"], .comment-form input[type="email"]{ margin-bottom:5px; width: 75%; }

    #sidebar .flickr-photos .aside-gallery li { margin: 0 0 0 28px; }
    #sidebar .flickr-photos .aside-gallery li img { width: 95px; }

    .main-title .black-title { float: none; margin: 0 auto; padding:5px 14px 5px 18px; text-transform:uppercase; text-align: center; }

    #pagination { padding:8px 0; font-weight:bold; margin: 7px 0 0px; }
    #pagination a { margin: 0; padding: 0 5px; font-size: 14px; font-weight: normal; line-height: 18px; color: #3f4752; background: none; border: none; }
    #pagination a:hover { color: #5886c5; border-color: none; }
    #pagination .current { color: #5886c5; border-color: none; background: none; font-weight: bold; }
    #pagination .current:hover { border: none; background: none; cursor: default; }


    .listing-slider .flex-control-nav { display: none; }

    #comments .comment .comment-body, #comments .comment .comment-meta { width: 162px; }
    #comments .comment .comment-body { width: 245px; margin-top: 20px; }
    #comments .commentlist .children { padding-left: 0; }
    #comments .commentlist .children .depth-2 .comment-meta { width: 160px; text-align: left; }
    #comments .commentlist .children .depth-2 .comment-body { width: 240px; margin-top: 20px; }

    .news-area .columns { margin: 0; }
    .news-area .columns .one-third,
    .news-area .columns .two-third,
    .news-area .columns .one-fourth,
    .news-area .columns .three-fourth,
    .news-area .columns .two-cols,
    .news-area .columns .single-col { width: 100%; padding: 0; margin: 0 0 10px 0; float: none; }
    .news-area .columns br { clear: both; }

    #respond textarea { width: 96% !important; padding: 5px 2%; max-width: 100%; }
    #respond input[type="text"] { width: 96% !important; padding: 5px 2%; max-width: 100%; }

    #footer .footer-widgets .column { border-right: none; padding: 0; margin: 0; }
    #footer .footer-widgets .column:last-child { border: none; margin-bottom: 0; }
    #footer .footer-widgets .column .widget { padding-bottom: 0; }

    #footer .footer { width: 260px; padding: 37px 10px 15px; }
    #footer .footer-widgets .column { width: 100%; }
    #footer .footer-widgets .column:nth-child(2n) { border-right: none; }

}

@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
    input[type="submit"],
    input[type="button"]{ padding: 5px 10px; }
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) {
    input[type="submit"],
    input[type="button"]{ padding: 5px 10px; }
}
