{% set grid_size = theme_var('grid-size') %}
{% set hero_image = page.header.hero_image ? page.media[page.header.hero_image] : page.media.images|first %}
{% set hero_image_small = page.header.hero_image_small ? page.media[page.header.hero_image_small] : page.media.images|first %}
{% set hero_vertical_position = page.header.hero_vertical_position ? page.header.hero_vertical_position : 0 %}
{% set hero_horizontal_position = page.header.hero_horizontal_position ? page.header.hero_horizontal_position : 50 %}
{% set hero_size = page.header.hero_autosize ? 'cover' : 'auto' %}
{% set hero_background_image = page.header.hero_background_image ? page.media[page.header.hero_background_image] : null %}
{% set hero_background_image_small = page.header.hero_background_image_small ? page.media[page.header.hero_background_image_small] : null %}
{% set hero_background_color = page.header.hero_background_color %}
{% set hero_height = page.header.hero_height ? page.header.hero_height : 500 %}
{% set hero_height_small = page.header.hero_height_small ? page.header.hero_height_small : 350 %}

{{ dump(hero_image) }}

{% include 'partials/hero.html.twig' with {id: 'modular-hero'} %}
