.main {
	width: 100%;
	padding: 0 20px;
	margin: 0 auto;
}

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

.project-img-1 {
	background: url(../img/1.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-2 {
	background: url(../img/2.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-3 {
	background: url(../img/3.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-4 {
	background: url(../img/4.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-5 {
	background: url(../img/5.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-6 {
	background: url(../img/6.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-7 {
	background: url(../img/7.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.project-img-8 {
	background: url(../img/8.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.project-img-9 {
    background: url(../img/9.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.project-img-10 {
    background: url(../img/10.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.project-img-11 {
    background: url(../img/11.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.project-img-12 {
    background: url(../img/12.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.project-img-13 {
    background: url(../img/13.jpg) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.last-project-block {
	background: #5e6d78;
}

.contact-block-title {
	font-family: tex-regular, sans-serif;
    font-size: 32px;
    text-align: left;
    color: #f2f5f7;
    padding: 40px 35px 0 40px;
    line-height: 40px;
}

.contact-block-description {
    width: 141px !important;
    height: 26px;
	font-family: tex-bold, sans-serif;
    font-size: 18px;
    text-align: left;
    color: #ffffff;
    margin: 30px 35px 0 40px;
    padding: 0;
    border-bottom: solid 2px #ffffff;
}



/* 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: 33.3%;
	float: left;
	height: 380px;
	text-align: center;
    border: solid 10px white;
}

@media only screen and (min-width: 800px) {
    .main {
        width: 90%;
        padding: 0 40px;
        margin: 0 auto;
    }
    
    /* General grid styles */
    .cbp-ig-grid {
        list-style: none;
        padding: 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: 33.3%;
        float: left;
        height: 380px;
        text-align: center;
    }

    .contact-block-title {
        font-family: tex-regular, sans-serif;
        font-size: 30px;
        text-align: left;
        color: #f2f5f7;
        padding: 35px 35px 0 40px;
        line-height: 40px;
    }

    .contact-block-description {
        width: 141px !important;
        height: 26px;
        font-family: tex-bold, sans-serif;
        font-size: 18px;
        text-align: left;
        color: #ffffff;
        margin: 20px 35px 0 40px;
        padding: 0;
        border-bottom: solid 2px #ffffff;
        -webkit-transition: border-color 0.1s ease-in-out, margin-left 0.2s ease-in-out;
        -moz-transition: border-color 0.1s ease-in-out, margin-left 0.2s ease-in-out;
        -o-transition: border-color 0.1s ease-in-out, margin-left 0.2s ease-in-out;
        transition: border-color 0.1s ease-in-out, margin-left 0.2s ease-in-out;
    }

    .contact-block-description:hover {
        border-color: transparent;
        margin-left: 50px;
    }

    .project-block-btn {
        position: relative;
        top: 50%;
        width: 140px !important;
        height: 24px;
        font-family: tex-bold, sans-serif;
        font-size: 16px;
        text-align: center;
        color: #ffffff;
        margin: 0 auto;
        padding: 0;
        opacity: 0;
        border-bottom: solid 2px #ffffff;
        -webkit-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
        -moz-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
        -o-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
        transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
    }
    .project-block-btn:hover {
        border-color: transparent;
    }
}

@media only screen and (min-width: 1100px) {
    .main {
        width: 90%;
        padding: 0 60px;
        margin: 0 auto;
    }
    
    /* General grid styles */
    .cbp-ig-grid {
        list-style: none;
        padding: 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: 33.3%;
        float: left;
        height: 400px;
        text-align: center;
    }
    .contact-block-title {
        font-family: tex-regular, sans-serif;
        font-size: 36px;
        text-align: left;
        color: #f2f5f7;
        padding: 40px 35px 0 40px;
        line-height: 40px;
    }

    .contact-block-description {
        width: 141px !important;
        height: 26px;
        font-family: tex-bold, sans-serif;
        font-size: 18px;
        text-align: left;
        color: #ffffff;
        margin: 40px 35px 0 40px;
        padding: 0;
        border-bottom: solid 2px #ffffff;
    }
}

/* anchor style */
.cbp-ig-grid li > a {
	display: block;
	height: 100%;
	color: #1b2730;
	-webkit-transition: background 0.3s ease-in-out;
	-moz-transition: background 0.3s ease-in-out;
    -o-transition: background 0.3s ease-in-out;
	transition: background 0.3s ease-in-out;
}

/* title element */
.cbp-ig-grid .cbp-ig-title {
    color: #fff;
	margin: 0;
	padding: 0;
	font-size: 26px;
	position: relative;
    top: 50%;
    opacity: 0;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.16s;
	-moz-transition: -moz-transform 0.3s, opacity 0.16s;
	transition: transform 0.3s, opacity 0.16s;
}

.cbp-ig-grid .cbp-ig-category {
    position: relative;
    top: 46%;
	display: block;
	font-size: 14px;
	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;
}

.project-block-btn {
    position: relative;
    top: 50%;
    width: 140px !important;
    height: 24px;
    font-family: tex-bold, sans-serif;
    font-size: 16px;
    text-align: center;
    color: #ffffff;
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    border-bottom: solid 2px #ffffff;
    -webkit-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
    -moz-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
    -o-transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
    transition: border-color 0.1s ease-in-out, opacity 0.24s ease-in-out;
}

/* Hover styles */

.cbp-ig-grid li > a:hover {
	background: #1b2730;
}

.cbp-ig-grid li > a:hover .project-block-btn {
	color: #ffffff;
    opacity: 1;
}

.cbp-ig-grid li > a:hover .cbp-ig-title {
    color: #fff;
    opacity: 1;
	-webkit-transform: translateY(-30px);
	-moz-transform: translateY(-30px);
	-ms-transform: translateY(-30px);
	transform: translateY(-30px);
}

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

.cbp-ig-grid li > a:hover .cbp-ig-category {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
}


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

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

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

}