# Photo hero

Dark-page hero with a full-bleed photo or video and a title block at the bottom left. Also used as the photograph above the UCITS residency block.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/photo-hero-default.png) |
| Navy | ![Navy](../screenshots/components/photo-hero-navy.png) |

## What it looks like

A full-width hero at least 650px tall. The `visual` fills the whole section as a cover image or video. The copy block sits at the bottom left, spanning the first six page columns, with 64px of space below it: title, optional second line and intro, then link buttons 32px below. There is no gradient over the image, so legibility depends on the photo and the text colour chosen.

## Typography

- **Heading:** `h1` (always an `<h1>`, whatever its position on the page)
- **Post-heading:** paragraph styled `h1`; when its text is exactly "EAGL" it is shown in teal
- **Body:** `p1`
- **Links:** standard link buttons

## Colours

Section-wide. `backgroundColour` fills the section behind the visual (only visible where there is no visual). Text is White unless `textColour` is Navy, in which case it is Navy. Links use `textColour`, or White if empty.

**Valid values:** Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `heading` | Symbol | Title, `h1` | No title (also hidden when the "show heading" switch is off) |
| `showHeading` | Boolean | When off, the heading is not shown | Heading follows its own value |
| `postHeading` | Symbol | Second title line directly under the heading, `h1` | No second line |
| `body` | RichText or text | Intro copy, `p1`, 32px below the title | No intro |
| `visual` | Media | Full-bleed photo or video behind the copy | Plain section background, no image |
| `links` | Links | Link buttons under the copy | No links |
| `backgroundColour` | Symbol | Section background (behind the visual) | Page default |
| `textColour` | Symbol | Text and link colour | Hero text colour (see Colours) |
| `anchor` | Symbol | In-page link target | No anchor |
| `cmsLabel` | Symbol | Internal label and analytics | No visible effect |
| `componentType` | Symbol | Selects this component type | N/A |
| `id` | Symbol | Entry id for live preview | No visible effect |

## Behaviour

- **No position logic:** the heading is an `<h1>` wherever the block sits, and the section has no top or bottom padding so it sits flush against neighbours.
- **Visual:** loads eagerly; it gets high priority when this is the first block on the page.
- **Show heading switch:** when off, the heading is dropped even if filled.

## Impact of content changes

| Change | Result |
|--------|--------|
| Add/remove `visual` | Photo appears or disappears; the section keeps its minimum height |
| Add/remove `body` or `links` | Intro or buttons appear or disappear below the title |
| Change `textColour` | Text and link buttons recolour |
| Longer title or intro | Copy grows upward; the section grows past its minimum height if needed |
