.nw-storycomponent {
  position: relative;
  overflow: hidden;
}

.nw-storycomponent-anchor {
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  color: $default-color;
  text-decoration: none;

  &.is-product {
    overflow: hidden;
  }

  @media screen and (min-width: $screen-min-sm) {
    &:hover {
      %nw-productbtns-container {
        transform: translateY(0);
      }
    }
  }
}

.nw-storycomponent-videoicon {
  position: absolute;
  z-index: 2;
  font-size: $story-component-video-icon-font-sizemobile;
  color: $story-component-video-icon-color;

  @media screen and (min-width: $screen-min-sm) {
    font-size: $story-component-video-icon-font-size;
  }
}

.nw-storycomponent-videopopup {
  @media screen and (max-width: $screen-max-xs) {
    .nwc-modal-children {
      padding: 0;
    }
  }
}

.nw-storycomponent-imagewrapper {
  width: 100%;
  height: 0;
}

.nw-storycomponent-image {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  right: 0;

  @media screen and (min-width: $screen-min-sm) {
    left: -1px;
    right: -1px;
  }
}

.nw-storycomponent-content {
  position: relative;
  padding: 10px 0;
  background: $story-content-bgcolor;
  text-align: center;
  word-break: break-word;
}

.nw-storycomponent-title {
  margin: 0;
  margin-bottom: 5px;
  padding: 0 10px;
  font-size: $mt-storycomponent-mobile-titlefontsize;
  text-decoration: none;

  @media screen and (min-width: $screen-min-sm) {
    font-size: $mt-storycomponent-desktop-titlefontsize;
  }
}

.nw-storycomponent-subtitle {
  margin-bottom: 8px;
  padding: 0 20px;
  font-size: $mt-storycomponent-mobile-subtitlefontsize;
  letter-spacing: 1px;
  text-decoration: none;

  @media screen and (min-width: $screen-min-sm) {
    font-size: $mt-storycomponent-desktop-subtitlefontsize;
  }
}

.nw-storycomponent-cta {
  display: inline-block;
  border: 0;
  padding: 3px 0;
  font-size: $mt-storycomponent-mobile-ctafontsize;
  font-family: $primary-font-family;
  font-weight: 600;
  color: $default-color;
  text-decoration: none;
  letter-spacing: 1px;

  @media screen and (min-width: $screen-min-sm) {
    font-size: $mt-storycomponent-desktop-ctafontsize;
  }
}

.nw-story-cta-triangle {
  display: none;
  margin-bottom: 2px;
  padding-left: 8px;
  font-size: $font-size-xxxs;
  
  &.nw-mt-se {
    position: relative;
    top: -2px;
    display: inline-block;
  }
}

%nw-gap-story {
  &.nw-storycomponent-content {
    @media screen and (min-width:$screen-min-sm) { 
      margin: 10px 0 32px;
    }
    margin: 10px 0 16px;
  }
  
  &.nw-storycomponent-title {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: $font-size-normal;
    font-family: $gap-storytitle-font;

    @media screen and (min-width:$screen-min-sm) { 
      margin-top: 4px;
      margin-bottom: 12px;
      font-size: $gap-story-title-font-size;
    }
  }

  &.nw-storycomponent-subtitle {
    margin-bottom: 15px;
    font-size: $font-size-xs;

    @media screen and (min-width:$screen-min-sm) { 
      margin-bottom: 20px;
      font-size: $font-size-sm;
    }
  }

  &.nw-storycomponent-cta {
    border-bottom: 2px solid $default-color;
    font-weight: 600;
    @media screen and (max-width: $screen-max-xs) {
      margin: 0 16px;
      border-top: 1px solid $silver;
      border-bottom: 1px solid $silver;
      width: calc(100% - 32px);
      padding: 15px 0;
    }
  }
}

.nw-storycomponent-date {
  margin: 0;
  padding: 5px 10px;
  font-size: $font-size-xxs;
  text-align: left;
}

.nw-storycomponent-blog {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.nw-storycomponent-authordetails {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  @media screen and (min-width:$screen-min-sm) { 
    width: 50%;
    padding: 0 10px;
  }
}

.nw-storycomponent-authorimagewrapper {
  position: relative;
  width: 30%;
}

.nw-storycomponent-authorimage {
  width: 100%;
}

.nw-storycomponent-authorname {
  margin: 0;
  padding-left: 5px;
  font-size: $font-size-xs;
}
