/* General grid styles */
.cbp-ig-grid {
	list-style: none;
	padding: 0 0 50px 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 {
	display:inline-block;
	vertical-align:top;
	width: 25%;
	height: 350px;
	text-align: center;
	border-top: 1px solid #ddd;
	box-shadow: 1px 1px 0 #ddd;
}

/* we are using a combination of borders and box shadows to control the grid lines */
.cbp-ig-grid li:nth-child(-n+4){
	border-top: none;
}


/* anchor style */
.cbp-ig-grid li > a {
	display: block;
	height: 100%;
	padding: 0 35px;
	color: #272727;
}

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


/* title element */
.cbp-ig-grid .cbp-ig-title {
	margin: 20px 0 10px 0;
	padding: 20px 0 0 0;
	font-size: 16px;
	line-height:20px;
	font-weight:600;
	position: relative;
	-webkit-transition: -webkit-transform 0.2s;
	-moz-transition: -moz-transform 0.2s;
	transition: transform 0.2s;
}

.cbp-ig-grid .cbp-ig-title:before {
	content: '';
	position: absolute;
	background: #272727;
	width: 160px;
	height: 3px;
	top: 0px;
	left: 50%;
	margin: 5px 0 0 -80px;
}

.cbp-ig-grid .cbp-ig-category {
	display: inline-block;
	font-size:13px;
	font-weight:300;
	line-height:20px;
	color: #272727;
	margin-top: 10px;
	-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(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}

.cbp-ig-grid .cbp-ig-more {
	text-transform:uppercase;
	display: table;
	cursor: pointer;
    margin: auto;
	font-size:11px;
	font-weight:700;
	line-height:13px;
	color: #272727;
	margin-top: 10px;
	-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-more,
.touch .cbp-ig-grid li .cbp-ig-more {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}

/* Hover styles */

.cbp-ig-grid li > a:hover {
	 box-shadow: 0px 0px 147px 0px rgba(28, 32, 30, 0.34) inset;
}

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


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

.cbp-ig-grid li > a:hover .cbp-ig-title:before {
	/*background: #fff;*/
	margin-top: 50px;
}


@media screen and (max-width: 1250px) {
	.cbp-ig-grid li {
		width: 33.333%;
	}

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

	.cbp-ig-grid li:nth-child(-n+3){
		border-top: none;
	}

}


@media screen and (max-width: 900px) {
	.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(-n+2){
		border-top: none;
	}

}

@media screen and (max-width: 500px) { 
	.cbp-ig-grid {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.cbp-ig-grid li {
		width: 100%;
	}

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

	.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;
	}
}