html {
	overflow-y: scroll;
	margin: 0;
	padding: 0;
}
	
.container { 
top:90px;
	position: relative; 
	width: 100%; 
	margin: 0; 
	-webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;	
  padding-bottom: 30px;
}
 
 /*----- Back to Top arrow -----*/

        #backtop {
	        position: fixed;
            left:auto;right: 1.6%;top:auto;bottom: 30px;
	        outline: none;
            overflow:hidden;
            color:#fff;
            text-align:center;
            background-color:rgba(0,0,0,0.84);
            height:40px;
            width:40px;
            line-height:40px;
            font-size:14px;
            cursor:pointer;
            transition:all 0.3s linear;
            z-index:999999;

            opacity:1;
            display:none;
        }
        #backtop:hover {
            background-color:#000;
        }
        #backtop.mcOut {
            opacity:0;
        }
 
 
#filters {
	margin:0px;
	padding:0;
	list-style:none;
}

	#filters li {
		float:left;
		font-size: 1em;
		font-family: 'Oswald', Helvetica Neue, Helvetica, sans-serif;
		text-transform: lowercase;
		color: #666;
	}
		
	#filters li a {
		display: block;
		padding:5px 20px;		
		text-decoration:none;
		cursor: pointer;
		outline: none;
	}
		
	#filters li span {
		display: block;
		padding:5px 20px;		
		text-decoration:none;
		cursor: pointer;
	}
	
	#filters li span.active {
		background: #000;
		color:#fff;
		outline: none;
	}
	
	#filters li span:hover {
		color:#66c0ec;
		outline: none;
	}
 

 
#portfoliolist .portfolio {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	width:23%;
	margin:1.6% 0 0 1.6%;
	display:none;
	float:left;
	overflow:hidden;
}

	.portfolio-wrapper {
		overflow:hidden;
		position: relative !important;
		background: #fff ;
		top:5px; /*hides bottom border wrapper*/
	}

	.portfolio img {
		max-width:100%;
		position: relative;
		top:0;
    -webkit-transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
    transition:         all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);		
	}
	
	.portfolio .label {
		position: absolute;
		width: 90%;
		height:90%;
		bottom:-90%;
		left:5%;
		overflow-y:auto !important;
	    -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
		transition:         all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
		opacity: 0.90;
		background: #ddd; /*match scrollbar default*/
	}
	
		.portfolio .label-text {
			position: relative;
			z-index:500;
			padding:5px 8px;
		}
			
			.portfolio .text-title {
				color:#000;
				display:block;
				font-size:0.8em;
				font-family: 'Oswald', Helvetica Neue, Helvetica, sans-serif;
				text-transform: lowercase;
				padding-bottom:5px;
			}
	
			.portfolio .text-subtitle {
				color:#000;
				display:block;
				font-size: 0.75em;
				font-family: 'Oswald', Helvetica Neue, Helvetica, sans-serif;
				text-transform: lowercase;
				padding-bottom:5px;
			}
			
			.portfolio .text-pre-category {
				display:block;
				color:#666;
				font-size: 0.75em;
				font-family: 'Alegreya', serif;
				text-transform: lowercase;
				padding-bottom:5px;
			}
			
			.portfolio .text-category {
				color:#000;
				display:inline;
				/*font-size: 0.7em !important;*/
				font-family: 'Alegreya', serif;
			}
	
	.portfolio:hover .label {
    bottom:5%;
  }
	.portfolio:hover img {
    -moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
  }  

	
@media only screen and (max-width: 1100px) {
	.container { 
		width: 100%; 
	}
	
	#portfoliolist .portfolio {
		width:47%;
		margin:2% 0 0 2%;
	}		

	#ads {
		display:none;
	}
	
	#backtop {
			right: 2%;
    }
	
}



@media only screen and (max-width: 500px) {
	.container {
		width: 100%;
	}
	
	#portfoliolist .portfolio {
		width:98%;
		margin:1%;
	}
	
	#ads {
		display:none;
	}
	
	#backtop {
			right: 1%;
    }
	
	#filters li a {
		padding:5px 10px;		
	}
		
	#filters li span {
		padding:5px 10px;		
	}
	
}

/* #Clearing */

/* Self Clearing Goodness */
.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;
}

