.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(81,129,190,.3); */
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 0;
	transition: all 500ms ease-in-out; 
    -webkit-transition: all 500ms ease-in-out; 
    -moz-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
}
.cbp-rfgrid li div img {
	display: block;
	width: 100%;
	cursor: pointer;
}

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

.cbp-rfgrid li:hover > div > img{
	-webkit-transform: scale(1.2); 
	 -moz-transform: scale(1.2); 
	 -o-transform: scale(1.2); 
	 -ms-transform: scale(1.2); 
	 transform: scale(1.2);
}
/* Flexbox is used for centering the heading */
.cbp-rfgrid li div div {
	position: absolute;
	left: 20px;
	top: 20px;
	right: 20px;
	bottom: 20px;
	background: rgba(81,129,190,.7);
	padding:5px;
	/*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);
	}
	.sticky-menu{
		margin-right: 35px;
	}
}

@media screen and (max-width: 991px) {
	.cbp-rfgrid li {
		width: 25%; /* Fallback */
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
	.clients-wrap .span22{
		float: left;
		width:20%;
	}
	.topMenuIcon,
	header .topLogo{
		display: none;
	}
	
}

@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: 100px;
	}
}
@media (max-width: 767px) {
	#youtube3{
		height: 300px!important
	}
	.social-wrap .section-heading{
		margin-top: 0px;
	}
	.social-wrap .sub-title{
		font-size: 18px;
	    margin-bottom: 0;
	}
	.topSlider .owl-dots .owl-dot{
		width: 50px;
    	height: 7px;
	}
	.topSlider .sliderCaption h2{
		line-height: 2rem;
		font-size: 6.5vw;
	}
	.topSlider .owl-carousel .owl-item img{
		height: 500px;
		object-fit: cover;
		object-position: 10%;
	}
	.topSlider .slick-dots li{
		width: 60px;
	}
	.topSlider .slick-slide img.thirdImg{
		object-position: 18%
	}
	.topSlider .owl-carousel .owl-item img.img1{
		object-position: 50%;
	}
	.topSlider .owl-carousel .owl-item img.img2{
		object-position: 47%
	}
	.tinynav > a {
		margin-right:10px;
	}
	.tinynav > ul {
		left: -25px;
	}
	
	.sti-menu{
		margin-top: 0px;
	}
	.topSlider{
		margin-top: 79px;
	}
	.about-txt,.team{
		padding: 0px 15px;
	}
	.page-heading .section-heading{
		margin-top: 0px;
	}
	.social-wrap{
		padding-bottom: 40px;
		margin-bottom: 60px;
	}
	#contactForm input{
		margin-left: 0px;
	}
	#contactForm{
		margin: 10px;
	}
	.social-icon-facebook,
	.social-icon-twitter,
	.social-icon-youtube{
		width: 90px!important;
		height: 90px!important;
		background-size: 60%!important;
		background-repeat: no-repeat!important;
		background-position: 50%!important;
	}
	.brandLogos .bLogo {
    	width: 40%;
	}
	#services .cbp-ig-grid{
		margin-bottom: 0px;
	}
}
@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;
	}
	.VideoContainer button{
		top: 7%;
	    right: 7%;

	}
	.video1{
	    top: 25%;
		right: 0;
	    width: 80% !important;
	    height: 60% !important;
	    left: 0;
	    margin: auto;
	}
	#youtubeSan,
	#youtubeSos,
	#youtube3{
		height: 340px!important
	}
}
@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%;
	}
	
	.forimg img {
    margin-left: -20px !important;
}
	
}

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

}