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

.coverNews {
  margin: 3.75rem 0;
  background: $grey-light;
  border-radius: 10px;
  overflow: hidden;
  display: flex;

  > * {
    width: 50%;
  }

  .figure {
    width: 100%;
    height: 100%;

    .image {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .videoShot {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .videoMask {
      cursor: pointer;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background: rgba($blue-dark, 0.6);
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;

      .playIcon {
        color: $white;
        font-size: 2.5rem;
      }
    }
  }

  .rightContent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;

    .logo {
      height: 2.5rem;
      display: flex;
      align-items: center;
      margin-bottom: 5rem;

      img {
        height: auto;
        max-height: 100%;
      }
    }

    .title {
      color: $F1;

      h4 {
        margin-bottom: 0.5rem;
      }

      p {
        @include p2;
        opacity: 0.4;
      }
    }
  }

  @media screen and (max-width: 375px) {
    flex-direction: column-reverse;

    > * {
      width: 100%;
    }

    .figure {
      .image {
        min-height: 16.875rem;
      }
    }
  }
}
