// Spread definitions for Anastasia & Daniil — A Wedding Story
// Each spread = two facing pages (left + right).
// Photos referenced by number (1..54) → remote URLs.

const PHOTOS_AD = [
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d548b3e0c02fe7eb9fb3.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d547fe2210f89e6fe981.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5473c3aed7c63b46bb2.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d547b3e0c02fe7eb9f9d.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5476cc0eead5ccf837d.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5476cc0eead5ccf837c.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d547e05851175c7318cf.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5476cc0eead5ccf835e.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d546e05851175c7318b7.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d546b3e0c02fe7eb9f75.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5463c3aed7c63b46b98.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5466cc0eead5ccf835b.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5466cc0eead5ccf835a.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d546e05851175c7318b5.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d545e05851175c7318ab.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d545fe2210f89e6fe947.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d545e05851175c7318a1.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5453c3aed7c63b46b7c.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d545fe2210f89e6fe945.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d545fe2210f89e6fe943.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d544fe2210f89e6fe935.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d544e05851175c731893.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d544b3e0c02fe7eb9f25.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d544b3e0c02fe7eb9f1f.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d544fe2210f89e6fe927.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5436cc0eead5ccf82dc.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5433c3aed7c63b46b34.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d543e05851175c73186a.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5436cc0eead5ccf82d2.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d543e05851175c731869.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d543b3e0c02fe7eb9f11.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5423c3aed7c63b46b0d.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d542b3e0c02fe7eb9eff.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d542e05851175c731857.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5423c3aed7c63b46b06.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d542fe2210f89e6fe8f1.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5423c3aed7c63b46b04.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d541b3e0c02fe7eb9ed1.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5413c3aed7c63b46aee.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5416cc0eead5ccf829a.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d541b3e0c02fe7eb9ecf.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d541fe2210f89e6fe8d3.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d540e05851175c731812.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5403c3aed7c63b46ad1.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d540b3e0c02fe7eb9eaf.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d5403c3aed7c63b46ad0.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d540fe2210f89e6fe8ad.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d540e05851175c731810.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53fe05851175c7317f7.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53fb3e0c02fe7eb9e8d.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53f3c3aed7c63b46aba.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53f6cc0eead5ccf8250.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53ffe2210f89e6fe883.png',
  'https://assets.cdn.filesafe.space/BdTJ01Xs0apORbIrBlPB/media/6a13d53ffe2210f89e6fe884.png',
];

const pAD = (n) => PHOTOS_AD[n - 1];

const SPREADS_AD = [
  // ─────────────────────────────────────────────────────────────
  // FRONT MATTER
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'front-cover',
    label: '00 Cover',
  },

  {
    kind: 'title',
    label: '01 Title',
    left: { type: 'blank' },
    right: {
      type: 'title-page',
      monogram: 'A & D',
      title: 'Anastasia & Daniil',
      subtitle: 'A Wedding Story',
      date: 'The Eleventh of October  ·  Two Thousand Twenty-Six',
      place: 'A House by the Sea  ·  Somewhere Warm',
    },
  },

  {
    kind: 'dedication',
    label: '02 Prologue',
    left: {
      type: 'prologue',
      script: 'a beginning',
      body: [
        'They had wanted somewhere with weather. Stone, sand, and a sky big enough to disappear into. Not a church, not a garden — a place that did not pretend to be more than itself.',
        'They found it on a coast neither of their families had seen, and they built a small white wedding inside it, the way you might build a sentence: word by word, very carefully, and meaning every one.',
      ],
    },
    right: { type: 'photo-full', photo: 1, caption: 'The first thing they built was the door.' },
  },

  // ─────────────────────────────────────────────────────────────
  // CHAPTER I — GETTING READY
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'chapter-opener',
    chapter: 1,
    label: '03 Chapter I',
    numeral: 'I',
    name: 'Getting Ready',
    epigraph: '“The morning was already loud with sun by the time anyone bothered to wake the bride.”',
  },

  {
    kind: 'photo-spread',
    chapter: 1,
    label: '04 Morning',
    left: {
      type: 'text-block',
      script: 'morning',
      heading: 'A House on the Light Side of the Hour',
      body: [
        'Anastasia had not slept much. Daniil, somewhere two floors below, had slept badly in the polite, dignified way of grooms.',
        'A balcony door slid open. Coffee arrived. Polina — best friend since university, professional opinion-giver — arrived shortly after, already holding a curling iron and a glass of something cold.',
      ],
    },
    right: { type: 'photo-full', photo: 2 },
  },

  {
    kind: 'photo-spread',
    chapter: 1,
    label: '05 The room',
    left: { type: 'photo-full', photo: 3 },
    right: { type: 'photo-full', photo: 4 },
  },

  {
    kind: 'photo-spread',
    chapter: 1,
    label: '06 Details',
    left: { type: 'mosaic-2', photos: [5, 6] },
    right: {
      type: 'text-block',
      script: 'small things',
      heading: 'Two Pairs of Shoes',
      body: [
        'Two pairs of shoes on a dark floor: the slippers she had been wearing for hours, the heels she would put on at the very last moment.',
        'A boy in headphones, refusing to look up, refusing to be charmed. A wine bottle on a kitchen counter, condensation already running down it. The small accidental still-lifes of a wedding morning.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 1,
    label: '07 The look',
    left: { type: 'photo-full', photo: 7 },
    right: { type: 'photo-full', photo: 8 },
  },

  {
    kind: 'photo-spread',
    chapter: 1,
    label: '08 The crew',
    left: { type: 'mosaic-3-stack', photos: [9, 10, 11] },
    right: { type: 'photo-full', photo: 12 },
  },

  // ─────────────────────────────────────────────────────────────
  // CHAPTER II — THE CEREMONY
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'chapter-opener',
    chapter: 2,
    label: '09 Chapter II',
    numeral: 'II',
    name: 'The Ceremony',
    epigraph: '“And so they said yes, with the sea behind them and very few words in the way.”',
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '10 Walking',
    left: {
      type: 'text-block',
      script: 'the walk',
      heading: 'Into the Open Air',
      body: [
        'A path of stone, two parallel walls, the sky bright and uncomplicated above. The guests had arranged themselves on either side as if they had been waiting there their whole lives.',
        'A song began that none of them recognised at first — and then, all at once, did. Anastasia stepped between the walls, and the day, very politely, paid attention.',
      ],
    },
    right: { type: 'photo-full', photo: 13 },
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '11 Aisle',
    left: { type: 'photo-full', photo: 14 },
    right: { type: 'photo-full', photo: 15 },
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '12 The vow',
    left: { type: 'mosaic-2', photos: [16, 17] },
    right: {
      type: 'text-block',
      script: 'the vow',
      heading: 'A Promise, Said Aloud',
      body: [
        'They had written nothing down. They had argued, on the flight over, about whether they should — Daniil for, Anastasia against — and Anastasia, as Anastasia tends to, had won.',
        'So they spoke as they had always spoken: a little too quietly, a little too quickly, and entirely to each other. He said her name twice. She said his name once, and then a third sentence so good no one else heard it.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '13 Rings',
    left: { type: 'photo-full', photo: 18 },
    right: { type: 'photo-full', photo: 19 },
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '14 Together',
    left: { type: 'mosaic-3-stack', photos: [20, 21, 22] },
    right: { type: 'photo-full', photo: 23 },
  },

  {
    kind: 'photo-spread',
    chapter: 2,
    label: '15 First kiss',
    left: { type: 'photo-full', photo: 24 },
    right: {
      type: 'text-block',
      script: 'and then',
      heading: 'And Then a Cheer',
      body: [
        'The cheer travelled badly in the open air — it broke against the stone and the breeze and got returned to the guests in pieces, which made everybody laugh, which made the cheer start again.',
        'A small boy at the back put his hands over his ears, then over his eyes, then over his mouth. He had three reactions ready and could not decide on one.',
      ],
    },
  },

  // ─────────────────────────────────────────────────────────────
  // CHAPTER III — PORTRAITS
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'chapter-opener',
    chapter: 3,
    label: '16 Chapter III',
    numeral: 'III',
    name: 'Between Two Lights',
    epigraph: '“They borrowed twenty minutes from the wedding and spent them on each other.”',
  },

  {
    kind: 'photo-spread',
    chapter: 3,
    label: '17 Apart',
    left: {
      type: 'text-block',
      script: 'afterwards',
      heading: 'Twenty Minutes, No Witnesses',
      body: [
        'The photographer wanted them somewhere quieter. They walked between two walls of stone, then under an arch, then back into the bright square of sky.',
        'Daniil said something nobody else heard. Anastasia put her forehead against his shoulder and laughed the slow, almost reluctant laugh she only ever does when she is genuinely surprised. The camera, doing its job, kept its distance.',
      ],
    },
    right: { type: 'photo-full', photo: 25 },
  },

  {
    kind: 'photo-spread',
    chapter: 3,
    label: '18 Stone',
    left: { type: 'photo-full', photo: 26 },
    right: { type: 'photo-full', photo: 27 },
  },

  {
    kind: 'photo-spread',
    chapter: 3,
    label: '19 Pairs',
    left: { type: 'mosaic-2', photos: [28, 29] },
    right: { type: 'mosaic-2', photos: [30, 31] },
  },

  {
    kind: 'photo-spread',
    chapter: 3,
    label: '20 People',
    left: { type: 'photo-full', photo: 32 },
    right: {
      type: 'text-block',
      script: 'her people',
      heading: 'Her People, His People, the New People',
      body: [
        'Polina, who has known Anastasia since they shared a dormitory and one borrowed jacket. Kirill, Daniil’s oldest friend, who flew in from a city six time zones away to stand beside him for nine minutes of vows.',
        'Galina, the bride’s mother, who has been crying quietly since breakfast. Yegor, the bride’s brother, in a suit a half-size too large and the expression of a man who has been told, gently, not to make any jokes today.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 3,
    label: '21 Groups',
    left: { type: 'mosaic-3-stack', photos: [33, 34, 35] },
    right: { type: 'photo-full', photo: 36 },
  },

  // ─────────────────────────────────────────────────────────────
  // CHAPTER IV — THE RECEPTION
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'chapter-opener',
    chapter: 4,
    label: '22 Chapter IV',
    numeral: 'IV',
    name: 'The Long Table',
    epigraph: '“There were toasts. There were too many toasts. None of them were too long.”',
  },

  {
    kind: 'photo-spread',
    chapter: 4,
    label: '23 Speeches',
    left: { type: 'photo-full', photo: 37 },
    right: {
      type: 'text-block',
      script: 'the toast',
      heading: 'Speeches, in Order of Tears',
      body: [
        'Yegor went first — fast, deadpan, devastating. Polina went second, with notes that she pretended she had not written and that everyone could see were laminated.',
        'Vadim, Daniil’s father, went last. He held a microphone in one hand and a bottle of something pale in the other, and he spoke for four minutes about his son in the way fathers do when they have finally, after thirty-one years, run out of advice.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 4,
    label: '24 Guests',
    left: { type: 'mosaic-2', photos: [38, 39] },
    right: { type: 'photo-full', photo: 40 },
  },

  {
    kind: 'photo-spread',
    chapter: 4,
    label: '25 Dinner',
    left: { type: 'photo-full', photo: 41 },
    right: { type: 'photo-full', photo: 42 },
  },

  {
    kind: 'photo-spread',
    chapter: 4,
    label: '26 Faces',
    left: { type: 'mosaic-3-stack', photos: [43, 44, 45] },
    right: {
      type: 'text-block',
      script: 'the small things',
      heading: 'The Small, Particular Wonders',
      body: [
        'A child who had decided to spend the wedding inside a pair of headphones, and who was, by all accounts, having a wonderful time.',
        'An aunt who tried to dance with three different people in three different decades. A row of candles burned down to little pools. Somebody’s shoes, abandoned, on a step. Somebody’s glass, refilled by a stranger who immediately became a friend.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 4,
    label: '27 Together late',
    left: { type: 'photo-full', photo: 46 },
    right: { type: 'photo-full', photo: 47 },
  },

  // ─────────────────────────────────────────────────────────────
  // CHAPTER V — INTO THE NIGHT
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'chapter-opener',
    chapter: 5,
    label: '28 Chapter V',
    numeral: 'V',
    name: 'Into the Night',
    epigraph: '“And then the music. And then everything that the music meant.”',
  },

  {
    kind: 'photo-spread',
    chapter: 5,
    label: '29 First dance',
    left: {
      type: 'text-block',
      script: 'their song',
      heading: 'Their Song',
      body: [
        'It was nothing fashionable. It was a slow Russian song their grandparents had probably danced to once, and that they had played to each other in a small kitchen in Moscow, on a cold night, the winter they decided.',
        'Daniil put a hand on the small of her back. Anastasia put her head against his shoulder. The rest of the room — kindly, and without being asked — pretended not to watch.',
      ],
    },
    right: { type: 'photo-full', photo: 48 },
  },

  {
    kind: 'photo-spread',
    chapter: 5,
    label: '30 Dance',
    left: { type: 'photo-full', photo: 49 },
    right: { type: 'photo-full', photo: 50 },
  },

  {
    kind: 'photo-spread',
    chapter: 5,
    label: '31 Late',
    left: { type: 'mosaic-2', photos: [51, 52] },
    right: {
      type: 'text-block',
      script: 'and so',
      heading: 'And So',
      body: [
        'At some hour none of them could later agree on, the music slowed and then stopped, and then started again, and then finally, definitely, stopped.',
        'Anastasia and Daniil walked back along the same path they had walked an entire lifetime ago, that morning. A door closed somewhere. A candle, finally, went out. The story did not end. It only paused — to begin, very softly, the long second chapter.',
      ],
    },
  },

  {
    kind: 'photo-spread',
    chapter: 5,
    label: '32 Final',
    left: { type: 'photo-full', photo: 53 },
    right: { type: 'photo-full', photo: 54 },
  },

  // ─────────────────────────────────────────────────────────────
  // BACK MATTER
  // ─────────────────────────────────────────────────────────────
  {
    kind: 'signature',
    label: '33 Signatures',
  },

  {
    kind: 'colophon',
    label: '34 Colophon',
    left: {
      type: 'text-block',
      script: 'with love',
      heading: 'A Note',
      body: [
        'This album was made for Anastasia and Daniil — and for everyone who flew in to stand on the warm side of the sea with them.',
        'May you turn its pages on quiet evenings, in winters far from here, when one of you misses the other and the other is only in the next room. Remember the stone. Remember the sky. Remember each other.',
      ],
      align: 'center',
    },
    right: { type: 'monogram-page', text: 'A & D' },
  },

  {
    kind: 'back-cover',
    label: '35 Back Cover',
  },
];

window.SPREADS = SPREADS_AD;
window.photoPath = pAD;
