{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://deckyard.app/schema/v3/slide-types/icon-card-grid-slide.schema.json",
  "title": "icon-card-grid-slide slide content",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 120,
      "title": "Title"
    },
    "subheading": {
      "type": "string",
      "maxLength": 200,
      "title": "Subheading"
    },
    "layout": {
      "type": "string",
      "enum": [
        "cards",
        "tiles",
        ""
      ],
      "title": "Layout"
    },
    "bottomSubheading": {
      "type": "string",
      "maxLength": 200,
      "title": "Bottom subheading"
    },
    "cardCount": {
      "type": "string",
      "enum": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        ""
      ],
      "title": "Cards"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "icon": {
            "type": "string",
            "maxLength": 40,
            "title": "Icon"
          },
          "title": {
            "type": "string",
            "maxLength": 80,
            "title": "Title"
          },
          "body": {
            "type": "string",
            "maxLength": 700,
            "title": "Body"
          },
          "link": {
            "type": "string",
            "maxLength": 500,
            "title": "Link URL"
          }
        },
        "additionalProperties": true
      },
      "minItems": 1,
      "maxItems": 6,
      "title": "Cards"
    },
    "card1Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 1 icon"
    },
    "card1Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 1 title"
    },
    "card1Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 1 body"
    },
    "card1Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 1 link"
    },
    "card2Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 2 icon"
    },
    "card2Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 2 title"
    },
    "card2Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 2 body"
    },
    "card2Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 2 link"
    },
    "card3Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 3 icon"
    },
    "card3Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 3 title"
    },
    "card3Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 3 body"
    },
    "card3Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 3 link"
    },
    "card4Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 4 icon"
    },
    "card4Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 4 title"
    },
    "card4Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 4 body"
    },
    "card4Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 4 link"
    },
    "card5Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 5 icon"
    },
    "card5Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 5 title"
    },
    "card5Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 5 body"
    },
    "card5Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 5 link"
    },
    "card6Icon": {
      "type": "string",
      "maxLength": 40,
      "title": "Card 6 icon"
    },
    "card6Title": {
      "type": "string",
      "maxLength": 80,
      "title": "Card 6 title"
    },
    "card6Body": {
      "type": "string",
      "maxLength": 700,
      "title": "Card 6 body"
    },
    "card6Link": {
      "type": "string",
      "maxLength": 500,
      "title": "Card 6 link"
    },
    "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."
    }
  },
  "additionalProperties": true,
  "required": [
    "title"
  ]
}