
/************************************************************************************
smaller than 980

.video embed,
	.video object,
	.video iframe,
	.slideshow-image {
		width: 100%;
		height: auto;
		
	}
*************************************************************************************/
@media screen and (max-width: 980px) {
 .container {
	
	margin: 5px auto;}
	.galleryItem {width: 21%;}
	/* content */
    
	/* pagewrap */
	#site{ top:2px; 
	left:5px; 
	font-size:12px;}
	
	#pagewrap {
		width: 95%;
	}
	/* search form */
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}
	
	/* content */
	#content {
		width: 60%;
		padding: 3% 4%;
	}
	.img_foto {
	width:90%; 
	}
	
	/* sidebar */
	#sidebar {
		width: 30%;
	}
	#sidebar .widget {
		padding: 8% 7%;
		margin-bottom: 10px;
	}
    #catSelect,#podCat,#prodArend,#raion,#n_cena,#k_cena{
		width: 100px;
	}
	
	.slideshow-image {
		width: 100%;
		height: auto;
		
	}
div#slideshow{ height:300px;}
div#isviVideoBlock{ display:none;}
	}

/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

    .galleryItem {width: 29.33333%;}
	/* header */
	#header {
		height: auto;
	}

	/* main nav */
#main-nav li:hover .dropdown_2columns,
#main-nav li:hover .dropdown_1columnsW{ display:none;}	
	#main-nav {
		position: static;
	}
	 #main-nav li  a { font-size: 90%;
		padding: 10px 8px;
	}
    #dat_ob	 a{ font-size: 90%;
		padding: 10px 8px;
	}
	/* site logo */
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	/* content */
	#content {
		width: auto;
		float: none;
		margin: 50px 5px;
	}

	/* sidebar */
	#sidebar {
		width: 100%;
		margin: 5px;
		float: none;
	}
	#sidebar .widget {
		padding: 3% 4%;
		margin: 0 0 10px;
	}
   
	 #catSelect,#podCat,#prodArend,#raion,#n_cena,#k_cena{
		width: 200px;
	}
	
.post-title{font-size: 90%;}
.widgettitle{font-size: 90%;}
#message{
left: 70%;
margin-left: -80px;
height: 20px; 
line-height: 20px;
margin-top: -30px;
background-color: #000;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;}
#message a { color: #fff; }
.invertedshiftdown a{font: bold 10px Arial;}
}

/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}
	.galleryItem {width: 46%;}
    /* main nav */
	#main-nav li  a { font-size: 80%;
		padding: 10px 8px;
	}
    #dat_ob	 a{ font-size: 80%;
		padding: 10px 8px;
	}
	 #catSelect,#podCat,#prodArend,#raion,#n_cena,#k_cena{
		width: 200px;
	}
.invertedshiftdown a{font: bold 9px Arial; }
div#slideshow{ height:200px;}	
.post-title{font-size: 90%;}
.widgettitle{font-size: 90%;}
}

