.homepage .wrapper {
    max-width: 100%;
    padding: 0;
}

#pagepiling .welcome .row {
    height: 100vh;
}

.homepage .overlay-left:before {
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 1) 100%);
    background: linear-gradient(to top, right(0, 0, 0, 0) 35%, rgba(0, 0, 0, 1) 100%);
}

.homepage .copy {
    padding: 3rem 2rem 2rem 3rem;
    color: #fff;
    z-index: 1;
    font-family: 'Lato';
}

.homepage .copy h1 {
    font-size: 2.75rem;
    text-shadow: 10px 10px 60px rgba(0, 0, 0, 0.5);
    margin-right: 3rem;
}

.homepage .copy p {
    font-size: 1rem;
    line-height: 1.25rem;
}

.homepage .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.homepage .services,
.services .service {
    display: flex;
    align-items: flex-start;
    padding-top: 3rem;
}

.homepage .service-img,
.services .service-img {
    border: 0 solid #ddd;
    height: 45vh;
    border-left: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.services .service-img {
    border: 0 solid #fff;
}
.homepage .services .row,
.services .service .row {
    padding: 3rem;
}

.homepage .services p,
.services .service p {
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 0;
    text-align: left;
    border-right: 1.5rem solid transparent;
}

.homepage .section-title {
    color: #0a9dbc;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
}

.homepage .service-img .image-caption,
.services .service-img .image-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    text-align: center;
    color: #000;
    padding: 1rem 1rem 0 1rem;
    background: #fff;
    top: -moz-calc(100% - (3.5rem));
    top: -webkit-calc(100% - (3.5rem));
    top: calc(100% - (3.5rem));
    transition: all 0.75s;
}
.services .service-img .image-caption {
    top: calc(100% - (4.5rem));
}

.homepage .service-img:hover .image-caption,
.services .service-img:hover .image-caption  {
    display: flex;
    align-items: flex-start;
    top: 0;
    color: #fff;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 90%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 90%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 90%);
    align-items: flex-end;
}

.homepage .service-img .image-caption h3 {
    font-size: 1.5rem;
}
.services .service-img .image-caption h3 {
    font-size: 1.5rem;
    height: 2.5rem;
}
.homepage .service-img .image-caption p,
.services .service-img .image-caption p {
    font-size: 0.875rem;
    line-height: 1rem;
    text-align: center;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.homepage .service-img:hover .image-caption h3,
.homepage .service-img:hover .image-caption p,
.services .service-img:hover .image-caption h3,
.services .service-img:hover .image-caption p {
    color: #fff;
}

.homepage .services svg,
.services .service svg {
    display: block;
    margin-top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    fill: #fff;
}

.vLines {
    position: absolute;
    top: 0;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    transition-delay: 0;
    transition-duration: 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

.hLines {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 15rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transition-delay: 0;
    transition-duration: 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

.project-description {
    position: absolute;
    left: 60%;
    top: 60%;
    background-color: rgba(27, 83, 174, 1);
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    transition-delay: 0;
    transition-duration: 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    color: #0a9dbc;
    padding: 2rem;
    font-weight: 400;
}

.project-description .btn-primary {
    background-color: #0a9dbc;
    border: 0;
    color: #fff;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.25);
    display: inline-block;
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.project-description h2 {
    margin-bottom: 0.5rem;
}

.project-description h3 {
    color: #b4b4b4;
    font-size: 1rem
}

.project-description p {
    color: #0d0d0d;
    font-size: 0.875rem;
    line-height: 1rem;
}


.misc-photos,
.misc-text {
    height: 45vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: transparent;
}

.misc-text {
    height: calc(100% - (45vh));
    height: 75vh;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #fff;
    flex-direction: column;
    position: relative;
    padding-bottom: 2rem;
}

.misc-photos .row {
    height: 45vh;
    width: 100%;
}

.misc-photos .row .bg {
    border-right: 1px solid #fff;
}

.misc-text h1 {
    color: #0a9dbc;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: 300;
    padding: 0 2.5rem;
    margin: 2rem 0;
    text-align: center;
    width: 100%;
}

.misc-text p {
    color: #000;
    font-size: 1rem;
    line-height: 1.5rem;
    max-width: 100%;
    padding: 0 2rem;
    font-weight: 400;
    text-align: center;
}

.homepage .arrow-down {
    display: none;
    position: absolute;
    text-align: center;
    z-index: 99999;
    width: 200px;
    padding: 2rem;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
}

.homepage .arrow-down a {
    display: inline-block;
}

.homepage .services .arrow-down svg,
.homepage .misc .arrow-down svg {
    fill: #0d0d0d;
    width: 2rem;
    height: 2rem;
    margin: 0 1rem;
}

.homepage .welcome .arrow-down svg,
.homepage .news .arrow-down svg {
    fill: #fff;
    width: 2rem;
    height: 2rem;
    margin: 0 1rem;
}

.misc-photos [class*="col-"]:nth-child(1),
.misc-photos [class*="col-"]:nth-child(2),
.misc-photos [class*="col-"]:nth-child(3),
.misc-photos [class*="col-"]:nth-child(4),
.misc-photos [class*="col-"]:nth-child(5),
.misc-photos [class*="col-"]:nth-child(6),
.misc-photos [class*="col-"]:nth-child(7),
.misc-photos [class*="col-"]:nth-child(8) {
    display: none !important;
    height: 0;
}

.misc-photos [class*="col-"]:nth-child(5) {
    display: block !important;
    height: 45vh;
}

/* Medium. Above 48rem (768px) */
@media only screen and (min-width: 48rem) {
    .homepage .copy {
        padding: 3rem 6rem 6rem 6rem;
    }

    .homepage .copy h1 {
        font-size: 4.75rem;
    }

    .homepage .copy p {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }

    .homepage .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin: 1rem 0;
    }

    .homepage .services .row,
    .services .service .row {
        padding: 0 8rem;
    }

    .homepage .services p,
    .services .service p {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .homepage .services .col-xs-12.col-sm-6.col-md-3:nth-of-type(even) .service-img {
        border: 0.5rem solid #ddd;
        border-top-width: 0;
        border-bottom-width: 0;
        border-left-width: 0;
    }
    .services .service .col-xs-12.col-sm-6.col-md-4:nth-of-type(even) .service-img {
        border: 0.5rem solid #fff;
        border-top-width: 0;
        border-bottom-width: 0;
        border-left-width: 0;
    }
    .homepage .services .col-xs-12.col-sm-6.col-md-3:nth-of-type(odd) .service-img {
        border: 0.5rem solid #ddd;
        border-top-width: 0;
        border-bottom-width: 0;
        border-right-width: 0;
    }
    .services .service .col-xs-12.col-sm-6.col-md-4:nth-of-type(odd) .service-img {
        border: 0.5rem solid #fff;
        border-top-width: 0;
        border-bottom-width: 0;
        border-right-width: 0;
    }
    
    .homepage .service-img .image-caption p,
    .services .service-img .image-caption p {
        font-size: 1rem;
        line-height: 1.25rem;
    }

    .project-description p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .misc-photos,
    .misc-photos .row,
    .misc-photos [class*="col-"]:nth-child(5) {
        height: 60vh;
        width: 100%;
    }

    .misc-text h1 {
        font-size: 3rem;
        line-height: 2.5rem;
        margin: 3rem 0;
    }
}

/* Large. Above 64rem (1024px) */
@media only screen and (min-width: 64rem) {
    .homepage .services {
        align-items: center;
        padding-top: 5rem;
    }
    .services .service {
        align-items: center;
        padding-top: 2rem;
    }
    
    .homepage .overlay-left:before {
        background: -moz-linear-gradient(right, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
        background: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
        background: linear-gradient(to bottom, right(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
    }

    .homepage .copy {
        padding: 3rem 3rem 3rem 8rem;
        max-width: 65%;
    }

    .homepage .services p {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    .services .service p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .service-img:hover .image-caption {
        padding-bottom: 0;
    }

    .service-img:hover .image-caption p {
        padding: 0;
    }

    .homepage .services .col-xs-12.col-sm-6.col-md-3:nth-of-type(even) .service-img,
    .homepage .services .col-xs-12.col-sm-6.col-md-3:nth-of-type(odd) .service-img {
        border: 1rem solid #ddd;
        border-top-width: 0;
        border-bottom-width: 0;
        border-left-width: 0;
    }
    .services .service .col-xs-12.col-sm-6.col-md-4:nth-of-type(even) .service-img,
    .services .service .col-xs-12.col-sm-6.col-md-4:nth-of-type(odd) .service-img {
        border: 1rem solid #fff;
        border-top-width: 0;
        border-bottom-width: 0;
        border-left-width: 0;
    }
    
    .homepage .services .col-xs-12.col-sm-6.col-md-3:last-of-type .service-img {
        border-right-width: 0;
    }

    .services .service .col-xs-12.col-sm-6.col-md-4:last-of-type .service-img {
        border-right-width: 0;
    }
    
    .misc-photos,
    .misc-text {
        height: 55vh;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .misc-text {
        align-items: center;
        justify-content: flex-start;
    }

    .misc-text p {
        max-width: 50%;
    }

    .misc-photos .row {
        height: 45vh;
    }

    .misc-photos [class*="col-"]:nth-child(2) {
        display: block !important;
        height: 25vh;
    }

    .misc-photos [class*="col-"]:nth-child(3) {
        display: block !important;
        height: 20vh;
    }

    .misc-photos [class*="col-"]:nth-child(4) {
        display: block !important;
        height: 35vh;
    }

    .misc-photos [class*="col-"]:nth-child(5) {
        display: block !important;
        height: 25vh;
    }

    .misc-photos [class*="col-"]:nth-child(6) {
        display: block !important;
        height: 45vh;
    }

    .misc-photos [class*="col-"]:nth-child(7) {
        display: block !important;
        height: 20vh;
    }

}

/* Extra large. Above 80rem (1280px) */
@media only screen and (min-width: 80rem) {
    .homepage .copy {
        padding: 3rem 3rem 10rem 8rem;
        max-width: 60%;
    }

    .homepage .copy h1 {
        /*        max-width: 80%;*/
        font-size: 8rem;
        text-shadow: 10px 10px 60px rgba(0, 0, 0, 0.5);
    }

    .homepage .arrow-down {
        display: block;
    }
}
