
$color_highlight:#e74c3c;
.zfolio.skin-melbourne{
  .zfolio-item{
    .item-meta{
      position: relative;
      background-color: #FFFFFF;
      color: #212121;
      text-transform: uppercase;
      text-align: center;



      padding: 25px 10px;


      $transition-property: color,background;
      $transition-duration: .25s;
      $transition-timing: ease-in;



      @include apply_transition($transition-property,$transition-duration,$transition-timing);

      .the-title{
        font-size: 20px;
        font-weight: 900;
        line-height: 1.4;
        margin-top:5px;

        color: #222;


        $transition-property: color;
        $transition-duration: .3s;
        $transition-timing: ease-out;



        @include apply_transition($transition-property,$transition-duration,$transition-timing);

      }

      .the-title:after{

        content:"";

        width:30px;
        height:2px;
        display: block;
        background-color: #aaaaaa;
        margin: 11px auto 11px;


        $transition-property: background;
        $transition-duration: .3s;
        $transition-timing: ease-out;



        @include apply_transition($transition-property,$transition-duration,$transition-timing);
      }

      .the-desc{

        color: #777777;


        $transition-property: color;
        $transition-duration: .3s;
        $transition-timing: ease-out;



        @include apply_transition($transition-property,$transition-duration,$transition-timing);
      }
    }

    .item-meta:before{
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;

      border-bottom: 10px solid #FFFFFF;

      content:"";
      position: absolute;
      bottom: 100%;
      left:50%;
      margin-left: -10px;




      $transition-property: all;
      $transition-duration: .25s;
      $transition-timing: ease-in;



      @include apply_transition($transition-property,$transition-duration,$transition-timing);

    }


  }

  .zfolio-item:hover{

    .item-meta{
      background-color: $color_highlight;
      color: #FFFFFF;

      .the-title:after{

        background-color: #FFFFFF;
      }
      .the-title,.the-desc{

        color:#FFFFFF;
      }
    }
    .item-meta:before{
      border-bottom-color: $color_highlight;
    }


  }
}




.selector-con-for-skin-melbourne{
  .categories{
    margin-top:20px;
    margin-bottom: 20px;
    text-align: left;
  }
  .a-category:first-child{
    margin-left: 20px;
  }
  .a-category{
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-left: 0px;
    cursor: pointer;
    text-transform: uppercase;
    padding:9px;
    line-height: 1;
    position: relative;
    color: #FFFFFF;;
  }
  .a-category.active,.a-category:hover{
    background-color: #e74c3c;
  }
  .a-category.active:before,.a-category:hover:before{
    content: "";


    width: 0;
    height: 0;
    $size: 7px;
    border-left: $size solid transparent;
    border-right: $size solid transparent;

    border-top: $size solid #e74c3c;

    position: absolute;
    top:100%;
    left:50%;
    margin-left: -7px;

  }
}



.zfolio.under-720, .selector-con-for-skin-melbourne.under-720 {
  .categories {
    height: 72px;
    padding-top: 64px;
  }
}



.selector-con-for-skin-melbourne.under-720 {
  z-index: 30;


}


.zfolio.under-720 .selector-con, .selector-con-for-skin-melbourne.under-720 {
  text-align: center;

  .a-category {
    position: relative;
    display: block;
    background-color: #222222;

    color: rgba(255, 255, 255, 0.7);


    $transition-property: color, opacity, visibilty;
    $transition-duration: 0.3s;
    $transition-timing: ease-out;
    @include apply_transition($transition-property, $transition-duration, $transition-timing);
  }

  .a-category:hover {
    background-color: #222222;
    color: rgba(255, 255, 255, 1);
  }

  //.a-category:first-child:not(.active){
  //  padding-top:34px;
  //}

  .a-category:not(.active) {
    margin-top: 50px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-left: 0;

    opacity: 0;
    visibility: hidden;
  }

  .a-category:not(.active):before {
    display: none;
  }

  .a-category:not(.active) ~ .a-category {
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 30px;
  }


  div.a-category.active {
    position: absolute;

    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    margin-left: 0;
    margin-top: 0;

    padding-top: 9px !important;
    padding-bottom: 9px !important;;
    background-color: $color_highlight !important;
    color: #FFFFFF !important;
  }
}

.zfolio.under-720 .selector-con.is-opened, .selector-con-for-skin-melbourne.under-720.is-opened {

  .a-category:not(.active) {
    opacity: 1;
    visibility: visible;
  }
}


.selector-con-for-skin-melbourne.under-720 {

  padding-left: 0;
  padding-right: 0;

  .categories {
    padding-top: 0.1px;
    height: 51px;

    div.a-category.active {

      top: -1px;
    }


    .a-category {

      transition-property: color, opacity, visibility !important;


    }
  }

}
