@import "settings.colors";
@import "mixins/tools.mixins";

.c-video {
  margin-top: rem(10);
  margin-bottom: rem(10);
  position: relative;
}

// Powa share tools documentation: https://secure.tgam.arcpublishing.com/alc/arc-products/goldfish/user-docs/goldfish-player-share-plugin/
// These classes are created by the Goldfish player. In order to use our own "styles" we need to override these classes
.powa {
  .powa-share {
    box-sizing: border-box;
    position: absolute;
    top: rem(10);
    right: rem(20);
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: rem(36);
    transition: all 0.25s;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
  }
  .powa-share-open {
    border: none;
    height: rem(36);
    max-width: none;
  }
  .powa-share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: rem(2);
    margin: 0;
    margin-left: rem(4);
    overflow: hidden;
    color: $color-grey-900;
    background-color: rgba($color-white, 0.65);
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 300ms;
    min-width: unset;
    min-height: unset;
    width: rem(36);
    height: rem(36);
    z-index: 1;
    .c-button__icon {
      display: block;
      height: rem(18);
      width: rem(18);
    }
  }
  .powa-share-item:hover {
    cursor: pointer;
  }
  .powa-share-service {
    .c-button__icon {
      fill: $color-grey-900;
    }
  }
  .powa-share-service-hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms;
  }
  .powa-share-toggle {
    background-color: rgba($color-grey-900, 1);
    z-index: 2;
    .c-button__icon {
      height: rem(22);
      width: rem(18);
      fill: $color-white;
    }
  }
  .powa-share-toggle-open {
    color: $color-grey-900;
    background-color: $color-white;
    .c-button__icon {
      fill: $color-grey-900;
    }
  }
}

.c-video--image {
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1;
  position: absolute;
  top: 0px;
  left: 0px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

// This is needed because the play button for video is a template
.c-video__button--play {
  margin-bottom: 1em;
  margin-left: 1em;
  position: absolute;
  bottom: 0;
}
