# Video message

Features a video with optional messages.

## Overview

The `video-message` content block renders a video with optional messages displayed either horizontally or stacked below the video.

### Horizontal layout

Set `orientation` to `horizontal` to display the messages to the right of the video.

```yml
- _bookshop_name: video-message
  heading:
    preheading: Preheading
    title: Heading
    content: Video content. It supports multiple lines.
    align: start
  background:
    color: body-tertiary
    subtle: false
  orientation: horizontal
  icon_style: fa-lg
  video:
    provider: vimeo
    media_id: "55073825"
    autoplay: true
    color: black
  messages:
    - title: First Message
      icon: 1-circle
    - title: Second Message
      icon: 2-circle
    - title: Third Message
      icon: 3-circle
```

### Stacked layout

Set `orientation` to `stacked` to display the messages below the video.

```yml
- _bookshop_name: video-message
  heading:
    preheading: Preheading
    title: Heading
    content: Video content. It supports multiple lines.
    align: start
  background:
    color: body-tertiary
    subtle: false
  orientation: stacked
  icon_style: fa-lg
  video:
    provider: vimeo
    media_id: "55073825"
    autoplay: true
    color: black
  messages:
    - title: First Message
      icon: 1-circle
    - title: Second Message
      icon: 2-circle
    - title: Third Message
      icon: 3-circle
```

## Arguments

The content block supports the following arguments:

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `background` | background |  |  | Background style of the section. |
| `bg-class` | string |  |  | Background class attributes of the element. It supports Bootstrap attributes to modify the background styling of the element. |
| `border` | bool |  |  | Flag to add a border to the element. |
| `cols` | int |  | `3` | Number of grid columns. |
| `cover` | bool |  |  | Flag indicating if the element should be rendered fullscreen. |
| `fluid` | bool |  | `true` | Flag to set the section container to fluid design, else the section is limited to `xxl`. |
| `heading` | heading |  |  | Heading of the content block, including a preheading and content element. |
| `icon-rounded` | bool |  |  | Stack the icon in a round container. |
| `icon-style` | string |  |  | Icon style. |
| `justify` | select |  | `start` | Justification of the child elements. Supported values: [`start`, `end`, `center`, `between`, `around`, `evenly`]. |
| `link-type` | select |  | `button` | Style of the link. Supported values: [`button`, `link`]. |
| `messages` | messages |  |  | Messages to include in the element. Each element is rendered as a card. |
| `orientation` | select |  | `stacked` | Placement of the thumbnail or icon. Supported values: [`stacked`, `horizontal`, `horizontal-sm`, `overlay`, `none`]. |
| `overlay-mode` | select |  |  | Overlay mode of the element, overrides the site's general configuration. Supported values: [`light`, `dark`, `none`]. |
| `section-class` | string |  |  | Section class attributes of the element. It supports Bootstrap attributes to modify the section styling of the element. |
| `theme` | select |  |  | Color theme to apply to the element. Supported values: [`light`, `dark`]. |
| `video` | video | yes |  | The video to embed. |
| `width` | int |  | `8` | Column width of the element. For embedded elements, the width is relative to the parent's container. |
| `wrapper` | string |  |  | Class attribute of the element's wrapper. It supports Bootstrap attributes to modify the styling of the element. Icons include the `fa-wrapper` and `fa-fluid` attributes by default. |

