<div id="{{:: shortcode.$id }}" role="banner" class="banner has-hover bg-{{ shortcode.options.hover }} bg-{{ shortcode.options.hoverAlt }} slide-{{ shortcode.options.slideEffect }} {{ shortcode.options.class }} {{ shortcode.options.visibility }}"
  ng-class="{'has-slide-effect' : shortcode.options.slideEffect,
             'has-parallax' :  shortcode.options.parallax, 'sticky-section' : shortcode.options.sticky}"
  ng-style="{'padding-top' : (shortcode.options.height | heightCheck), 'background-color' : shortcode.options.bgColor}">
  <div class="banner-inner fill">
    <div class="banner-bg fill"  data-parallax-container=".banner" data-parallax-background
        ng-attr-data-parallax="-{{ shortcode.options.parallax }}" >
      <div class="bg fill bg-fill" ng-style="{ 'backgroundPosition': shortcode.options.bgPos }" wp-attachment="shortcode.options.bg" wp-attachment-size="shortcode.options.bgSize"></div>
      <video ng-if="shortcode.options.videoMp4"
      class="video-bg no-click {{shortcode.options.videoVisibility}}"
      preload="auto" autoplay="true" ng-attr-loop="{{shortcode.options.videoLoop !== 'false'}}" muted="muted">
        <source ng-if="shortcode.options.videoMp4" ng-src="{{ shortcode.options.videoMp4 | trusted: 'resourceUrl' }}" type="video/mp4">
        <source ng-if="shortcode.options.videoOgg" ng-src="{{ shortcode.options.videoOgg | trusted: 'resourceUrl' }}" type="video/ogg">
        <source ng-if="shortcode.options.videoWebm" ng-src="{{ shortcode.options.videoWebm | trusted: 'resourceUrl' }}" type="video/webm">
      </video>

      <div ng-if="shortcode.options.bgOverlay" class="overlay" style="background-color: {{ shortcode.options.bgOverlay }}"></div>
      <div ng-if="shortcode.options.effect" class="effect-{{ shortcode.options.effect }} bg-effect fill"></div>
      <div ng-if="shortcode.options.youtube" class="uxb-youtube-overlay absolute fill" style="background-color: rgba(0, 86, 130, .8); padding:30%;"><span style="color:#FFF">YouTube video only loads on Front-end. Save and visit page to preview.</span></div>
      <div ng-if="shortcode.options.videoMp4" class="video-overlay absolute fill"></div>
      <div ng-if="shortcode.options.shade" class="shade"></div>
      <div ng-if="shortcode.options.videoMp4" class="video-overlay absolute fill"></div>
      <div ng-if="shortcode.options.border"
      ng-class="{['hover-'+shortcode.options.borderHover ] : shortcode.options.borderHover}"
      class="is-border is-{{shortcode.options.borderStyle}}"
      ng-style="{
        'borderRadius': shortcode.options.borderRadius+'px',
        'borderWidth': shortcode.options.border,
        'margin': shortcode.options.borderMargin,
        'borderColor': shortcode.options.borderColor,
        }"
      ></div>
    </div><!-- .banner-bg -->

    <div ng-if="shortcode.options.dividerTop" class="ux-shape-divider ux-shape-divider--top ux-shape-divider--style-{{shortcode.options.dividerTop}}" ng-class="{'ux-shape-divider--flip': shortcode.options.dividerTopFlip == 'true','ux-shape-divider--to-front': shortcode.options.dividerTopToFront == 'true'}">
      <ng-include ng-if="$ctrl.store.flatsomeUrl" src="$ctrl.store.flatsomeUrl + '/assets/img/dividers/' + shortcode.options.dividerTop + '.svg'"></ng-include>
    </div>
    <div ng-if="shortcode.options.divider" class="ux-shape-divider ux-shape-divider--bottom ux-shape-divider--style-{{shortcode.options.divider}}" ng-class="{'ux-shape-divider--flip': shortcode.options.dividerFlip == 'true','ux-shape-divider--to-front': shortcode.options.dividerToFront == 'true'}">
      <ng-include ng-if="$ctrl.store.flatsomeUrl" src="$ctrl.store.flatsomeUrl + '/assets/img/dividers/' + shortcode.options.divider + '.svg'"></ng-include>
    </div>

    <div class="banner-layers container">
      <content></content>
    </div><!-- .banner-layers -->

  </div><!-- .banner-inner -->

  <div ng-if="!shortcode.options.height" class="height-fix is-invisible">
    <img wp-attachment="shortcode.options.bg" />
    <div ng-if="!shortcode.options.bg" class="uxb-no-content uxb-image"></div>
  </div>

  <style>
    #{{:: shortcode.$id }} .ux-shape-divider--top svg {height: {{ shortcode.options.dividerTopHeight }}; width: calc({{ shortcode.options.dividerTopWidth }}% + 2px); }
    #{{:: shortcode.$id }} .ux-shape-divider--top .ux-shape-fill {fill: {{ shortcode.options.dividerTopFill }}; }
    #{{:: shortcode.$id }} .ux-shape-divider--bottom svg {height: {{ shortcode.options.dividerHeight}}; width: calc({{ shortcode.options.dividerWidth }}% + 2px); }
    #{{:: shortcode.$id }} .ux-shape-divider--bottom .ux-shape-fill {fill: {{ shortcode.options.dividerFill }}; }
  </style>
</div><!-- .banner -->
