<% has_block = media_section.alignment == "block_left" || media_section.alignment == "block_right" || media_section.alignment == "block_center" alignment = has_block ? media_section.alignment.split("_")[1]: media_section.alignment %> <% if media_section.andand.linked.present? %> <%= "
" if has_block %>
<%= media_section.caption %> <% if media_section.caption.present? %>

<%= media_section.caption %>

<% end %>
<%= "
" if has_block %> <% end %>