@import './../../../../sources/styles/include.scss';

$component: 'videos';
$template: 'template-5';
$viewport: 'widget-viewport';
$item: 'widget-item';

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .#{$viewport}-wrapper {
    position: relative;
    width: 100%;
    padding-top: 55%;
    overflow: hidden;
    @include border-radius(2px);
  }

  .#{$viewport}-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    @include transition(0.4s, background-image);
    cursor: pointer;

    svg {
      height: 20%;
      width: auto;
      position: absolute;
      top: 50%;
      left: 50%;
      pointer-events: none;
      @include transform-translate(-50%, -50%);
      @include transition(0.4s, transform);
    }
    &:hover {
      svg {
        -webkit-transform: translate(-50%, -50%) scale(1.1);
        -moz-transform: translate(-50%, -50%) scale(1.1);
        -ms-transform: translate(-50%, -50%) scale(1.1);
        -o-transform: translate(-50%, -50%) scale(1.1);
        transform: translate(-50%, -50%) scale(1.1);
      }
    }
  }
  .widget-items-wrap {
    position: relative;
    width: 100%;
  }
  .widget-items {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    padding: 0 32px;
  }
  .widget-items-wrapper {}
  .#{$item} {
    cursor: pointer;
    @include border-radius(2px);
  }

  .intec-ui.intec-ui-control-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    .intec-ui-part-button-left {
      left: -16px;
    }
    .intec-ui-part-button-right {
      right: -16px;
    }

    .intec-ui-part-button-left,
    .intec-ui-part-button-right {
      font-size: 0;
      margin: 0;
      opacity: 1;
      padding: 10px;
      background-color: #FFF;
      border: 1px solid #F2F2F2;
      outline: none;
      cursor: pointer;
      outline: none;
      transform: translateY(-50%);

      @include border-radius(2px);
      @include transition(0.4s, (background-color, border, opacity));

      svg {
        path {
          stroke: #808080;
          @include transition(0.4s, stroke);
        }
      }
      &:hover {
        svg {
          path {
            stroke: #FFF;
          }
        }
      }
      &.disabled {
        display: none;
      }
    }
  }
  .#{$item}-picture {
    font-size: 0;
    text-align: center;
    padding-top: 55%;
    height: 0;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    user-select: none;
    @include border-radius(2px);
    @include transition(0.4s, box-shadow);
  }
  .#{$item}-picture-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    &:after {
      content: '';
      display: inline-block;
      width: 0;
      height: 100%;
      vertical-align: middle;
    }
  }
  .#{$item}:hover .#{$item}-picture,
  [data-active='true'] .#{$item}-picture {
    -webkit-box-shadow: 0 4px 15px 0 rgba(36, 38, 42, 0.35);
    -moz-box-shadow: 0 4px 15px 0 rgba(36, 38, 42, 0.35);
    box-shadow: 0 4px 15px 0 rgba(36, 38, 42, 0.35);
  }
  .#{$item}-picture-decoration {
    display: inline-block;
    color: #FFF;
    width: 31px;
    height: 31px;
    background-color: rgba(0, 0, 0, 0.6);
    vertical-align: middle;
    @include border-radius(50%);

    &:after {
      content: '';
      display: inline-block;
      width: 0;
      height: 100%;
      vertical-align: middle;
    }
    i {
      display: inline-block;
      font-size: 12px;
      padding-left: 3px;
      vertical-align: middle;
    }
  }
  .#{$item}-name {
    font-size: 16px;
    line-height: 24px;
    @include transition(0.4s, color);
  }
  .widget-button-all-wrap {
    margin-top: 24px;
  }
  .widget-button-all {
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1B1E25 !important;
    border-width: 1px;

    &:hover,
    &:focus,
    &:active {
      color: #fff !important;
    }
  }
  .widget-header {
    overflow: hidden;
  }
  .widget-all-container {
    display: none;
  }
  .widget-all-button {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #808080;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    i {
      display: none;
      font-size: 18px;
    }
  }

  @media all and (max-width: 550px) {
    .widget-all-container {
      display: block;
    }
    .widget-title.align-center.widget-title-margin {
      margin-left: 25px;
    }
    .widget-all-container.mobile {
      text-align: right;
      width: 25px;
      max-height: 36px;
    }
    .widget-all-container i {
      display: inline-block;
    }
    .widget-button-all-wrap.mobile{
      display: none;
    }
    .widget-all-container {
      width: 25px;
    }
  }

  @media all and (max-width: 768px) {
    .widget-header-wrap + .widget-items-wrap {
      margin-top: 24px;
    }
    .widget-items {
      position: relative;
      bottom: initial;
      top: initial;
      left: initial;
      right: initial;
      margin-top: 20px;
      padding: 0;
    }
    .intec-ui.intec-ui-control-navigation {
      .intec-ui-part-button-left {
        left: 0;
      }
      .intec-ui-part-button-right {
        right: 0;
      }
    }
  }
  .align-left {
    text-align: left;
  }
  .align-right {
    text-align: right;
  }
  .align-center {
    text-align: center;
  }
}

