{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://deckyard.eu/schema/v24/slide-types/eu.deckyard.slide.chapter-title.schema.json",
  "title": "eu.deckyard.slide.chapter-title slide content",
  "type": "object",
  "properties": {
    "titleBlockAlign": {
      "type": "string",
      "enum": [
        "left",
        "center",
        ""
      ],
      "title": "Title block alignment"
    },
    "title": {
      "type": "string",
      "maxLength": 140,
      "title": "Title"
    },
    "subheading": {
      "type": "string",
      "maxLength": 160,
      "title": "Subheading"
    },
    "layout": {
      "type": "string",
      "enum": [
        "top",
        "center",
        "bottom",
        ""
      ],
      "title": "Title position"
    },
    "a11yTitle": {
      "type": "string",
      "maxLength": 140,
      "title": "Accessibility title",
      "description": "Optional. Screen readers announce this when the slide becomes active. Prefer a short, descriptive phrase."
    },
    "a11ySummary": {
      "type": "string",
      "maxLength": 280,
      "title": "Accessibility summary",
      "description": "Optional extra context for screen readers (announced after the title). Keep it brief."
    },
    "slideBgImage": {
      "type": "string",
      "title": "Background image",
      "description": "Optional. Fills the whole slide behind the content. Large images are resized automatically; use the focus control to pick which part stays visible when cropped."
    },
    "slideBgFit": {
      "type": "string",
      "enum": [
        "cover",
        "contain",
        ""
      ],
      "title": "Background fit"
    },
    "slideBgFocusX": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "const": ""
        }
      ],
      "title": "Background focus X"
    },
    "slideBgFocusY": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "const": ""
        }
      ],
      "title": "Background focus Y"
    },
    "slideBgOverlay": {
      "type": "string",
      "enum": [
        "auto",
        "none",
        "light",
        "dark",
        "gradient-top",
        "gradient-bottom",
        ""
      ],
      "title": "Background overlay",
      "description": "Auto adds a subtle scrim only when the image is too busy for readable text. Gradient options darken one edge behind the text."
    },
    "slideBgText": {
      "type": "string",
      "enum": [
        "auto",
        "light",
        "dark",
        ""
      ],
      "title": "Text colour",
      "description": "Auto picks the theme text colour with the best contrast for the background image. Light/dark force it. (Legacy \"default\" is treated as the theme default.)"
    },
    "slideLogo": {
      "type": "string",
      "enum": [
        "none",
        "top-right",
        ""
      ],
      "title": "Theme logo",
      "description": "Show the active theme logo in a corner of this slide."
    },
    "textStyles": {
      "type": "object",
      "description": "Alignment and size for the text this slide type offers styling on, one key per offer: a field (`body`), every item of a list (`quotes.*.quote`) or a set of fields styled as one (`@<id>`). Anything else is refused with 400 `invalid` and `details.reason` one of `text_style_per_instance`, `text_style_not_offered`, `text_style_property_not_offered`, `text_style_value_not_offered`, `text_style_malformed`.",
      "properties": {
        "title": {
          "type": "object",
          "properties": {
            "size": {
              "enum": [
                "sm",
                "md",
                "lg"
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "propertyNames": {
    "enum": [
      "a11ySummary",
      "a11yTitle",
      "layout",
      "slideBgAutoFor",
      "slideBgFit",
      "slideBgFocusX",
      "slideBgFocusY",
      "slideBgImage",
      "slideBgNeedsScrim",
      "slideBgOverlay",
      "slideBgText",
      "slideBgTextAuto",
      "slideLogo",
      "subheading",
      "textStyles",
      "title",
      "titleBlockAlign"
    ]
  },
  "required": [
    "title"
  ]
}