/*	Media Transitions
-------------------------------------------------- */
	body:before{
		display: none;
		position: fixed; left: 0; bottom: 0;
		padding:2px 5px; opacity: .9;
		border-radius: 0 20px 20px 0;
		color:#000; font-size: 10px; text-align: center;
		z-index: 9999999999999999; -webkit-transition:all .4s;		
	}	
	@media only screen and (max-width: 1849px) {
		body:before{ content: "max-width: 1849px"; background: #FF9900;}
		
		.post_single.comments_open { max-width: 1406px;}
		.post_single.comments_close, .bottomcomments .post_reply, .bottomcomments .post_single.comments_open { width: 853px;}
		.post_single.comments_close .post_inner { margin:0;}
		
		.contentfull .post_single, .contentfull.bottomcomments .post_reply {width: 100%!important;max-width: 100%!important}
		.bottomcomments .post_single.comments_open .post_inner, .bottomcomments .post_single.comments_close .post_inner {margin-right: 0;}
	}
	@media only screen and (max-width: 1475px) {
		body:before{ content: "max-width: 1475px"; background: #FFFF00;}
		
		.post_single .post_inner {  margin-right: 442px;}
		.post_single.comments_close { width: 594px;} 
		.post_reply {  width: 423px; margin-left: -423px;}

		.post_single.comments_close, .bottomcomments .post_single.comments_open, .bottomcomments .post_reply { width: 594px;}
		.contentfull .post_single, .contentfull.bottomcomments .post_reply {width: 100%!important;max-width: 100%!important}
		.bottomcomments .post_single.comments_open .post_inner, .bottomcomments  .post_single.comments_close .post_inner{margin-right: 0;}
	}
	@media only screen and (max-width: 1224px) {
		body:before{ content: "max-width: 1224px"; background: #66FF33;}
		
		.post_single.comments_open { max-width: 715px;}
		.post_single { margin-bottom:20px;}
		.post_single .post_inner {  margin-right: 0;}
		.post_single.comments_close, .bottomcomments .post_single.comments_open, .bottomcomments .post_reply { width:100%; max-width: 594px;}
		.post_reply {  clear: both; width: 100%; max-width: 715px; margin-left: 0;}
		.contentfull .post_single, .contentfull .post_reply {width: 100%!important;max-width: 100%!important}
		.bottomcomments .post_single.comments_open .post_inner, .bottomcomments  .post_single.comments_close .post_inner{margin-right: 0;}

		.slideshow_template .slide_content .entry-title { font-size: 40px; padding: 0 0 11px; margin: 0 0 11px;}
		.slideshow_template .slide_content .has_background_color {padding: 0;}
		.slideshow_template .jcycle_navigation {margin-top: 1px;}
	}
	@media only screen and (max-width: 1124px) {
		.tpl_contact { padding:0;}
		.contact_adress { left: 34px; right:auto;  top: 60px; display:block; margin: 0;}
		.contact_adress_fixed { position: fixed; left: 317px;}

		.gallery_center {  width: 760px; height: 380px;}
		.gallery_left {height: 380px;}
		.nano {height: 350px;}
	}
	@media only screen and (min-width: 768px) and (max-width: 960px) {
		body:before{ content: "min-width: 768px and max-width: 960px"; background: #33CCFF;}
		
		.posts_listing, .post_single, .post_reply { width: 100%;}
		.resize-post {width: 100%!important; max-width: 100%;}

		/* reCaptcha */
			.qd_contact-submit { width: 374px;}
			#recaptcha_image { width: 277px!important;}
			#recaptcha_response_field {width: 203px;}

		.slideshow_template .slide_content .entry-title { font-size: 30px;}

	table.qd_table th, table.qd_table td, table.qd_table caption { padding: 5px }

	}
	@media only screen and  (max-width: 767px) {
		.gallery_single {
			bottom: 0;
			overflow: auto;
			width: 100%;	
			background-color: rgba(59,59,59,.3);		
		}
		.gallery-overlay-fixed {background: none;}

		.gallery_center { width: 460px;}
		.gallery_content .gallery-title {height: inherit;overflow: inherit;}
		.nano .content {top: 0;}

		.gallery_slider { position: relative; right: 0;	height: 378px;}
		.gallery_left {
			position: relative;
			width: 100%; height: auto;			
			}
			.nano {	width: 100%;height: 100%!important;	}
			.nano .content { position: inherit; overflow: inherit; overflow-x: inherit;}
			.nano .pane {display: none;}
		
		.flex-post-nav {right: 36px;}

		.gallery_content {
			position: relative;
			margin-top: 10%;
			height: auto;
		}
		.gallery_small_content .gallery_slider {height: 100%;}

		.gallery_listing_grid .postcontent-img {text-align: center; max-height: none !important;}
		
		.gallery_slider .jp-jplayer { height: 280px!important;}
		.gallery_small_content .gallery_slider .jp-jplayer { min-height:100%;}
		#gallery_single_content .gallery_small_content .jp-video, #gallery_single_content .gallery_small_content .jp-video .jp-type-single { height: auto!important;}
	
		.classic_gallery_template .gallery_wrap {padding-bottom: 0;}

		.slideshow_template .slide_content .entry-title { font-size: 30px;}

		.resize-post {width: 100%!important; max-width: 100%;}
		.resize-post .postcontent-img { height:inherit !important; min-height:inherit !important; line-height:inherit !important;}
		.resize-post .img-contrast img.custom_black_white_thumbnail { position: relative;}
	}
	
	@media only screen and (min-width: 552px) and (max-width: 767px) {
		body:before{ content: "min-width: 552px and max-width: 767px";	background: #0066FF;}
		
		.one_half, .one_third, .two_third, .one_fourth, .three_fourth { width: 100%; float: none; clear: both; margin: 0; margin-bottom: 10px;}

		#main { margin-left: -253px;}
		
		.header, .footer { width: 253px;}
		
		.column-line-tail, .copyright { width:253px}
		.copyright-indent { padding: 0 30px 60px;}
						
		.content_area { margin-left: 253px; padding-top:32px; padding-left:23px; padding-right:19px;}		
		.content_area.classic_gallery_template { padding-right: 19px;}
		.single .content_area.gallery_post { padding-top:32px; padding-left:23px; padding-right:19px;}

		.sidebar { padding: 0 18px 0 19px;}
		
		.column-left { width:243px;}
		
		.main_menu ul.sf-menu ul {  left: 192px;}
		.widget_nav_menu ul.sf-menu ul { left:192px;}
		.widget_nav_menu { margin-left: -18px; margin-right: -19px;}
		
		.widget_social_links ul { margin-right:0;}
		.widget_flickr .flickr_badge_image { width:68px;}
		.widget_gallery li { width:99px;}
		.widget_gallery span.placeholder span { width:99px; height:92px;}
		
		.widget_calendar tbody td { padding-bottom:9px;}
		
		.posts_listing { width: 100%; left:inherit!important; clear: both; margin-right: 0;}
		
		.txt-a-r {padding-right: 20px;}
		
		.contact_adress { width: 374px;}		
		.contact_adress_fixed { left: 287px;}


		.contact_adress .entry-content {-ms-word-break: break-all; -o-word-break: break-all; word-break: break-word;}	
		.tpl_contact { padding:0;}
		
		/* for images with fixed size */
			div.wp-caption { float:none; width:100%!important; margin:0 0 10px;}
		
		/* reCaptcha */
			.qd_contact-submit { width: 100%;}
			.recaptcha_logo, .recaptcha_tagline {margin-left: 0; margin-right: 8px;}
			#recaptcha_image { width: 60%!important;}
			#recaptcha_response_field {width: 35%;}
			.recaptcha_reload, .recaptcha_only_if_image, .recaptcha_only_if_audio, .recaptcha_help {margin-left: 1px;}

		/* slideshow */
			.vertical_top { top: 34px;}
			.horizontal_left { left: 34px;}
			.horizontal_right { right: 34px;}
			.vertical_bottom { bottom: 34px;}

		table.qd_table th, table.qd_table td, table.qd_table caption { font-size: 10px; padding: 1px}
	}
	@media only screen and (min-width: 552px) and (max-width: 680px) {
		.contact_adress { width: 270px;}
		.contact_adress_fixed {left: 287px;}
		.one_half, .one_third, .two_third, .one_fourth, .three_fourth { width: 100%; float: none; clear: both; margin: 0; margin-bottom: 10px;}
	}
	@media only screen and (min-width: 479px) and (max-width: 551px) {
		body:before{ content: "min-width: 479px and max-width: 551px";background: #CC66FF;}
			
		.one_half, .one_third, .two_third, .one_fourth, .three_fourth { width: 100%; float: none; clear: both; margin: 0; margin-bottom: 10px;}

		.row { width:460px; margin: 0 auto;}

		.header { padding: 0 0 15px; position: relative; z-index: 999;}
		.footer { clear: both; position:relative; padding-bottom:20px;}
		.header, .footer, .post_single, .post_reply, .column-left  { width: 100%;}

		.logo { padding:29px 20px 24px; margin:0;}
		.logo, .filters { background: none !important;}
		.filters  {padding-top: 0;}
		
		.copyright { width: 100%; height:auto; margin:0;}
		.copyright-indent { padding: 0 30px 0px;}
						
		#main, .content_area, #preloader, #preloaderbg { margin-left: 0;}				

		.main_menu { display: none; padding-bottom: 0;}			
			.mainmenu-title {display: inline-block;}
			.main_menu li.opened {display: block}
			.sub-menu {position: relative; left:0;  width: 100%; padding: 0; display: none !important;background: none;box-shadow: none !important;}
			.sub-menu .menu-item {padding: 0 0 1px;}
			.main_menu ul.sf-menu ul {left: 0;}
			.main_menu li:hover ul, .main_menu li.sfHover ul {margin: 0!important;visibility: hidden !important;display: none !important;z-index: 0}
			.main_menu li.opened>ul {margin: 0 !important; visibility: visible !important; display: block !important; top:1px;}
			.main_menu a em {display: block;}

			.sidebar-right .main_menu { padding-right: 15px;}
			.sidebar-right .menu-item a { margin-right: 31px;}
			
		.column-line-tail { display:none;}
		.column-left { float:none;}
		
		.content_area { padding:34px 0px 20px;}
		.single .content_area { padding-left:20px; padding-right:20px;}		
		
		.posts_listing { width: 100%; left:inherit!important; clear: both; margin-right: 0;}
		.sidebar { width:460px; margin:0 auto; padding:40px 0 0;}
		.widget { margin-bottom:35px;}
		.widget_calendar table { width:65%; margin: 0 auto;}
		.widget_flickr .box { text-align: center; margin: 0 auto;}
		.widget_social_links ul { text-align: center; margin: 0 auto;}		
		.widget_flickr .flickr_badge_image { width:70px;}
		.widget_categories .hiden-title + ul {background: none;padding: 0;}
		
		/* Contact block */
			.tpl_contact { padding:0;}
			.contact_adress {
				left: auto;top: auto;
				position: relative; z-index: inherit;
				display:block;
				width: 460px; min-height: 460px;
				margin: 32px auto 20px auto;
			}
			.contact_adress .post-shadow {position: relative;}
		
		/* for images with fixed size */
			div.wp-caption { float:none; width:100%!important; margin:0 0 10px;}

		.gallery_template .row {width: 100%; padding-bottom: 0;} /* modern gallery */
		.gallery_listing_grid { right: 0; margin-left: auto; margin-right: auto;}
		.gallery_small_content {left: 0; right: 0;}

		/* slideshow */
			.slideshow_template { position: relative; height: 410px;}
			.slideshow_template .slide_content .entry-title { background: none; font-size: 24px;}
			.slideshow_template .slide_content .entry-content { display: none;}
			.horizontal_left { left:34px;}
			.horizontal_right { right: 34px;}
			.vertical_top { top:34px;}
			.vertical_bottom { bottom: 34px;}

		table.qd_table th, table.qd_table td, table.qd_table caption { padding: 5px}
	}
	
	/*	iPhone (landscape) 
	-------------------------------------------------- */	
	@media only screen and (max-width: 478px) {
		body:before{
			content: "max-width: 478px";
			background: #990099;
		}		
		.row { width:310px; margin: 0 auto;}

		.one_half, .one_third, .two_third, .one_fourth, .three_fourth { float: none; clear: both; margin: 0; margin-bottom: 10px;}
		.one_half, .one_third, .two_third, .one_fourth, .three_fourth { width: 100%;}
					
		.column-line-tail { display:none;}
		
		.header { padding: 0 0 15px; position: relative; z-index: 999;}
		.logo, .filters { background: none !important;}
		.logo { padding:29px 20px 24px; margin:0;}
		.filters  {padding-top: 0;}
		.footer { clear: both; position:relative; padding-bottom:20px;}
		.copyright { width: 100%; height:auto; margin:0;}
		.copyright-indent { padding: 0 30px 0px;}
		
		.header, .footer, .post_single, .post_reply, .column-left  { width: 100%;}
		#main, .content_area, #preloader, #preloaderbg  { margin-left: 0;}
				

		.main_menu { display: none; padding-bottom: 0;}			
			.mainmenu-title {display: inline-block;}
			.main_menu li.opened {display: block}
			.sub-menu {position: relative; left:0;  width: 100%; padding: 0; display: none !important;background: none;box-shadow: none !important;}
			.sub-menu .menu-item {padding: 0 0 1px;}
			.main_menu ul.sf-menu ul {left: 0;}
			.main_menu li:hover ul, .main_menu li.sfHover ul {margin: 0!important;visibility: hidden !important;display: none !important;z-index: 0}
			.main_menu li.opened>ul {margin: 0 !important; visibility: visible !important; display: block !important; top:1px;}
			.main_menu a em {display: block;}
			.sidebar-right .main_menu { padding-right: 15px;}
			.sidebar-right .menu-item a { margin-right: 31px;}

		.content_area { padding:34px 0px 20px;}
		.single .content_area { padding-left:0px; padding-right:0px;}
		
		.posts_listing { width: 100%; left:inherit!important; clear: both; margin-right: 0;}
		
		ol.commentlist li ul.children { margin:29px 0 0 0;}
		
		.column-left { float:none;}
		.sidebar { width:300px; margin:0 auto; padding:40px 0 0;}
		.widget { margin-bottom:35px;}
		
		.widget_social_links ul { text-align: center; margin: 0 auto;}
		
		.widget_gallery li { width: 142px;}
		.widget_gallery span.placeholder span { width:142px;}
		
		.widget_flickr .flickr_badge_image { width:69px;}
		.widget_flickr .box { text-align: center; margin: 0 auto;}
		
		.widget_categories .hiden-title + ul {background: none;padding: 0;}

		.jp-video .jp-current-time, .jp-video .jp-duration, .jp-video .jp-toggless {display: none;}
		.jp-video .jp-progress {padding-right: 0;}
		
		/* Gallery single */					
			.gallery_content { margin-top: 0; width: 100%;}/* gallery lightbox full content */
			.gallery_small_content { left: 0; right: 0; width: 100%;}/* gallery lightbox small content */

			.gallery_single .flex-next, .gallery_single .flex-prev { top:30px;}
			.gallery_single .gallery_close {top: 28px;}

			.gallery_template .row, .classic_gallery_template .row { width: 100%; padding: 0;} /* modern gallery */
			
			.gallery_listing_grid { right: 0; margin-left: auto; margin-right: auto;}

			.phones {width: 100%!important; max-width: 100%;}
		
		/* Contact block */
			.tpl_contact { padding:0;}
			.contact_adress {
				left: auto; top: auto;
				position: relative; z-index: inherit;
				display:block;
				width: 320px; min-height: 460px;
				margin: 32px auto 20px auto;
			}
			.contact_adress .post-shadow {position: relative;}

		/* for images with fixed size */
			div.wp-caption { float:none; width:100%!important; margin:0 0 10px;}

		/* reCaptcha */
			.qd_contact-submit { width: 100%;}
			.recaptcha_logo, .recaptcha_tagline {margin-left: 0; margin-right: 8px;}
			#recaptcha_image { width: 60%!important;}
			#recaptcha_response_field {width: 35%;}
			.recaptcha_reload, .recaptcha_only_if_image, .recaptcha_only_if_audio, .recaptcha_help {margin-left: 1px;}

		#password_lightbox {width: 300px;margin-left: -150px;}

		/* Slideshow */
			.slideshow_template { position: relative; height: 410px;}
			.slideshow_template .slide_content .entry-title { background: none; font-size: 24px;}
			.slideshow_template .slide_content .entry-content { display: none;}			
			.horizontal_left { left:34px;}
			.horizontal_right { right: 34px;}
			.vertical_top { top:34px;}
			.vertical_bottom { bottom: 34px;}

		table.qd_table th, table.qd_table td, table.qd_table caption { font-size: 11px; padding: 3px}
	}
	@media only screen and (max-width:340px) {
		body{min-width: 200px; padding: 0;}
		.row, .footer {width: auto; padding-left:10px; padding-right: 10px;}
		.header,.main_menu_select {width: 100%;}
		.mainmenu {padding: 0 10px;}
		.description {width: auto;}
		.sidebar {width: auto;}
	}
	@media only screen and (min-width: 552px) {
		.main_menu { display: block !important;}
	}
	@media only screen and (min-width: 1225px) {		
		.slideshow_template .slide_content .entry-title {letter-spacing:-3px;}
	}
	@media only screen and (min-width: 1850px) {
		body:before{ content: "min-width: 1850px"; background: #FF0000;}
		
		.post_single.comments_open { width: 1406px;}
		.post_single.comments_close, .bottomcomments .post_single.comments_open, .bottomcomments .post_reply { width: 853px;}
		.post_single.comments_close .post_inner { margin:0;}
		.contentfull .post_single, .contentfull.bottomcomments .post_reply {width: 100%!important;max-width: 100%!important}
		.bottomcomments .post_single.comments_open .post_inner, .bottomcomments  .post_single.comments_close .post_inner{margin-right: 0;}
	}

/*	@media print
-------------------------------------------------- */
	@media print {
		* { background: transparent !important; color: black !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; -ms-filter: none !important; } 
		a, a:visited { text-decoration: underline; }
		a[href]:after { content: " (" attr(href) ")"; }
		abbr[title]:after { content: " (" attr(title) ")"; }
		.ir a:after, a[href^="javascript: "]:after, a[href^="#"]:after { content: ""; } 
		pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
		thead { display: table-header-group; } 
		tr, img { page-break-inside: avoid; }
		img { max-width: 100% !important; }
		@page { margin: 0.5cm; }
		p, h2, h3 { orphans: 3; widows: 3; }
		h2, h3 { page-break-after: avoid; }
	}