body{
    font-family: Montserrat, sans-serif;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
}
button{
    border: none;
    outline: none;
    cursor: pointer;
}
p{
    font-size: 16px;
    margin-bottom: 20px;
}
h1{
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
}
h2{
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}
h3{
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}
h4{
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}
h5{
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}
h6{
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}
header{
    padding: 30px 0px;
    background: #fff;
}
footer{
    padding: 30px 0px;
    background: #fff;
    text-align: center;
}
section{
    padding: 40px 0;
    background: #f5f8f9;
}
.portfolioTextBlock h1{
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 50px 0px;
    position: relative;
    display: inline-block;
    background: #f5f8f9;
}
.portfolioTextBlock h1 span{
    background: #f5f8f9;   
    position: relative;
    padding: 0 10px;
}
.portfolioTextBlock h1:before{
    position: absolute;
    content: '';
    background: #000;
    height: 1px;
    width: 400px;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.portfolio__item{
    margin: 0px 15px 45px; 
    padding: 0;
    overflow: hidden;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
    border-radius: 3%;
}
.protfolio-item-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
}
.portfolio__item img {
    display: block;
    border: 0;
    width: 100%;
    height: auto;
}
/* Image Effect
------------------------------ */
.portfolio__img-effect {
    position: relative;
    display: block;
    max-height: 250px;
}
.portfolio__img-effect:after {
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 207, 0.95);
    content: " ";
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition-duration: 400ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
}
.portfolio__item:hover .portfolio__img-effect:after {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    top: 0px;
}

/* Position
------------------------------ */
.portfolio__caption-hover {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1.875rem;
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition-duration: 400ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
}
.portfolio__caption-hover h4{
    font-size: 24px;
    line-height: 34px;
    font-weight: 400;
    word-break: break-word;
    color: #fff;
}
.portfolio__caption-hover a{
    width: 50px;
    height: 50px;
    display: inline-block;
    font-size: 16px;
    line-height: 50px;
    font-weight: 400;
    color: #000;
    border-radius: 50%;
    text-align: center;
    background: #fff;
    transition: all 0.3s;
}
.portfolio__caption-hover a:hover{
    transform: rotate(360deg);
}
.portfolio__item:hover .portfolio__caption-hover {
    opacity: 1;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
}

@media (max-width:1023px){
    .portfolio__item{
        margin: 0px 0px 35px;
    }
    .portfolio__caption-hover h4 {
        font-size: 20px;
        line-height: 30px;
        margin: 0px 0px 10px 0px;
    }
    .portfolio__caption-hover a {
        width: 30px;
        height: 30px;
        font-size: 14px;
        line-height: 30px;
    }
    .portfolioTextBlock h1{
        font-size: 34px;
        margin: 0px 0px 35px;
    }
}
@media (max-width:575px){
    .portfolio__item {
        margin: 0px auto 30px;
        max-width: 320px;
        width: 100%;
    }
    .portfolioTextBlock h1{
        font-size: 28px;
        margin: 0px 0px 25px;
    }
    .portfolioTextBlock h1:before{
        width: 320px;
    }
}