
/*  ----------------------------------------------------------------------------
    container
*/
.td-container,
.tdc-row {
  width: 1068px;
  margin-right: auto;
  margin-left: auto;

  &:before,
  &:after {
    display: table;
    content: '';
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}

.tdc-row.stretch_row .td-element-style {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.tdc-row.stretch_row_content {
  width: 100% !important;

  .td-pb-row {
    margin-left: 0;
    margin-right: 0;

    [class*=td-pb-span] {
      padding-left: 0;
      padding-right: 0;
    }
  }

  // this make the background full width on mobile
  .td-element-style {
    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      width: 100vw !important;
      left: 50% !important;
      .transform(translateX(-50%));
    }
  }
}

.tdc-row.stretch_row_content_no_space {
  width: 100% !important;

  .td-pb-row {
    margin-left: 0;
    margin-right: 0;
  }

  // this make the background full width on mobile
  .td-element-style {
    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      width: 100vw !important;
      left: 50% !important;
      .transform(translateX(-50%));
    }
  }
}

/*  ----------------------------------------------------------------------------
    rows
*/
.td-pb-row {
  .mx-row();

  margin-right: -24px;
  margin-left: -24px;
}

.td-boxed-layout {
  .vc_row {
    width: auto !important;
    left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/*  ----------------------------------------------------------------------------
    all spans
*/

.td-pb-row [class*="td-pb-span"] {
  .mx-span();
  padding-right: 24px;
  padding-left: 24px;
  position: relative;
}

.vc_row-no-padding {
  &.td-pb-row [class*="td-pb-span"] {
    padding-left: 0;
    padding-right: 0;
  }
}

/*  ----------------------------------------------------------------------------
    smart sidebar - fix
*/
.td-ss-main-sidebar,
.td-ss-row .td-pb-span4 .wpb_wrapper
{
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
}


/*  ----------------------------------------------------------------------------
    main grid
*/
.td-pb-span1  {  width: 8.33333333%;   }
.td-pb-span2  {  width: 16.66666667%;  }
.td-pb-span3  {  width: 25%;           }
.td-pb-span4  {  width: 33.33333333%;  } // td-1-col
.td-pb-span5  {  width: 41.66666667%;  }
.td-pb-span6  {  width: 50%;           }
.td-pb-span7  {  width: 58.33333333%;  }
.td-pb-span8  {  width: 66.66666667%;  } // td-2-col
.td-pb-span9  {  width: 75%;           }
.td-pb-span10 {  width: 83.33333333%;  }
.td-pb-span11 {  width: 91.66666667%;  }
.td-pb-span12 {  width: 100%;          } // td-3-col


/*  ----------------------------------------------------------------------------
    grid in grid
*/
.td-pb-row .td-pb-row {
  .td-pb-span1  {  width: 8.33333333%;   }
  .td-pb-span2  {  width: 16.66666667%;  }
  .td-pb-span3  {  width: 25%;           }
  .td-pb-span4  {  width: 33.33333333%;  } // td-1-col
  .td-pb-span5  {  width: 41.66666667%;  }
  .td-pb-span6  {  width: 50%;           }
  .td-pb-span7  {  width: 58.33333333%;  }
  .td-pb-span8  {  width: 66.66666667%;  } // td-2-col
  .td-pb-span9  {  width: 75%;           }
  .td-pb-span10 {  width: 83.33333333%;  }
  .td-pb-span11 {  width: 91.66666667%;  }
  .td-pb-span12 {  width: 100%;          } // td-3-col
}

/*  ----------------------------------------------------------------------------
    hacks Visual Composer
*/

.wpb_row {
  margin-bottom: 0;
}

// Visual Composer VC latest version 4.9
// @updated by RA 14 july 2016 - if we use !important, the build in design tab from visual composer cannot overwrite
.vc_col-has-fill>.vc_column-inner,
.vc_row-has-fill+.vc_row-full-width+.vc_row>.vc_column_container>.vc_column-inner,
.vc_row-has-fill+.vc_row>.vc_column_container>.vc_column-inner,
.vc_row-has-fill+.vc_vc_row>.vc_row>.vc_vc_column>.vc_column_container>.vc_column-inner,
.vc_row-has-fill+.vc_vc_row_inner>.vc_row>.vc_vc_column_inner>.vc_column_container>.vc_column-inner,
.vc_row-has-fill>.vc_column_container>.vc_column-inner,
.vc_row-has-fill>.vc_row>.vc_vc_column>.vc_column_container>.vc_column-inner,
.vc_row-has-fill>.vc_vc_column_inner>.vc_column_container>.vc_column-inner {
  padding-top: 0;
}

//  @updated by RA 14 july 2016 - made more generic and added padding-top reset. I've updated the templates that are in the theme
.vc_row .vc_column-inner  {
  padding-left: 0;
  padding-right: 0;
}
