﻿.item-gallery {
    position:relative;
}
.item-gallery .cbp-item {
    margin:0;
    position:relative;
    overflow:hidden;
}
.about-section img {
    max-width: 100% !important;
    height: auto !important;
}
.block-1 .cbp-item:nth-child(1),
.block-9 .cbp-item:nth-child(1),
.block-17 .cbp-item:nth-child(1),
.block-25 .cbp-item:nth-child(1) {
    width: 50%;
    border-right: solid 5px #fff;
    float: left;
}
.block-1 .cbp-item:nth-child(2),
.block-9 .cbp-item:nth-child(2),
.block-17 .cbp-item:nth-child(2),
.block-25 .cbp-item:nth-child(2) {
    width:50%;
    border-left:solid 5px #fff;
    float:left;
}
.block-1 .cbp-item:nth-child(3),
.block-9 .cbp-item:nth-child(3),
.block-17 .cbp-item:nth-child(3),
.block-25 .cbp-item:nth-child(3) {
    width:100%;
    float:none;
    border-top:solid #fff 10px;
    clear:both;
}

.block-4 .cbp-item:nth-child(1),
.block-12 .cbp-item:nth-child(1),
.block-20 .cbp-item:nth-child(1),
.block-28 .cbp-item:nth-child(1) {
    width:100%;
    float:none;
    border-bottom:solid #fff 5px;
}
.block-4 .cbp-item:nth-child(2),
.block-12 .cbp-item:nth-child(2),
.block-20 .cbp-item:nth-child(2),
.block-28 .cbp-item:nth-child(2) {
    width:100%;
    float:none;
    border-top:solid #fff 5px;
}

.block-6 .cbp-item:nth-child(1),
.block-14 .cbp-item:nth-child(1),
.block-22 .cbp-item:nth-child(1),
.block-30 .cbp-item:nth-child(1) {
    width:100%;
    float:none;
    border-bottom:solid #fff 10px;
}
.block-6 .cbp-item:nth-child(2),
.block-14 .cbp-item:nth-child(2),
.block-22 .cbp-item:nth-child(2),
.block-30 .cbp-item:nth-child(2) {
    width:50%;
    border-right:solid 5px #fff;
    float:left;
}
.block-6 .cbp-item:nth-child(3),
.block-14 .cbp-item:nth-child(3),
.block-22 .cbp-item:nth-child(3),
.block-30 .cbp-item:nth-child(3) {
    width:50%;
    border-left:solid 5px #fff;
    float:left;
}
.pagenation-holder {
    background:#f0f0f0;
    margin-bottom:30px;
}
.pagenation-holder h1 {
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
}
.input_submit {
    padding:15px 35px;
    border-radius:5px;
}
.error-search-box {
    clear:both;
    padding-top:30px;
}
.error_holder h2 {
    font-size:17px;
}
.bg-gray {
    background-color:#f0f0f0 !important;
}
.pagination {
    margin-top:50px;
}
.pagination > li a{
    margin-left:5px;
    margin-right:5px;
}
.cbp-item {
    position:relative;
    overflow:hidden;
}
.pagination > li > a, .pagination > li > span {
    padding: 10px 17px;
    border-radius:50% !important;
    color: #f38f1b;
}
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
    background-color: #f38f1b;
    border-color: #f38f1b;
}
.pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
    color: #f38f1b;
}
.sec-contact,
.about-section {
    padding-top:30px;
    padding-bottom:50px;
}
.related-projects {
    clear:both;
    background-color:#f0f0f0;
    padding-top:50px;
    padding-bottom:50px;
}
.related-projects .container,
.header-section .container,
.about-section .container,
.breadcumb-section .container,
.sec-contact .container{
    max-width:1440px;
    width:100%;
}
.gallery-box {
    padding-left:15px;
    padding-right:15px;
}
.sec-contact h4,
.sec-contact h3 {
    font-size:20px;
    font-weight:700;
    margin-bottom:15px;
}
.map {
    margin-top:30px;
}
@media only screen and (min-width: 1450px){
    .gallery-box {
        width:100%;
        max-width:1440px;
        margin-left:auto;
        margin-right:auto;
        display:table;        
    }
    .block-1,
    .block-6,
    .block-9,
    .block-22,
    .block-25,
    .block-30 {
        width:calc( 27.355% - 10px );
        border:solid 5px #fff;
    }
    .block-4,
    .block-28{
        width:calc( 20.68% - 10px );
        border:solid 5px #fff;
    }
    .block-12,
    .block-22 {
        clear:both;
    }
    .block-12,
    .block-20 {
        width:calc( 22.13% - 10px );
        border:solid 5px #fff;
    }
    .block-14,
    .block-17 {
        width:calc( 29.25% - 10px );
        border:solid 5px #fff;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1449px) {
    .related-projects .container, .header-section .container, .about-section .container, .breadcumb-section .container, .sec-contact .container {
        max-width: 1300px;
    }
    .gallery-box {
        width:100%;
        max-width:1300px;
        margin-left:auto;
        margin-right:auto;
        display:table;        
    }
    .block-1,
    .block-6,
    .block-9,
    .block-14,
    .block-17,
    .block-22,
    .block-25,
    .block-30 {
        width:36.36%;
        border:solid 5px #fff;
    }
    .block-4,
    .block-12,
    .block-20,
    .block-28{
        width:27.28%;
        border:solid 5px #fff;
    }
    .block-9,
    .block-17,
    .block-25 {
        clear:both;
    }
}
@media only screen and (min-width: 451px) and (max-width: 991px) {
    .gallery-box {
        width:100%;
        display:table;        
    }
    .block-1,        
    .block-14,  
    .block-17,    
    .block-30 {
        width:57.14%;
        border:solid 5px #fff;
    }
    .block-4,
    .block-12,
    .block-20,    
    .block-28{
        width:42.86%;
        border:solid 5px #fff;
    }
    .block-6,
    .block-9,
    .block-22,
    .block-25   
     {
        width:50%;
        border:solid 5px #fff;
    }
    .block-6,
    .block-12,
    .block-17,
    .block-22,
    .block-28 {
        clear:both;
    }
}
@media only screen and (max-width: 450px) {
    .gallery-box {
        width:100%;
        display:table;        
    }
    .block-1,        
    .block-14,  
    .block-17,    
    .block-30
    .block-4,
    .block-12,
    .block-20,    
    .block-28
    .block-6,
    .block-9,
    .block-22,
    .block-25
    .block-6,
    .block-12,
    .block-17,
    .block-22,
    .block-28 {
        width:100%;
        border:solid 5px #fff;
        clear:both;
    }
}
.c-grid-item__text {
    position: absolute;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    top:0;
    left:0;   
    -webkit-transition: all 2s;
    -moz-transition: all 22s;
    -o-transition: all 2s;
    transition: all 2s; 
}
.c-grid-item__text.is-dark {
    z-index: 4;
    display: none;
    background-color: rgba(0, 0, 0, 0.66);
    opacity:0;
    color:#fff;
    -webkit-transition: all 2s;
    -moz-transition: all 2s;
    -o-transition: all 2s;
    transition: all 2s;
}
.cbp-item:hover .c-grid-item__text.is-dark{
    display:flex;
    opacity:1;
}
.c-grid-item__text .c-grid-item__title {
    transform: translate3d(0px, 100%, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
    font-size:20px;
    font-weight:600
}
.c-grid-item__text:hover .c-grid-item__title {
        transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.c-grid-item__text .c-grid-item__categories {
    transform: translate3d(0px, -100%, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
    font-size:13px;
    color:#d4d4d4;
}
.c-grid-item__text:hover .c-grid-item__categories {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}
.cbp-item img {
    filter: blur(0px);
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
}
.cbp-item:hover img {
    filter: blur(3px);
    -ms-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}