/*
 * Centred by default. On a wide page a list, a timeline or a table of facts used to hug the left edge of its section,
 * leaving the other half empty. Each of these blocks now takes the width of its content (never more than a reading
 * column) and sits in the middle; the text of the short blocks is centred too. Loaded after every other style, so that
 * it is the rule of every template; a presentation can still be chosen in the editor.
 */
.invitation[class] .invite-wishes,
.invitation[class] .invite-gifts,
.invitation[class] .invite-timeline,
.invitation[class] .invite-moments ul,
.invitation[class] .invite-facts,
.invitation[class] .invite-story-list,
.invitation[class] .invite-people,
.invitation[class] .invite-swatches,
.invitation[class] .invite-party-list {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(100%, 640px);
  margin-inline: auto;
}
/* The facts (place, time, notes): each one is centred in its column instead of starting on the left of it */
.invitation[class] .invite-facts > div {
  text-align: center;
}
/* A last fact alone in its row (3 facts on 2 columns) spans the row, so the block stays balanced */
.invitation[class] .invite-facts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
