<div class="carousel__slider flex flex--column flex--verticalCenter">
  <ul class="carousel__items slides clearfix">
    {{#each media.videos as |video index|}}
      <li class="carousel__item carousel__item--gallery">
        <figure class="card__img aspect">
          {{twitch-player2
            video=video.video_id
            videoEl=(concat 'video-' index)
            branding=false
            shouldStartPaused=true
            showCompanionAds=false
            class='aspect__fill'
            canGenerateClips=false
          }}
        </figure>
      </li>
    {{/each}}
    {{#each media.screenshot_urls as |url|}}
      <li class="carousel__item carousel__item--gallery">
        <figure class="card__img">
          <img src="{{url}}">
        </figure>
      </li>
    {{/each}}
  </ul>
</div>

<div class="carousel__nav">
  <button data-test-selector="twitch-carousel-prev-button" class="carousel__nav__button {{unless showArrows 'hidden'}} {{unless prevVisible 'disabled'}} carousel__button--prev flex-prev">
    <div class="carousel__arrow carousel__arrow--prev"></div>
  </button>
  <button data-test-selector="twitch-carousel-next-button" class="carousel__nav__button {{unless showArrows 'hidden'}} {{unless nextVisible 'disabled'}} carousel__button--next flex-next">
    <div class="carousel__arrow carousel__arrow--next"></div>
  </button>
</div>

<div class="carousel__menu">
  <ul class="carousel__items slides">
    {{#each media.videos as |video|}}
      <li class="carousel__item carousel__menu__item">
        <figure class="card__img carousel__video-thumbnail">
          <img src="{{video.thumbnail_url}}">
        </figure>
      </li>
    {{/each}}
    {{#each media.screenshot_urls as |url|}}
      <li class="carousel__item carousel__menu__item" {{action 'pausePlayer'}}>
        <figure class="card__img">
          <img src="{{url}}">
        </figure>
      </li>
    {{/each}}
  </ul>
</div>
