@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=latin,cyrillic);
html, body {
    height: 100%;
    position: relative;
}
header {
	margin: 0 auto;
	padding: 1em;
}

header {
	text-align: center;
	background: rgb(62, 151, 221);
	color: #fff;
	padding: 3em;
}

h1 {
	font-size: 2.4em;
	font-family: 'Open Sans', Calibri, Arial, sans-serif;
	text-align: center;
	text-shadow: 1px 1px #FFFFFF;
	line-height: 1.3;
	padding: 0 25px;
	font-weight: 300;
}

h1 span {
	display: block;
	font-size: 60%;
	opacity: 0.7;
	padding: 0 0 0.6em 0.1em;
}
.container { 
	position: relative; 
	width: 960px; 
	margin: 0 auto;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;	
} 
#filters {
	margin:1%;
	padding:0;
	list-style:none;
}
#filters li {
	float:left;
	font:Arial, Helvetica, sans-serif;
	font-size:16px;
}
#filters li span {
	display: block;
	padding:5px 20px;		
	text-decoration:none;
	color: #333333;text-shadow: 0px 0px #f5ec2b;
	cursor: pointer;
}
#filters li span:hover {
	background: #f5ec2b;text-shadow: 0 0 2px #f5ec2b;
	color:#333333;
}
#filters li span.active {
	background: #f5ec2b;text-shadow: 0 0 0px #f5ec2b;
	color:#333333;
}
#portfoliolist .portfolio {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	width:240px;
	min-width:240px;
	margin:0%;
	display:none;
	float:left;
	overflow:hidden;
}
.portfolio-wrapper {
	overflow:hidden;
	position: relative !important;
	background: #666;
	cursor:pointer;
}
.portfolio img {
	width:240px;
	min-width:240px;
	position: relative;
	}
.portfolio .label {
	position: absolute;
	width: 100%;
	height:40px;
	bottom:-40px;
}
.portfolio .label-bg {
    background: #f5ec2b;
	width: 100%;
	height:100%;
	position: absolute;
	top:0;
	left:0;
}
.portfolio .label-text {
	color: #000;
	position: relative;
	z-index:500;
	padding:5px 8px;
}
.text-title {
	color: #000;
}
.portfolio .text-category {
	display:block;
	font-size:10px;
}	
/* Планшет */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.container {
		width: 768px; 
	}
}
/* Мобильный - Примечание: Дизайн для ширины 320px*/
@media only screen and (max-width: 767px) {
	.container { 
		/* width: 95%; */
		width:240px;
		text-align:center;
	}
	#portfoliolist .portfolio {
		width:240px;
		margin:0%;
		text-align:center;
	}			
	.portfolio-wrapper {
		text-align:center;
	}
}
/* Мобильный - Примечание: Дизайн для ширины 480px */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	.container {
		/* width: 70%; */
		width: 480px;
	}	
}
/* #очистка */
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }

.clearfix:before,
.clearfix:after,
.row:before,
.row:after {
  content: '\0020';
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0; }
.row:after,
.clearfix:after {
  clear: both; }
.row,
.clearfix {
  zoom: 1; }

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}
