/*
 * The names on the opening screens (the card, the envelope, the curtain, the book…) are written in the font of the
 * invitation, the one of its template or the one the organiser picked, so that the greeting screen and the page look like
 * one thing. Each font sets its look as variables (the same family, weight, style, spacing and case as the titles of the
 * page: see invitation-blocks.css); the size stays the one of each opening, which is drawn for it.
 * Without a font ("Du modèle" and a template with none) the openings keep their own elegant serif.
 */
.invitation.invite-font-classic {
  --op-family: var(--font-classic);
  --op-weight: 700;
}
.invitation.invite-font-elegant {
  --op-family: var(--font-elegant);
  --op-weight: 600;
}
.invitation.invite-font-modern {
  --op-family: var(--font-modern);
  --op-weight: 750;
  --op-spacing: -0.8px;
}
.invitation.invite-font-script {
  --op-zoom: 1.25;
  --op-family: var(--font-script);
  --op-weight: 700;
}
.invitation.invite-font-literary {
  --op-family: var(--font-literary);
  --op-weight: 700;
}
.invitation.invite-font-geometric {
  --op-family: var(--font-geometric);
  --op-weight: 600;
  --op-spacing: -0.5px;
}
.invitation.invite-font-deco {
  --op-family: var(--font-deco);
  --op-weight: 600;
  --op-spacing: 0.14em;
  --op-case: uppercase;
}
.invitation.invite-font-calligraphy {
  --op-zoom: 1.6;
  --op-family: var(--font-calligraphy);
  --op-weight: 400;
  --op-style: normal;
}
.invitation.invite-font-contemporary {
  --op-family: var(--font-contemporary);
  --op-weight: 700;
  --op-spacing: -0.6px;
}
.invitation.invite-font-classic-italic {
  --op-zoom: 1.15;
  --op-family: var(--font-classic-italic);
  --op-weight: 600;
  --op-style: italic;
}
.invitation.invite-font-caps {
  --op-family: var(--font-caps);
  --op-weight: 600;
  --op-spacing: 0.1em;
  --op-case: uppercase;
}
.invitation.invite-font-vibes {
  --op-zoom: 1.5;
  --op-family: var(--font-vibes);
  --op-weight: 400;
  --op-style: normal;
}
.invitation.invite-font-engraved {
  --op-family: var(--font-engraved);
  --op-weight: 700;
  --op-spacing: 0.12em;
  --op-case: uppercase;
}
.invitation.invite-font-didone {
  --op-family: var(--font-didone);
  --op-weight: 700;
}
.invitation.invite-font-rounded {
  --op-family: var(--font-rounded);
  --op-weight: 700;
}
.invitation.invite-font-handwritten {
  --op-zoom: 1.35;
  --op-family: var(--font-handwritten);
  --op-weight: 700;
}
.invitation.invite-font-fine {
  --op-family: var(--font-fine);
  --op-weight: 300;
  --op-spacing: 0.14em;
  --op-case: uppercase;
}
.invitation .invite-opening[class] h2,
.invitation .invite-opening[class] .ob-front b {
  font-family: var(--op-family, var(--font-elegant, Georgia, serif));
  font-weight: var(--op-weight, 400);
  font-style: var(--op-style, normal);
  letter-spacing: var(--op-spacing, normal);
  text-transform: var(--op-case, none);
  overflow-wrap: anywhere;
  /* Script fonts are small for their size: they are drawn larger, as they are on the page itself. */
  zoom: var(--op-zoom, 1);
}
