@media screen and (min-width: 1281px) {
    .portfolio-intro h1 {
        font-size: 48px;
        line-height: 80px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .portfolio-intro h1 {
        font-size: 4vw;
        line-height: 7vw;
    }
}

@media screen and (max-width: 767px) {
    .portfolio-intro h1 {
        font-size: 40px;
        line-height: 55px;
    }
    span.seperator {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-intro h1 {
        font-size: 24px;
        line-height: 45px;
    }
}

@media screen and (min-width: 480px) and (max-width: 1024px) {
    .portfolio-intro {
        text-align: left;
    }
    .portfolio-intro p {
        width: 50%;
        padding-left: 20px;
        padding-top: 20px;
        position: relative;
        padding-right: 0;
        padding: 20px 0px;
    }
    .portfolio-intro:after {
        display: none;
    }
    /* BRICKS */
    /* First row */
    .brick-wrap:nth-child(3n+1) {
        padding-bottom: 100%;
    }
    .brick-wrap:nth-child(3n+1) .brick.animate:nth-child(1) {
        left: 0!important;
        top: 0!Important;
        height: calc(100% / 3);
        width: 50%;
    }
    .brick-wrap:nth-child(3n+1) .brick.animate:nth-child(2) {
        left: 50%!important;
        top: calc(100% / 3)!important;
        width: 50%;
        height: calc(100% / 3);
    }
    .brick-wrap:nth-child(3n+1) .brick.animate:nth-child(3) {
        left: 25%!important;
        height: calc(100% / 3);
        top: calc(100% / 3 * 2)!important;
        width: 25%;
    }
    /* Second row */
    .brick-wrap:nth-child(3n+2) {
        padding-bottom: 100%;
    }
    .brick-wrap:nth-child(3n+2) .brick:nth-child(1) {
        right: auto!important;
        left: 0!important;
        top: 0!Important;
        height: calc(100% / 3 * 2);
        width: 25%;
    }
    .brick-wrap:nth-child(3n+2) .brick:nth-child(2) {
        left: auto!important;
        right: 0!important;
        top: 0!important;
        width: 50%;
        height: calc(100% / 3 * 2);
    }
    .brick-wrap:nth-child(3n+2) .brick:nth-child(3) {
        right: 50%!important;
        left: auto!important;
        height: calc(100% / 3);
        top: calc(100% / 3 * 2)!important;
        width: 25%;
    }
    /* Third row */
    .brick-wrap:nth-child(3n+3) {
        padding-bottom: 100%;
    }
    .brick-wrap:nth-child(3n+3) .brick:nth-child(1) {
        left: auto!important;
        top: 0!Important;
        height: calc(100% / 3);
        width: 50%;
        right: 0;
    }
    .brick-wrap:nth-child(3n+3) .brick:nth-child(2) {
        left: 0%!important;
        top: calc(100% / 3)!important;
        width: 50%;
        height: calc(100% / 3);
    }
    .brick-wrap:nth-child(3n+3) .brick:nth-child(3) {
        left: 50%!important;
        height: calc(100% / 3);
        top: calc(100% / 3 * 2)!important;
        width: 25%;
    }
}

@media screen and (min-width: 769px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        height: 100px;
        z-index: 120;
        line-height: 100px;
        text-align: right;
        padding-right: 40px;
        transition: 0.5s ease;
        display: none;
    }
    .main-navigation.reset {
        line-height: 50px;
    }
    .main-navigation li a {
        position: relative;
        display: inline-block;
        line-height: 20px;
        width: auto;
        height: auto;
        font-size: 14px;
        padding: 0 15px;
    }
    .menu-item {
        display: inline-block;
    }
    .menu-main-nav-container {
        display: inline-block;
        vertical-align: middle;
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    
    .home-about p strong {
    color: white;
}
    
    .home-about p,
    .portfolio-intro h1 {
        color: #606060;
    }
    
table.contact-table td {
    display: inline-block;
    min-width: 0;
    padding: 0 30px 0 0;
}
    
    table.contact-table {
        padding:30px 40px 50px 40px!important;}
}

@media screen and (max-width: 768px) {
    #nav-btn {
        display: block;
        display: none;
    }
    .main-navigation {
        position: fixed;
        color: gray;
        right: 0;
        top: 0;
        bottom: 0;
        padding: 20px;
        transform: translateY(-100%);
        transition: 0.5s cubic-bezier(.18, .45, .23, 1.02);
        width: 50%;
        height: 50%;
        z-index: 99;
    }
    nav ul li.current-menu-item a {
        color: #000!important;
    }
    .primary-menu a {
        color: gray;
    }
    .open-nav .main-navigation {
        transform: translateY(0%);
    }
    .main-navigation:after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f7f7f7;
        z-index: 1;
        transform-origin: top right;
        transition: 0.4s ease;
    }
    .open-nav .main-navigation:after {}
    .menu-main-nav-container {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0;
        max-width: 100%;
        max-height: 100%;
        overflow: auto;
        z-index: 3;
        transform: translateY(-100px);
        transition: 0.7s ease;
        opacity: 0;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -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;
        height: 100%;
        width: 100%;
    }
    .open-nav .menu-main-nav-container {
        transform: translateY(0px);
        opacity: 1;
    }
    .primary-menu {
        width: 80%;
    }

}

@media screen and (max-width: 600px) {
    
      table.contact-table td {
        width: 100%;
        text-align: center;
        padding: 0px 0 20px 0;
    }
    
    .video-image {
        width: 100%;
        padding-bottom: 50%;
    }
    .main-navigation {
        width: 100%;
        height: auto;
    }
    .portfolio-intro p {
        width: 100%;
        padding: 20px;
        position: relative;
    }
    .portfolio-intro:after {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    
    .credits {
        padding-top:50px;
    }
    
    .get-in-touch>div {
    width: 100%;
    padding: 20px 0;
}
    
    .get-in-touch>div:nth-child(2) {
    display: none;
}
    
    table.contact-table {
        margin: 20px auto!important;
    }
   
    .home-about {
        padding: 50px 20px 0px 20px;
    }
    .home-about p {
        font-size: 20px;
        line-height: 40px;
    }
    .site-header {
        padding: 0 30px;
    }
    .portfolio-intro h1 {
        font-size: 19px;
        line-height: 38px;
    }
    .portfolio-intro {
        padding: 100px 20px 0 20px;
    }
    article.page{
        padding:0 30px;
    }
    .bricks,
    .related {
        padding: 0;
    }
    body .bricks .brick-wrap .brick,
    body .related .brick-wrap .brick {
        width: 100%!important;
        left: 0!important;
        right: 0!important;
        height: calc(100% / 3);
        padding: 10px 0;
    }
    .brick-wrap {
        padding-bottom: 160%!important;
    }
    .brick-wrap .brick:nth-child(1) {
        top: 0!important;
    }
    .brick-wrap .brick:nth-child(2) {
        top: calc(100% / 3)!important;
    }
    .brick-wrap .brick:nth-child(3) {
        top: calc(100% / 3 * 2)!important;
    }
    .brick-wrap:nth-child(3n+1) {
        top: 0!important;
    }
    .brick-wrap:nth-child(3n+2) {
        top: calc(100% / 3)!important;
    }
    .brick-wrap:nth-child(3n+3) {
        top: calc(100% / 3 * 2);
    }
}