@import '../../../../sources/styles/include.scss';

$component: 'video';
$template: 'template-1';
$item: 'widget-item';

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .widget-content-wrapper {}
  .widget-content-wrapper-2 {}
  .#{$item}-wrapper {
    position: relative;
    font-size: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
  }
  .widget-video-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 0;
    text-align: center;
    width: 120px;
    height: 120px;
    cursor: pointer;
    @include transform-translate(-50%, -50%);

    svg {
      display: inline-block;
      width: auto;
      height: auto;
      max-width: 100px;
      max-height: 100px;
      @include transition(0.4s, all);
    }
  }
  .widget-title.align-center.widget-title-margin {
    margin-left: 150px;
  }
  .widget-all-container {
    text-align: right;
  }
  .widget-title-container + .widget-all-container{
    width: 150px;
    overflow: hidden;
  }
  .widget-all-container {
    i {
      display: none;
      font-size: 18px;
    }
  }
  .widget-all-button {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #808080;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  @media all and (max-width: 550px){
    .widget-title.align-center.widget-title-margin {
      margin-left: 20px;
    }
    .widget-title-container + .widget-all-container.mobile{
      width: 20px;
      max-height: 36px;
    }
    .widget-all-container.mobile {
      i {
        display: inline-block;
      }
      span {
        display: none;
      }
    }
    .widget-all-container.mobile + .widget-all-button{
      width: 20px;
    }
  }
  .#{$item}-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    @include transition(0.4s, background-color);
    z-index: 1;
  }
  .#{$item}-wrapper:hover {
    .#{$item}-fade {
      background-color: rgba(0, 0, 0, 0.35);
    }
    svg {
      -webkit-transform: scale(1.1);
      -moz-transform: scale(1.1);
      -ms-transform: scale(1.1);
      -o-transform: scale(1.1);
      transform: scale(1.1);
    }
  }
  [data-mode='auto'] {
    padding-top: 55%;
  }
  [data-theme='light'] {
    .#{$item}-icon {
      fill: #FFF;
    }
  }
  [data-theme='dark'] {
    .#{$item}-icon {
      fill: #000;
    }
  }
  [data-rounded='true'] {
    @include border-radius(10px);
  }
  [data-shadow='hover'] {
    @include transition(0.4s, box-shadow);
  }
  [data-shadow='hover']:hover,
  [data-shadow='permanent'] {
    @include box-shadow(0 10px 34px rgba(0, 0, 0, 0.3));
  }

  @media all and (max-width: 768px) {
    [data-mode='fixed'] {
      height: auto!important;
      padding-top: 55%;
    }
  }
  @media all and (max-width: 500px) {
    .widget-video-button-wrapper {
      width: 70px;
      height: 70px;

      svg {
        max-width: 70px;
        max-height: 70px;
      }
    }
    .#{$item}-icon {
      width: 50px;
      height: 50px;
      margin-top: -25px;
      margin-left: -25px;
    }
  }
}