<%= button_to_video_release_confirmation video, releasable do %>
  <figure class="figure mb-0">

    <% if releasable.photos.size > 1 %>
      <%= carousel_for releasable.photos, indicators: false, class: "carousel-bg-black" do |photo| %>
        <%= image_tag large_variant(photo), class: "figure-img img-fluid d-block w-100" %>
      <% end %>

    <% elsif releasable.photos.size == 1 %>
      <%= image_tag large_variant(releasable.photo), class: "img-fluid figure-img" %>

    <% else %>
      <div class="figure-img border text-muted d-flex justify-content-center align-items-center" style="width:200px;height:200px;">
        <small>No Photo</small>
      </div>
    <% end %>

    <figcaption class="figure-caption text-center"><%= truncate releasable.name, length: 25 %></figcaption>
  </figure>
<% end %>
