/* General grid styles */
.cbp-ig-grid {
	list-style: none;
	padding: 0 0 0px 0;
	margin: 0;
}

/* Clear floats */
.cbp-ig-grid:before, 
.cbp-ig-grid:after { 
	content: " "; 
	display: table; 
}

.cbp-ig-grid:after { 
	clear: both; 
}

/* grid item */
.cbp-ig-grid li {
	width: 14%;
	float: left;
	height: 120px;
	text-align: center;
}

/* we are using a combination of borders and box shadows to control the grid lines */

/* anchor style */
.cbp-ig-grid li > a {
	display: block;
	
	-webkit-transition: background 0.2s;
	-moz-transition: background 0.2s;
	transition: background 0.2s;
}

/* the icon with pseudo class for icon font */
.cbp-ig-icon {
	padding: 10px 0 0 0;
	display: block;
	-webkit-transition: -webkit-transform 0.2s;
	transition: -moz-transform 0.2s;
	transition: transform 0.2s;

}
.cbp-ig-icon img {
	height:64px;
	width:auto;
}
.cbp-ig-icon:before {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 12px;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}
/* title element */
.cbp-ig-grid .cbp-ig-title {
	margin: 10px 0 5px 0;
	padding: 10px 0 0 0;
	font-size: 12px;
	text-decoration:none;
	position: relative;
	-webkit-transition: -webkit-transform 0.2s;
	-moz-transition: -moz-transform 0.2s;
	transition: transform 0.2s;
	color:#FFF;
		font-weight:bold;
text-shadow: 0px 2px 4px rgba(96, 96, 96, 1);
}

.cbp-ig-grid .cbp-ig-title:before {
	content: '';
	position: absolute;
	background: #ffcd05;
	width: 140px;
	height: 5px;
	top: 0px;
	left: 50%;
	margin: 0px 0 0 -70px;
	-webkit-transition: margin-top 0.2s; /* top or translate does not seem to work in Firefox */
	-moz-transition: margin-top 0.2s;
	transition: margin-top 0.2s;
}

.cbp-ig-grid .cbp-ig-category {
	
	display: inline-block;
	font-size: 12px;
	letter-spacing: 1px;
	color: #fff;
	-webkit-transform: translateY(10px);
	-moz-transform: -moz-translateY(10px);
	-ms-transform: -ms-translateY(10px);
	transform: translateY(10px);
	opacity: 0;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
	-moz-transition: -moz-transform 0.3s, opacity 0.2s;
	-webkit-transition: transform 0.3s, opacity 0.2s;
}

.cbp-ig-grid li:hover .cbp-ig-category,
.touch .cbp-ig-grid li .cbp-ig-category {
	opacity: 1;
	-webkit-transform: translateY(2px);
	-moz-transform: translateY(2px);
	-ms-transform: translateY(2px);
	transform: translateY(2px);
	
}

/* Hover styles */

.cbp-ig-grid li:hover {
	background: #ffcd05;
}

.cbp-ig-grid li:hover .cbp-ig-icon {
	-webkit-transform: translateY(10px);
	-moz-transform: translateY(10px);
	-ms-transform: translateY(10px);
	transform: translateY(10px);
}

.cbp-ig-grid li:hover .cbp-ig-icon:before,
.cbp-ig-grid li:hover .cbp-ig-title {
	color: #000;
}



.cbp-ig-grid li:hover .cbp-ig-title:before {
	background: #fff;
	margin-top: 30px;
}


@media screen and (max-width: 62.75em) {
	.cbp-ig-grid li {
		width: 50%;
	}

	/* reset the grid lines */
	.cbp-ig-grid li:nth-child(-n+3){
		border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(3n-1),
	.cbp-ig-grid li:nth-child(3n-2) {
		box-shadow: none;border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: none;border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: 1px 0 0 #ddd;border-top: 1px solid #ddd;
	}
}

@media screen and (max-width: 41.6em) { 
	.cbp-ig-grid li {
		width: 50%;
	}

	.cbp-ig-grid li:nth-child(-n+2){
		border-top: 1px solid #ddd;
	}

	.cbp-ig-grid li:nth-child(2n-1) {
		box-shadow: none
	}

	.cbp-ig-grid li:first-child {
		border-top: none;
	}
}

@media screen and (max-width: 25em) { 
	.cbp-ig-grid {
		font-size: 80%;
	}

	.cbp-ig-grid .cbp-ig-category {
		margin-top: 20px;
	}
}