
/* -------------------------------- 

Patterns - reusable parts of our design

-------------------------------- */
.cd-text-replace {
    /* replace text with image */
    color: transparent;
    text-indent: 100%;
    overflow: hidden;
    white-space: nowrap;
  }
  
  /* -------------------------------- 
  
  Menu trigger
  
  -------------------------------- */
  .cd-nav-trigger {
    position: absolute;
    z-index: 100;
    top: 8%;
    right: 3%;
    height: 52px;
    width: 52px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-transition: background 0.2s;
    -moz-transition: background 0.2s;
    transition: background 0.2s;
    display: none;
  }
  .cd-nav-trigger.project-open {
    display: block;	
  }
  .cd-nav-trigger .cd-icon,
  .cd-nav-trigger .cd-icon::before,
  .cd-nav-trigger .cd-icon::after {
    /* menu icon created in CSS */
    position: absolute;
    background-color: #ffffff;
    border-radius: 2px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .no-touch .cd-nav-trigger:hover {
    background-color: black;
  }
  .cd-nav-trigger .cd-icon {
    /* middle line of the menu icon */
    display: inline-block;
    width: 18px;
    height: 2px;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition: -webkit-transform 0.3s, background-color 0.3s;
    -moz-transition: -moz-transform 0.3s, background-color 0.3s;
    transition: transform 0.3s, background-color 0.3s;
  }
  .cd-nav-trigger .cd-icon::before, .cd-nav-trigger .cd-icon::after {
    /* upper and lower lines of the menu icon */
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
  }
  .cd-nav-trigger .cd-icon::before {
    -webkit-transform: translateY(-6px);
    -moz-transform: translateY(-6px);
    -ms-transform: translateY(-6px);
    -o-transform: translateY(-6px);
    transform: translateY(-6px);
  }
  .cd-nav-trigger .cd-icon::after {
    -webkit-transform: translateY(6px);
    -moz-transform: translateY(6px);
    -ms-transform: translateY(6px);
    -o-transform: translateY(6px);
    transform: translateY(6px);
  }
  .cd-nav-trigger.project-open .cd-icon {
    /* user selects a projects - transform the icon into a 'X' */
    background-color: rgba(255, 255, 255, 0);
  }
  .cd-nav-trigger.project-open .cd-icon::before, .cd-nav-trigger.project-open .cd-icon::after {
    background-color: white;
  }
  .cd-nav-trigger.project-open .cd-icon::before {
    -webkit-transform: translateY(0) rotate(45deg);
    -moz-transform: translateY(0) rotate(45deg);
    -ms-transform: translateY(0) rotate(45deg);
    -o-transform: translateY(0) rotate(45deg);
    transform: translateY(0) rotate(45deg);
  }
  .cd-nav-trigger.project-open .cd-icon::after {
    -webkit-transform: translateY(0) rotate(-45deg);
    -moz-transform: translateY(0) rotate(-45deg);
    -ms-transform: translateY(0) rotate(-45deg);
    -o-transform: translateY(0) rotate(-45deg);
    transform: translateY(0) rotate(-45deg);
  }
  .cd-nav-trigger.nav-visible .cd-icon {
    /* user opens the navigation - transform the icon into an arrow */
    -webkit-transform: translateY(-50%) translateX(-50%);
    -moz-transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
    -o-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
  }
  .cd-nav-trigger.nav-visible .cd-icon::after {
    -webkit-transform: translateX(5px) translateY(3px) rotate(-45deg) scaleX(0.5);
    -moz-transform: translateX(5px) translateY(3px) rotate(-45deg) scaleX(0.5);
    -ms-transform: translateX(5px) translateY(3px) rotate(-45deg) scaleX(0.5);
    -o-transform: translateX(5px) translateY(3px) rotate(-45deg) scaleX(0.5);
    transform: translateX(5px) translateY(3px) rotate(-45deg) scaleX(0.5);
  }
  .cd-nav-trigger.nav-visible .cd-icon::before {
    -webkit-transform: translateX(5px) translateY(-3px) rotate(45deg) scaleX(0.5);
    -moz-transform: translateX(5px) translateY(-3px) rotate(45deg) scaleX(0.5);
    -ms-transform: translateX(5px) translateY(-3px) rotate(45deg) scaleX(0.5);
    -o-transform: translateX(5px) translateY(-3px) rotate(45deg) scaleX(0.5);
    transform: translateX(5px) translateY(-3px) rotate(45deg) scaleX(0.5);
  }
  @media only screen and (min-width: 1024px) {
    .cd-nav-trigger.nav-visible .cd-icon {
      -webkit-transform: translateY(-50%) translateX(-50%) rotate(-90deg);
      -moz-transform: translateY(-50%) translateX(-50%) rotate(-90deg);
      -ms-transform: translateY(-50%) translateX(-50%) rotate(-90deg);
      -o-transform: translateY(-50%) translateX(-50%) rotate(-90deg);
      transform: translateY(-50%) translateX(-50%) rotate(-90deg);
    }
    .cd-nav-trigger.nav-visible .cd-icon::after {
      -webkit-transform: translateX(-5px) translateY(3px) rotate(45deg) scaleX(0.5);
      -moz-transform: translateX(-5px) translateY(3px) rotate(45deg) scaleX(0.5);
      -ms-transform: translateX(-5px) translateY(3px) rotate(45deg) scaleX(0.5);
      -o-transform: translateX(-5px) translateY(3px) rotate(45deg) scaleX(0.5);
      transform: translateX(-5px) translateY(3px) rotate(45deg) scaleX(0.5);
    }
    .cd-nav-trigger.nav-visible .cd-icon::before {
      -webkit-transform: translateX(-5px) translateY(-3px) rotate(-45deg) scaleX(0.5);
      -moz-transform: translateX(-5px) translateY(-3px) rotate(-45deg) scaleX(0.5);
      -ms-transform: translateX(-5px) translateY(-3px) rotate(-45deg) scaleX(0.5);
      -o-transform: translateX(-5px) translateY(-3px) rotate(-45deg) scaleX(0.5);
      transform: translateX(-5px) translateY(-3px) rotate(-45deg) scaleX(0.5);
    }
  }
  
  /* -------------------------------- 
  
  Projects
  
  -------------------------------- */
  .cd-projects-container {
    position: relative;
    z-index: 2;
  }
  .cd-projects-container.project-open {
    /* smooth scroll on iOS devices */
    -webkit-overflow-scrolling: touch;
  }
  
  .cd-projects-previews {
    position: relative;
    z-index: 2;
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  .cd-projects-previews::after {
    clear: both;
    content: "";
    display: table;
  }
  .project-open .cd-projects-previews {
    pointer-events: none;
  }
  .cd-projects-previews li {
    height: 25%;
    width: 100%;
    overflow: hidden;
    -webkit-transition: -webkit-transform 0.5s;
    -moz-transition: -moz-transform 0.5s;
    transition: transform 0.5s;
    /* Force Hardware Acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(1px);
    -moz-transform: translateZ(1px);
    -ms-transform: translateZ(1px);
    -o-transform: translateZ(1px);
    transform: translateZ(1px);
  }
  .cd-projects-previews li.selected {
    opacity: 0;
    /* move selected project preview out of the viewport with no transition */
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0s;
    -moz-transition: -moz-transform 0s;
    transition: transform 0s;
  }
  .cd-projects-previews li.slide-out {
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  .cd-projects-previews a {
    display: block;
    height: 100vh;
    width: 100%;
    /* fixes a bug on projects caption width */
    -webkit-transform: translateY(0%);
    -moz-transform: translateY(0%);
    -ms-transform: translateY(0%);
    -o-transform: translateY(0%);
    transform: translateY(0%);
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    transition: opacity 0.5s;
  }
  @media only screen and (max-width: 1023px) {
      .cd-projects-previews a {
          -webkit-transform: translateY(-10%);
          -moz-transform: translateY(-10%);
          -ms-transform: translateY(-10%);
          -o-transform: translateY(-10%);
          transform: translateY(-10%);
      }
      
  
  }
  .cd-projects-previews li:nth-of-type(2) a  {
    -webkit-transform: translateY(-25%);
    -moz-transform: translateY(-25%);
    -ms-transform: translateY(-25%);
    -o-transform: translateY(-25%);
    transform: translateY(-25%);
  }
  .cd-projects-previews li:nth-of-type(3) a {
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  .cd-projects-previews li:nth-of-type(4) a {
    -webkit-transform: translateY(-75%);
    -moz-transform: translateY(-75%);
    -ms-transform: translateY(-75%);
    -o-transform: translateY(-75%);
    transform: translateY(-75%);
  }
  .cd-projects-previews .bg-loaded a {
    opacity: 1;
  }
  @media only screen and (min-width: 1024px) {
    .cd-projects-previews li {
      display: inline-block;
      height: 100%;
      /*width: 25%;*/
      width: 25%;
      float: left;
    }
    .cd-projects-previews li.selected {
      -webkit-transform: translateY(-100%);
      -moz-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
      -o-transform: translateY(-100%);
      transform: translateY(-100%);
    }
    .cd-projects-previews li.slide-out {
      -webkit-transform: translateY(-100%);
      -moz-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
      -o-transform: translateY(-100%);
      transform: translateY(-100%);
    }
    .cd-projects-previews a {
      /* width equal to window width */
      width: 400%;
    }
    .cd-projects-previews li:nth-of-type(2) a {
      -webkit-transform: translateX(-25%);
      -moz-transform: translateX(-25%);
      -ms-transform: translateX(-25%);
      -o-transform: translateX(-25%);
      transform: translateX(-25%);
    }
    .cd-projects-previews li:nth-of-type(3) a {
      -webkit-transform: translateX(-50%);
      -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
      -o-transform: translateX(-50%);
      transform: translateX(-50%);
    }
    .cd-projects-previews li:nth-of-type(4) a {
      -webkit-transform: translateX(-75%);
      -moz-transform: translateX(-75%);
      -ms-transform: translateX(-75%);
      -o-transform: translateX(-75%);
      transform: translateX(-75%);
    }
  }
  
  .cd-projects {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    padding: 0;
  }
  .cd-projects > li {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
  }
  .cd-projects > li.selected {
    z-index: 1;
    opacity: 1;
    -webkit-transition: opacity 0s;
    -moz-transition: opacity 0s;
    transition: opacity 0s;
  }
  .cd-projects .preview-image {
    position: absolute;  
    top: 0;
    display: block;
    height: 100vh;
    width: 100%; 
  }
  
  #productlines .cd-projects-previews a,
  #productlines .cd-projects .preview-image {
    /* set a background image for each project */
    background: url(/imts/bg/protomax.jpg) no-repeat center center;
    background-size: cover;
  }
  
  #productlines .cd-projects-previews li:nth-of-type(2) a,
  #productlines .cd-projects > li:nth-of-type(2) .preview-image {
    background: url(/imts/bg/globalmax.jpg) no-repeat center center;
    background-size: cover;
  }
  
  #productlines .cd-projects-previews li:nth-of-type(3) a,
  #productlines .cd-projects > li:nth-of-type(3) .preview-image { 
    background: url(/imts/bg/maxiem.jpg) no-repeat center center;
    background-size: cover;
  }
  
  #productlines .cd-projects-previews li:nth-of-type(4) a,
  #productlines .cd-projects > li:nth-of-type(4) .preview-image {
    background: url(/imts/bg/omax-80x.jpg) no-repeat center center;
    background-size: cover;
  }

/*+++++++++++++++++++++
  Min Width 1024
+++++++++++++++++++++*/
  @media only screen and (min-width: 1024px) {
    #productlines .cd-projects-previews li:nth-of-type(4) a {
        background-position-x: 670px;
        background-position-y: top;
      }
  }
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Why OMAX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  #whyomax .cd-projects-previews a,
  #whyomax .cd-projects .preview-image {
    /* set a background image for each project */
    background: url(/fabtech/bg/customer-service.jpg) no-repeat center center;
    background-size: cover;
  }

  #whyomax .cd-projects-previews li:nth-of-type(1) a,
  #whyomax .cd-projects > li:nth-of-type(1) .preview-image {
    background-position-x: -1370px;
    transition: background-position-x .5s ease-in-out;
  }

  #whyomax .cd-projects > li.selected:nth-of-type(1) .preview-image {
    background-position-x: right;
  }
  
  #whyomax .cd-projects-previews li:nth-of-type(2) a,
  #whyomax .cd-projects > li:nth-of-type(2) .preview-image {
    background: url(/fabtech/bg/training-page-banner.jpg) no-repeat center center;
    background-size: cover;
  }
  
  #whyomax .cd-projects-previews li:nth-of-type(3) a,
  #whyomax .cd-projects > li:nth-of-type(3) .preview-image { 
    background: url(/fabtech/bg/omax-building.jpg) no-repeat center center;
    background-size: cover;
  }
  
  #whyomax .cd-projects-previews li:nth-of-type(4) a,
  #whyomax .cd-projects > li:nth-of-type(4) .preview-image {
    background: url(/fabtech/bg/diamart.jpg) no-repeat center center;
    background-size: cover;
    background-position-x: 1370px;
    transition: background-position-x .5s ease-in-out;
  }

  #whyomax .cd-projects > li.selected:nth-of-type(4) .preview-image {
    background-position-x: right;
  }
  /*@media only screen and (min-width: 1024px) {
    #whyomax .cd-projects-previews li:nth-of-type(4) a {
          background-position-x: 420px;
      }
  }*/
  
  .cd-projects-previews li a:after,
  .cd-projects li .preview-image:after {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      content: ' ';
      background-color: rgba(0, 0, 0, .5);
      transition: background-color .3s ease-in-out;
  }
  /* First Video */
  .cd-projects-previews li:first-of-type a:after {
    background-color: rgba(0, 0, 0, 0.5);
  }
  .cd-projects-previews li:first-of-type a:hover:after,
  .cd-projects > li:first-of-type .preview-image:after {
    background-color: rgba(0, 0, 0, 0.3);
  }
  /* Second Video */
  .cd-projects-previews li:nth-of-type(2) a:after {
    background-color: rgba(51, 51, 51, .5);  
  }
  .cd-projects-previews li:nth-of-type(2) a:hover:after,
  .cd-projects > li:nth-of-type(2) .preview-image:after {
    background-color: rgba(51, 51, 51, .3);
  }
  /* Third Video */
  .cd-projects-previews li:nth-of-type(3) a:after {
    background-color: rgba(0, 0, 0, .5);
  }
  .cd-projects-previews li:nth-of-type(3) a:hover:after,
  .cd-projects > li:nth-of-type(3) .preview-image:after {
    background-color: rgba(0, 0, 0, .3);
  }
  /* Fourth Video */
  .cd-projects-previews li:nth-of-type(4) a:after {
    background-color: rgba(51, 51, 51, .5);
  }
  .cd-projects-previews li:nth-of-type(4) a:hover:after,
  .cd-projects > li:nth-of-type(4) .preview-image:after {
    background-color: rgba(51, 51, 51, .3);
  }


  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Why OMAX
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  /* First Video */
  #whyomax .cd-projects-previews li:first-of-type a:after {
    background-color: rgba(0, 0, 0, 0.5);
  }
  #whyomax .cd-projects-previews li:first-of-type a:hover:after,
  #whyomax .cd-projects > li:first-of-type .preview-image:after {
    background-color: rgba(0, 0, 0, 0.4);
  }
  /* Second Video */
  #whyomax .cd-projects-previews li:nth-of-type(2) a:after {
    background-color: rgba(0, 0, 0, .7);  
  }
  #whyomax .cd-projects-previews li:nth-of-type(2) a:hover:after,
  #whyomax .cd-projects > li:nth-of-type(2) .preview-image:after {
    background-color: rgba(0, 0, 0, .4);
  }
  /* Third Video */
  #whyomax .cd-projects-previews li:nth-of-type(3) a:after {
    background-color: rgba(0, 0, 0, .5);
  }
  #whyomax .cd-projects-previews li:nth-of-type(3) a:hover:after,
  #whyomax .cd-projects > li:nth-of-type(3) .preview-image:after {
    background-color: rgba(0, 0, 0, .2);
  }
  /* Fourth Video */
  #whyomax .cd-projects-previews li:nth-of-type(4) a:after {
    background-color: rgba(0, 0, 0, .7);
  }
  #whyomax .cd-projects-previews li:nth-of-type(4) a:hover:after,
  #whyomax .cd-projects > li:nth-of-type(4) .preview-image:after {
    background-color: rgba(0, 0, 0, .4);
  }
  
  .cd-project-title {
    position: absolute;
    width: 100%;
    top: calc(50% - 20px);
    left: 0;
    color: #ffffff;
    -webkit-transform: translateY(-37.5vh);
    -moz-transform: translateY(-37.5vh);
    -ms-transform: translateY(-37.5vh);
    -o-transform: translateY(-37.5vh);
    transform: translateY(-37.5vh);
    -webkit-transition: -webkit-transform 0.6s 0.2s;
    -moz-transition: -moz-transform 0.6s 0.2s;
    transition: transform 0.6s 0.2s;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 50;
  }

  @media all and (min-width: 1024px) and (max-width: 1440px) {
    #productlines .cd-projects-previews li:nth-of-type(4) a {
        background-position-x: 320px;
    }
    #whyomax .cd-projects-previews li:nth-of-type(1) a, #whyomax .cd-projects > li:nth-of-type(1) .preview-image {
      background-position-x: -830px;
    }
    #whyomax .cd-projects-previews li:nth-of-type(4) a, #whyomax .cd-projects > li:nth-of-type(4) .preview-image {
      background-position-x: 570px;
    }
  }
  @media only screen and (max-width: 1024px) {
      .cd-project-title {
          top: 40%;
      }
      
      .cd-projects-previews li:first-of-type a .cd-project-title {
          top: 50%;
      }
  }
  
  @media only screen and (max-width: 728px) {
      .cd-project-title {
          top: 40%;
      }
      .cd-projects-previews li:first-of-type a .cd-project-title {
          top: 50%;
      }
  }
  .cd-project-title::after {
    /* line below project title */
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 40px;
    height: 1px;
    background: #ffffff;
    -webkit-transform: translateX(-50%) scale(0);
    -moz-transform: translateX(-50%) scale(0);
    -ms-transform: translateX(-50%) scale(0);
    -o-transform: translateX(-50%) scale(0);
    transform: translateX(-50%) scale(0);
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
  }
  .no-touch .cd-projects-previews a:hover .cd-project-title::after {
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }
  .cd-projects .cd-project-title::after {
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
    -webkit-transition: -webkit-transform 0.3s 0.3s;
    -moz-transition: -moz-transform 0.3s 0.3s;
    transition: transform 0.3s 0.3s;
  }
  .cd-project-title h2 {
    font-size: 2.5rem;
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
  }
  .cd-project-title p {
    line-height: 1.2;
    padding: .4em 2em;
    opacity: .8;
  }
  @media only screen and (min-width: 1024px) {
    .cd-project-title {
      width: 25%;
      top: 40vh;
      -webkit-transform: translateX(0%);
      -moz-transform: translateX(0%);
      -ms-transform: translateX(0%);
      -o-transform: translateX(0%);
      transform: translateX(0%);
    }
      
    .preview-image .cd-project-title {
      width: 35%;
    }
    .preview-image .cd-project-title {
      top: 40vh;
    }
      
    .preview-image .wistia_responsive_padding {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      width: 85vh;
      top: -12em;
    }
  }
  .cd-projects-previews li:nth-of-type(2) .cd-project-title,
  .cd-projects > li:nth-of-type(2) .cd-project-title {
    -webkit-transform: translateY(-12.5vh);
    -moz-transform: translateY(-12.5vh);
    -ms-transform: translateY(-12.5vh);
    -o-transform: translateY(-12.5vh);
    transform: translateY(-12.5vh);
  }
  @media only screen and (min-width: 1024px) {
    .cd-projects-previews li:nth-of-type(2) .cd-project-title,
    .cd-projects > li:nth-of-type(2) .cd-project-title {
      -webkit-transform: translateX(100%);
      -moz-transform: translateX(100%);
      -ms-transform: translateX(100%);
      -o-transform: translateX(100%);
      transform: translateX(100%);
    }
  }
  
  .cd-projects-previews li:nth-of-type(3) .cd-project-title,
  .cd-projects > li:nth-of-type(3) .cd-project-title {
    -webkit-transform: translateY(12.5vh);
    -moz-transform: translateY(12.5vh);
    -ms-transform: translateY(12.5vh);
    -o-transform: translateY(12.5vh);
    transform: translateY(12.5vh);
  }
  @media only screen and (min-width: 1024px) {
    .cd-projects-previews li:nth-of-type(3) .cd-project-title,
    .cd-projects > li:nth-of-type(3) .cd-project-title {
      -webkit-transform: translateX(200%);
      -moz-transform: translateX(200%);
      -ms-transform: translateX(200%);
      -o-transform: translateX(200%);
      transform: translateX(200%);
    }
  }
  
  .cd-projects-previews li:nth-of-type(4) a .cd-project-title,
  .cd-projects > li:nth-of-type(4) .cd-project-title {
    -webkit-transform: translateY(37.5vh);
    -moz-transform: translateY(37.5vh);
    -ms-transform: translateY(37.5vh);
    -o-transform: translateY(37.5vh);
    transform: translateY(37.5vh);
  }
  @media only screen and (min-width: 1024px) {
    .cd-projects-previews li:nth-of-type(4) a .cd-project-title,
    .cd-projects > li:nth-of-type(4) .cd-project-title {
      -webkit-transform: translateX(300%);
      -moz-transform: translateX(300%);
      -ms-transform: translateX(300%);
      -o-transform: translateX(300%);
      transform: translateX(300%);
    }
  }
  
  li.selected .cd-project-title,
  .cd-projects > li:nth-of-type(2).selected .cd-project-title,
  .cd-projects > li:nth-of-type(3).selected .cd-project-title,
  .cd-projects > li:nth-of-type(4).selected .cd-project-title {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  .cd-projects > li:nth-of-type(4).selected .cd-project-title {
    -webkit-transform: translateY(-40%);
    -moz-transform: translateY(-40%);
    -ms-transform: translateY(-40%);
    -o-transform: translateY(-40%);
    transform: translateY(-40%);
  }
  @media only screen and (min-width: 1024px) {
    li.selected .cd-project-title,
    .cd-projects > li:nth-of-type(2).selected .cd-project-title,
    .cd-projects > li:nth-of-type(3).selected .cd-project-title,
    .cd-projects > li:nth-of-type(4).selected .cd-project-title {
      /*  
      -webkit-transform: translateX(150%);
      -moz-transform: translateX(150%);
      -ms-transform: translateX(150%);
      -o-transform: translateX(150%);
      transform: translateX(150%);*/
      -webkit-transform: translateX(95%);
      -moz-transform: translateX(95%);
      -ms-transform: translateX(95%);
      -o-transform: translateX(95%);
      transform: translateX(95%);
    }
  }
  
  .cd-projects li.selected .cd-project-title::after {
    -webkit-transition: -webkit-transform 0.3s 0s;
    -moz-transition: -moz-transform 0.3s 0s;
    transition: transform 0.3s 0s;
    -webkit-transform: translateX(-50%) scale(0);
    -moz-transform: translateX(-50%) scale(0);
    -ms-transform: translateX(-50%) scale(0);
    -o-transform: translateX(-50%) scale(0);
    transform: translateX(-50%) scale(0);
  }
  
  .touch .cd-projects li.selected .cd-project-title::after {
    -webkit-transition: -webkit-transform 0s;
    -moz-transition: -moz-transform 0s;
    transition: transform 0s;
  }
  
  .cd-project-info {
    display: none;
    padding: 4em 0;
    background-color: #ffffff;
    color: #7d7c7b;
  }
  .content-visible .cd-project-info {
    display: block;
  }
  .cd-project-info p {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
  }
  
  .cd-projects-container .scroll {
    display: block;
    position: absolute;
    z-index: 2;
    bottom: 30px;
    left: 50%;
    width: 44px;
    height: 44px;
    /* rest button default style */
    cursor: pointer;
    border: none;
    background: url("../img/cd-icon-arrow.svg") no-repeat center center;
    visibility: hidden;
    -webkit-transform: translateX(-50%) scale(0);
    -moz-transform: translateX(-50%) scale(0);
    -ms-transform: translateX(-50%) scale(0);
    -o-transform: translateX(-50%) scale(0);
    transform: translateX(-50%) scale(0);
    -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0.3s;
    -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0.3s;
    transition: transform 0.3s 0s, visibility 0s 0.3s;
  }
  .cd-projects-container .scroll:focus {
    outline: none;
  }
  
  .cd-projects-container.project-open .scroll {
    visibility: visible;
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
    -webkit-transition: -webkit-transform 0.4s 0s, visibility 0s 0s;
    -moz-transition: -moz-transform 0.4s 0s, visibility 0s 0s;
    transition: transform 0.4s 0s, visibility 0s 0s;
    -webkit-animation: cd-translate 1.2s 0.8s;
    -moz-animation: cd-translate 1.2s 0.8s;
    animation: cd-translate 1.2s 0.8s;
    -webkit-animation-iteration-count: 2;
    -moz-animation-iteration-count: 2;
    animation-iteration-count: 2;
  }
  
  .no-touch .cd-projects-container.project-open .scroll:hover {
    -webkit-transform: translateX(-50%) scale(1.2);
    -moz-transform: translateX(-50%) scale(1.2);
    -ms-transform: translateX(-50%) scale(1.2);
    -o-transform: translateX(-50%) scale(1.2);
    transform: translateX(-50%) scale(1.2);
  }
  
  @-webkit-keyframes cd-translate {
    0% {
      -webkit-transform: translateX(-50%) scale(1);
    }
    50% {
      -webkit-transform: translateY(10px) translateX(-50%) scale(1);
    }
    100% {
      -webkit-transform: translateX(-50%) scale(1);
    }
  }
  @-moz-keyframes cd-translate {
    0% {
      -moz-transform: translateX(-50%) scale(1);
    }
    50% {
      -moz-transform: translateY(10px) translateX(-50%) scale(1);
    }
    100% {
      -moz-transform: translateX(-50%) scale(1);
    }
  }
  @keyframes cd-translate {
    0% {
      -webkit-transform: translateX(-50%) scale(1);
      -moz-transform: translateX(-50%) scale(1);
      -ms-transform: translateX(-50%) scale(1);
      -o-transform: translateX(-50%) scale(1);
      transform: translateX(-50%) scale(1);
    }
    50% {
      -webkit-transform: translateY(10px) translateX(-50%) scale(1);
      -moz-transform: translateY(10px) translateX(-50%) scale(1);
      -ms-transform: translateY(10px) translateX(-50%) scale(1);
      -o-transform: translateY(10px) translateX(-50%) scale(1);
      transform: translateY(10px) translateX(-50%) scale(1);
    }
    100% {
      -webkit-transform: translateX(-50%) scale(1);
      -moz-transform: translateX(-50%) scale(1);
      -ms-transform: translateX(-50%) scale(1);
      -o-transform: translateX(-50%) scale(1);
      transform: translateX(-50%) scale(1);
    }
  }
  /* -------------------------------- 
  
   Navigation
  
  -------------------------------- */
  .cd-primary-nav {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    text-align: center;
    opacity: 0;
    -webkit-transition: opacity 0.6s;
    -moz-transition: opacity 0.6s;
    transition: opacity 0.6s;
    /* vertically align its content */
    display: table;
  }
  .cd-primary-nav ul {
    /* vertically align inside nav */
    display: table-cell;
    vertical-align: middle;
  }
  .cd-primary-nav a {
    display: inline-block;
    padding: .4em 1em;
    border-radius: 4px;
    -webkit-transition: background 0.2s;
    -moz-transition: background 0.2s;
    transition: background 0.2s;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .no-touch .cd-primary-nav a:hover {
    background-color: #a8ae7e;
  }
  .cd-primary-nav .cd-label {
    position: relative;
    margin: 2.4em 0 2em;
    color: #a8ae7e;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  .cd-primary-nav .cd-label::after {
    /* line below .cd-label*/
    content: '';
    position: absolute;
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: -16px;
    height: 1px;
    width: 40px;
    background-color: currentColor;
  }
  .cd-primary-nav.nav-visible {
    opacity: 1;
  }
  .cd-primary-nav.nav-clickable {
    z-index: 3;
  }
  .no-csstransitions .cd-primary-nav.nav-visible {
    z-index: 3;
  }
  @media only screen and (min-width: 1170px) {
    .cd-primary-nav a {
      font-size: 4rem;
    }
  }

  @media only screen and (max-width: 768px) {

  /* product lines */
  #productlines .cd-projects-previews a,
  #productlines .cd-projects .preview-image {
    background-position-x: center;
    background-position-y: center;
  }

  #productlines .cd-projects-previews li:nth-of-type(1) a,
  #productlines .cd-projects > li:nth-of-type(1) .preview-image {
    background-position-x: left;
    background-position-y: -200px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(1) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(2) a,
  #productlines .cd-projects > li:nth-of-type(2) .preview-image {
    background-position-x: -310px;
    background-position-y: -200px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(2) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(3) a,
  #productlines .cd-projects > li:nth-of-type(3) .preview-image { 
    background-position-x: -690px;
    background-position-y: 20px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(3) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(4) a,
  #productlines .cd-projects > li:nth-of-type(4) .preview-image {
    background-position-x: -660px;
    background-position-y: 220px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(4) .preview-image {
      background-position-y: top;
    }

  /* Why OMAX */
    #whyomax .cd-projects-previews li:nth-of-type(1) a,
    #whyomax .cd-projects li:nth-of-type(1) .preview-image {
      background-position-x: right;
      background-position-y: 20px;
      transition: background-position-y ease-in-out .5s;
    }

    #whyomax .cd-projects li.selected:nth-of-type(1) .preview-image {
      background-position-y: top;
    }

    #whyomax .cd-projects-previews li:nth-of-type(3) a,
    #whyomax .cd-projects li:nth-of-type(3) .preview-image {
      background-position-y: 150px;
      transition: background-position-y ease-in-out .2s;
    }
      #whyomax .cd-projects li.selected:nth-of-type(3) .preview-image {
        background-position-y: top;
      }
    
    #whyomax .cd-projects-previews li:nth-of-type(4) a,
    #whyomax .cd-projects > li:nth-of-type(4) .preview-image {
      background-position-x: -370px;
      background-position-y: 480px;
      transition: background-position-y ease-in-out .5s;
    }

    #whyomax .cd-projects > li.selected:nth-of-type(4) .preview-image {
      background-position-x: -370px;
      background-position-y: top;
    }
  }

  @media only screen and (max-width: 480px) {
    /* Why OMAX */
    #whyomax .cd-projects-previews li:nth-of-type(4) a,
    #whyomax .cd-projects > li:nth-of-type(4) .preview-image {
      background-position-x: -280px;
      background-position-y: 280px;
    }
    #whyomax .cd-projects > li.selected:nth-of-type(4) .preview-image {
      background-position-x: -280px;
      background-position-y: top;
    }


  /* product lines */
  #productlines .cd-projects-previews a,
  #productlines .cd-projects .preview-image {
    background-position-x: center;
    background-position-y: center;
  }

  #productlines .cd-projects-previews li:nth-of-type(1) a,
  #productlines .cd-projects > li:nth-of-type(1) .preview-image {
    background-position-x: left;
    background-position-y: -100px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(1) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(2) a,
  #productlines .cd-projects > li:nth-of-type(2) .preview-image {
    background-position-x: -200px;
    background-position-y: -110px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(2) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(3) a,
  #productlines .cd-projects > li:nth-of-type(3) .preview-image { 
    background-position-x: -470px;
    background-position-y: 10px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(3) .preview-image {
      background-position-y: top;
    }
  
  #productlines .cd-projects-previews li:nth-of-type(4) a,
  #productlines .cd-projects > li:nth-of-type(4) .preview-image {
    background-position-x: -430px;
    background-position-y: 160px;
    transition: background-position-y ease-in-out .2s;
  }
    #productlines .cd-projects > li.selected:nth-of-type(4) .preview-image {
      background-position-y: top;
    }
  }
  
  /* -------------------------------- 
  
  JavaScript Disabled
  
  -------------------------------- */
  .no-js .cd-primary-nav {
    display: block;
    position: static;
    opacity: 1;
    margin-bottom: 1.5em;
  }
  .no-js .cd-primary-nav ul {
    display: block;
    padding: 0 5%;
  }
  .no-js .cd-primary-nav ul::after {
    clear: both;
    content: "";
    display: table;
  }
  .no-js .cd-primary-nav li:not(.cd-label) {
    display: inline-block;
  }
  