{% set bg_image = file_url(content.field_background_image.0['#item'].entity.uri.value) %}
{% set hero_id = "bs-hero-paragraph-#{paragraph.id.value}" %}

{{ include('octaviab:bs-hero', {
  hero_id: hero_id,
  heading: node.title.value,
  bgcolor: paragraph.field_background_color.value,
  opacity: paragraph.field_opacity.value,
  bgimage: bg_image,
  image_pos: paragraph.field_image_use.value,
  content: content|without('field_background_image'),
  height: paragraph.field_hero_height.value,
  container: paragraph.field_container.value,
  flex_direction: paragraph.field_hero_content_direction.value,
}, with_context = false) }}