@import "@/styles/variables";
@import "@/styles/mixins";

.inner {
  position: relative;

  .imgContent {
    border-radius: $radius;
  }
  
  .videoMask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 66.15%);
    border-radius: $radius;
    cursor: pointer;
    overflow: hidden;
  }
  
  h4 {
    position: absolute;
    left: $hl-9;
    right: $hl-9;
    bottom: 1rem;
    @include h4;
    @include text-overflow;
    color: $white;
    transition: all 0.2s;
  }
  
  .playIcon {
    position: absolute;
    right: $hl-8;
    bottom: $hl-9;
    color: $white;
    font-size: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    line-height: 2.5rem;
    opacity: 0;
    transition: all 0.2s;
  }

  &:hover {
    .videoMask {
      background: rgba(0, 0, 0, 0.6);
    }

    h4 {
      white-space: normal;
      word-break: break-word;
      bottom: 50%;
      transform: translateY(50%);
    }

    .playIcon {
      opacity: 1;
    }
  }
}

@media screen and (max-width: $desktop) {
  .caseSwiper :global(.swiper-slide) {
    padding-bottom: $hl-8;
  }
}
