.cbp-rfgrid {
	margin: 35px 0 0 0;
	padding: 0;
	list-style: none;
	position: relative;
	width: 100%;
}

.cbp-rfgrid li {
	position: relative;
	float: left;
	overflow: hidden;
	width: 16.6666667%; /* Fallback */
	width: -webkit-calc(100% / 4);
	width: calc(100% / 4);

	transition: all 1000ms ease-in-out; 
    -webkit-transition: all 1000ms ease-in-out; 
    -moz-transition: all 1000ms ease-in-out;
    -o-transition: all 1000ms ease-in-out;
    -ms-transition: all 1000ms ease-in-out;
}

.project-overlay
{
	background: rgba(103,54,83,.6);
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 0;
	transition: all 1000ms ease-in-out; 
    -webkit-transition: all 1000ms ease-in-out; 
    -moz-transition: all 1000ms ease-in-out;
    -o-transition: all 1000ms ease-in-out;
    -ms-transition: all 1000ms ease-in-out;
}
.cbp-rfgrid li div img {
	display: block;
	width: 100%;
	cursor: pointer;
}

.cbp-rfgrid li div img {
	max-width: 100%;
	transition: all 1000ms ease-in-out; 
    -webkit-transition: all 1000ms ease-in-out; 
    -moz-transition: all 1000ms ease-in-out;
    -o-transition: all 1000ms ease-in-out;
    -ms-transition: all 1000ms ease-in-out;
}

.cbp-rfgrid li:hover > div > img
{
	-webkit-transform: scale(1.5); 
	 -moz-transform: scale(1.5); 
	 -o-transform: scale(1.5); 
	 -ms-transform: scale(1.5); 
	 transform: scale(1.5);
}
/* Flexbox is used for centering the heading */
.cbp-rfgrid li div div {
	position: absolute;
	left: 20px;
	top: 20px;
	right: 20px;
	bottom: 20px;
	background: rgba(103,54,83,.7);
	/*display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
    align-items: center;*/
    text-align: center;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: scale(.2); 
	-moz-transform: scale(.2); 
	-o-transform: scale(.2); 
	-ms-transform: scale(.2); 
	transform: scale(.2);
    
    transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-webkit-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	
	
}

.cbp-rfgrid li:hover > div > div {
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transform: scale(1); 
	-moz-transform: scale(1); 
	-o-transform: scale(1); 
	-ms-transform: scale(1); 
	transform: scale(1);
}

.cbp-rfgrid li div div h3 {
	width: 100%;
	clear: both;
	color: #fff;
	text-transform: uppercase;
	font-size: 24px;
	letter-spacing: 2px;
	border-bottom: #b4b4b4 solid 1px;
	padding-bottom: 5px;
	margin-bottom: 15px;
	margin-top: 115px;
}
.cbp-rfgrid li div div p
{
	width: 100%;
	color: #fff;
	clear: both;
	padding-bottom: 20px;
}
.cbp-rfgrid li div div .button-white 
{
	padding: 8px 12px;
	font-size: 14px;
}
.cbp-rfgrid li div div p + a{margin-right: 10px;}
/* Example for media query: change number of items per row */

@media screen and (max-width: 1190px) {
	.cbp-rfgrid li {
		width: 20%; /* Fallback */
		width: -webkit-calc(100% / 3);
		width: calc(100% / 3);
	}
}

@media screen and (max-width: 945px) {
	.cbp-rfgrid li {
		width: 25%; /* Fallback */
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
}

@media screen and (max-width: 660px) {
	.cbp-rfgrid li {
		width: 33.3333333%; /* Fallback */
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
}

@media screen and (min-width: 1366px){
	.cbp-rfgrid li div div h3 
	{
		margin-top: 170px;
	}
}

@media screen and (max-width: 660px) {
	.cbp-rfgrid li {
		width: 33.3333333%; /* Fallback */
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
	.cbp-rfgrid li div div h3 
	{
		margin-top: 50px;
	}
}
@media screen and (max-width: 500px) {
	.cbp-rfgrid li {
		width: 100%;
		
	}

	.cbp-rfgrid li div div h3 
	{
		margin-top: 175px;
	}
}
@media screen and (max-width: 400px) {
	.cbp-rfgrid li {
		width: 100%;
		
	}

	.cbp-rfgrid li div div h3 
	{
		margin-top: 25px;
	}
}

@media screen and (max-width: 300px) {
	.cbp-rfgrid li {
		width: 100%;
	}
	
}

@media (min-width: 780px) and (max-width: 960px){

	.cbp-rfgrid li div div h3 
	{
		margin-top: 175px;
	}

}

@media (min-width: 1200px) and (max-width: 1280px){

	.cbp-rfgrid li div div h3 
	{
		margin-top: 50px;
	}

}