<% @page_title = @card.title %>
<% @header_class = "header--card" %>

<% content_for :head do %>
  <%= card_social_tags(@card) %>
<% end %>

<% content_for :header do %>
  <div class="header__actions header__actions--start">
    <%= link_back_to_board(@card.board) %>
  </div>
<% end %>

<%= turbo_stream_from @card %>
<%= turbo_stream_from @card, :activity %>

<div data-controller="beacon lightbox" data-beacon-url-value="<%= card_reading_path(@card) %>">
  <%= render "cards/container", card: @card %>
  <%= render "cards/messages",  card: @card %>

  <%= render "layouts/lightbox" do %>
    <%= button_to_remove_card_image(@card) if @card.image.attached? %>
  <% end %>
</div>

<%= bridged_share_url_button(bridge_share_card_description(@card)) %>
