/**
 * @file
 * Positioning for responsive layout .
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  max-width: 1124px;
}

#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
.region-dolny,
#footer {
  padding-left: 10px;
  padding-right: 10px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before, #header:after,
#main:before, #main:after,
#footer:before, #footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

.region-dolny, 
#header {
padding-left: 0;
padding-right: 0;
}

/*
* The layout when there is only one sidebar, the left one.
*/

.sidebar-first #content {
float: left;
width: 812px;
margin-left: 312px;
}

.sidebar-first .region-dolny {
float: left;
width: 812px;
margin-left: 312px;
}

.sidebar-first .region-sidebar-first { 
position: absolute;
left: 0px;
top: 90px;
width: 280px;
z-index: 100;
}

/*
* The layout when there are two sidebars.
*/

.two-sidebars #content { 
float: left;
width: 52%;
margin-left: 28%;
margin-right: -80%;
}
.two-sidebars .region-sidebar-first { 
float: left;
margin-top: 42px;
width: 280px;
}
.two-sidebars .region-sidebar-second { 
float: left;
width: 20%;
margin-left: 80%;
margin-right: -100%;
}

.two-sidebars .artkat16 #content,
.two-sidebars .artkat8 #content, 
.two-sidebars .artkat9 #content { 
width: 72%;
margin-right: -100%;
}
.two-sidebars .artkat16 .region-sidebar-second, 
.two-sidebars .artkat8 .region-sidebar-second, 
.two-sidebars .artkat9 .region-sidebar-second { 
display: none;
}


@media all and (max-width: 729px) {

  /*
   * The layout when there is only one sidebar, the left one.
   */
  

  .sidebar-first #content { 
    float: left;
    width: 100%;
    margin-left: 0;
  }
  
  .sidebar-first .region-dolny { 
	float: left;
	width: 100%;
	margin-left: 0;
	}
  
  .sidebar-first .region-sidebar-first {
	position: static;
    float: left;
    width: 100%;
	margin-top: 40px;
  }
  
  /*
* The layout when there are two sidebars.
*/

	.two-sidebars #content {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	}
	.two-sidebars .region-sidebar-first {
	width: 100%;
	}
	.two-sidebars .region-sidebar-second {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	}
	
	.two-sidebars .artkat16 #content, 
	.two-sidebars .artkat8 #content, 
	.two-sidebars .artkat9 #content { 
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	}

}

@media all and (min-width: 730px) and (max-width: 1149px) {

  /*
   * The layout when there is only one sidebar, the left one.
   */
  

  .sidebar-first #content { 
    float: left;
    width: auto;
    margin-left: 325px;
  }
  
  .sidebar-first .region-dolny { 
	float: left;
	width: auto;
	margin-left: 325px;
	}
  
  .sidebar-first .region-sidebar-first {
	top: 90px;
	left: 17px;
  }

@media all and (min-width: 1000px) and (max-width: 1149px) {

/*
* The layout when there are two sidebars.
*/

	.two-sidebars #content { 
	width: 51.3%;
	margin-left: 28.7%;
	}
	.two-sidebars .region-sidebar-first {
	}
	
	.two-sidebars .artkat16 #content, 
	.two-sidebars .artkat8 #content, 
	.two-sidebars .artkat9 #content { 
	width: 70%;
	margin-right: -100%;
	}
}

@media all and (min-width: 730px) and (max-width: 999px) {

/*
* The layout when there are two sidebars.
*/

	.two-sidebars #content { 
	width: 70%;
	margin-left: 0;
	margin-right: 0;
	}
	.two-sidebars .region-sidebar-first { 
	width: 100%;
	}
	.two-sidebars .region-sidebar-second {
	width: 30%;
	margin-left: 0;
	margin-right: 0;
	}
	
	.two-sidebars .artkat16 #content, 
	.two-sidebars .artkat8 #content, 
	.two-sidebars .artkat9 #content { 
	width: 100%;
	margin-right: 0;
	}

}