/* Invitation styles are contained in .wd-template so the catalogue and editor can share them. */
.wd-template {
    --wd-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --wd-line: color-mix(in srgb, var(--wd-ink) 30%, var(--wd-paper));
    --wd-hair: max(1px, .12cqw);
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--wd-ink);
    background: var(--wd-paper);
    font: 400 16px/1.5 var(--wd-ui);
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
    isolation: isolate;
    -webkit-text-size-adjust: 100%;
}
.wd-template *, .wd-template *::before, .wd-template *::after { box-sizing: border-box; }
.wd-cover-host { width: 100%; max-width: 1180px; margin-inline: auto; container: wd-cover / inline-size; }
.wd-thumb .wd-cover-host { max-width: none; }
.wd-cover {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1.72;
    overflow: hidden;
    background: var(--wd-paper);
    color: var(--wd-ink);
    --wd-title: 7.6cqw;
}
.wd-thumb .wd-cover { aspect-ratio: 1.43; }
.wd-cover .wd-panel {
    position: absolute;
    z-index: 3;
    top: 12%; bottom: 12%; left: 5.5%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 45%;
    text-align: center;
}
.wd-cover .wd-kicker, .wd-cover .wd-date {
    display: block;
    margin: 0;
    padding: 0;
    color: inherit;
    font: 600 1.07cqw/1.5 var(--wd-ui);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.wd-cover .wd-date { font-size: 1.22cqw; font-weight: 500; letter-spacing: .13em; }
.wd-thumb .wd-kicker { font-size: max(5px, 1.24cqw); }
.wd-thumb .wd-date { font-size: max(6px, 1.43cqw); }
.wd-cover .wd-names {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: inherit;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 2.8cqw 0;
    padding: 0;
    color: inherit;
    font: 400 calc(var(--wd-title) * var(--wd-name-fit,1))/.93 var(--wd-font);
    letter-spacing: -.061em;
    text-transform: none;
    text-wrap: initial;
}
.wd-names .wd-partner { display: block; max-width: 100%; overflow-wrap: anywhere; }
.wd-cover .wd-and { display: block; margin: .12em 0 .17em; font: italic 400 .43em/.84 Georgia,serif; letter-spacing: -.04em; }
.wd-cover .wd-media, .wd-cover .wd-ornament, .wd-cover .wd-emblem, .wd-cover .wd-month-sheet { position: absolute; }
.wd-cover .wd-media { z-index: 1; overflow: hidden; }
.wd-media img, .wd-keepsake img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.wd-cover .wd-ornament { inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wd-ornament i, .wd-ornament::before, .wd-ornament::after { position: absolute; display: block; pointer-events: none; }
.wd-cover .wd-emblem { z-index: 2; display: grid; place-items: center; font: italic 400 2.3cqw/1 var(--wd-font); letter-spacing: -.08em; }
.wd-emblem span { white-space: nowrap; }
.wd-emblem span i { padding-inline: .07em; font: normal .64em/1 Georgia,serif; }

/* Architectural apertures. */
.wd-fam-arch .wd-media { right: 6%; top: 8%; width: 39%; height: 84%; border-radius: 48% 48% .3% .3%; }
.wd-fam-arch .wd-ornament::before { content: ""; right: 4.1%; top: 5%; width: 43%; height: 90%; border: var(--wd-hair) solid var(--wd-accent); border-radius: 49% 49% 0 0; }
.wd-fam-arch .wd-ornament i:first-child, .wd-fam-arch .wd-ornament i:nth-child(2) { left: 11%; top: 10%; width: 11%; height: var(--wd-hair); background: var(--wd-accent); }
.wd-fam-arch .wd-ornament i:nth-child(2) { top: auto; bottom: 10%; left: 32%; }
.wd-fam-arch .wd-and { color: var(--wd-mark); }
.wd-fam-arch.wd-v2 .wd-media { right: auto; left: 7%; top: 12%; height: 76%; width: 35%; border-radius: 50%; }
.wd-fam-arch.wd-v2 .wd-ornament::before { right: auto; left: 4.8%; top: 8.2%; width: 39.5%; height: 84%; border-radius: 50%; }
.wd-fam-arch.wd-v2 .wd-panel { left: auto; right: 5.5%; }
.wd-fam-arch.wd-v2 .wd-ornament i:first-child { left: 71%; }
.wd-fam-arch.wd-v2 .wd-ornament i:nth-child(2) { left: 59%; }
.wd-fam-arch.wd-v3 .wd-media { top: 0; right: 0; width: 46%; height: 100%; border-radius: 48% 0 0 0; }
.wd-fam-arch.wd-v3 .wd-ornament::before { right: -1%; top: -3%; width: 50%; height: 102%; border-radius: 48% 0 0 0; }
.wd-fam-arch.wd-v3 .wd-ornament i:first-child, .wd-fam-arch.wd-v3 .wd-ornament i:nth-child(2) { left: 3%; top: 0; width: var(--wd-hair); height: 100%; }
.wd-fam-arch.wd-v3 .wd-ornament i:nth-child(2) { left: 48%; }

/* Editorial covers with a ruled masthead and a photographic column. */
.wd-fam-gazette .wd-cover { --wd-title: 9.2cqw; }
.wd-fam-gazette .wd-ornament { inset: 6% 5%; border-block: max(1px,.23cqw) solid var(--wd-ink); }
.wd-fam-gazette .wd-ornament::before { content: ""; top: 2.4%; left: 0; width: 100%; height: var(--wd-hair); background: var(--wd-ink); }
.wd-fam-gazette .wd-media { left: 57%; right: 5%; top: 15%; bottom: 13%; }
.wd-fam-gazette .wd-panel { left: 6%; width: 48%; align-items: flex-start; text-align: left; }
.wd-fam-gazette .wd-kicker { font-weight: 700; }
.wd-fam-gazette .wd-and { align-self: flex-start; margin: .14em 0 .10em .18em; color: var(--wd-mark); }
.wd-fam-gazette.wd-v2 .wd-media { left: 5%; right: auto; bottom: 17%; top: 18%; width: 35%; }
.wd-fam-gazette.wd-v2 .wd-panel { left: 46%; width: 49%; }
.wd-fam-gazette.wd-v2 .wd-names { font-weight: 600; line-height: .92; }
.wd-fam-gazette.wd-v2 .wd-ornament i:first-child { left: 42%; top: 8%; bottom: 8%; border-left: var(--wd-hair) solid var(--wd-ink); }
.wd-fam-gazette.wd-v3 .wd-media { width: 30%; left: auto; top: 10%; right: 6%; bottom: 10%; }
.wd-fam-gazette.wd-v3 .wd-panel { width: 53%; }
.wd-fam-gazette.wd-v3 .wd-partner-last { font-style: italic; }
.wd-fam-gazette.wd-v3 .wd-ornament i:first-child { right: 35%; top: 1.5%; bottom: 1.5%; border-left: var(--wd-hair) solid var(--wd-accent); }

/* Mailed postcards. The paper label stays fully opaque over any photograph. */
.wd-fam-post .wd-cover { --wd-title: 6.4cqw; background: var(--wd-tint); }
.wd-fam-post .wd-ornament { inset: 3.4% 2.3%; background: repeating-linear-gradient(125deg,var(--wd-accent) 0 1.15cqw,var(--wd-paper) 1.15cqw 2.6cqw,var(--wd-ink) 2.6cqw 3.6cqw,var(--wd-paper) 3.6cqw 5.1cqw); }
.wd-fam-post .wd-media { inset: 5% 3.3%; }
.wd-fam-post .wd-media img { object-position: 50% 61%; }
.wd-fam-post .wd-panel { left: 6.7%; top: auto; bottom: 10%; width: 54%; padding: 2.1cqw 2.8cqw 2.4cqw; align-items: flex-start; text-align: left; background: var(--wd-paper); transform: rotate(-3deg); box-shadow: .15cqw .35cqw .8cqw #30231c26; }
.wd-fam-post .wd-names { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: baseline; gap: .035em .12em; margin: 1.45cqw 0; font-style: italic; }
.wd-fam-post .wd-partner-first, .wd-fam-post .wd-partner-last:only-child { grid-column: 1/-1; }
.wd-fam-post .wd-and { margin: 0; }
.wd-fam-post .wd-emblem { right: 7%; top: 10%; width: 8.6%; aspect-ratio: 1; border: max(1px,.22cqw) double var(--wd-paper); outline: var(--wd-hair) solid var(--wd-paper); outline-offset: .45cqw; border-radius: 50%; color: var(--wd-paper); background: #193b3f50; transform: rotate(14deg); }
.wd-fam-post.wd-v2 .wd-cover { --wd-title: 5.6cqw; }
.wd-fam-post.wd-v2 .wd-media { left: 4.7%; right: 36%; top: 8.5%; bottom: 10%; border: .7cqw solid var(--wd-paper); transform: rotate(-3deg); box-shadow: .2cqw .3cqw .5cqw #17201728; }
.wd-fam-post.wd-v2 .wd-ornament { inset: 0; background: var(--wd-paper); }
.wd-fam-post.wd-v2 .wd-ornament::before { content: ""; inset: 5% 3%; border: var(--wd-hair) dashed var(--wd-accent); }
.wd-fam-post.wd-v2 .wd-panel { left: auto; right: 5%; bottom: 14%; width: 36%; padding: 0 0 .8cqw; transform: none; box-shadow: none; border-bottom: max(1px,.18cqw) solid var(--wd-accent); }
.wd-fam-post.wd-v2 .wd-names { font-style: normal; }
.wd-fam-post.wd-v2 .wd-emblem { color: var(--wd-paper); background: var(--wd-accent); border: .5cqw dotted var(--wd-paper); outline: var(--wd-hair) solid var(--wd-accent); outline-offset: 0; border-radius: 0; transform: rotate(8deg); top: 13%; right: 9%; }
.wd-fam-post.wd-v3 .wd-ornament { inset: 0; background: var(--wd-paper); }
.wd-fam-post.wd-v3 .wd-media { left: 52%; right: 7%; top: 14%; bottom: 15%; border: .74cqw dotted var(--wd-paper); outline: var(--wd-hair) solid var(--wd-accent); transform: rotate(6deg); }
.wd-fam-post.wd-v3 .wd-panel { left: 5%; right: auto; bottom: 20%; width: 47%; padding: 1.5cqw; transform: none; box-shadow: none; }
.wd-fam-post.wd-v3 .wd-emblem { right: 7%; top: 58%; color: var(--wd-ink); background: #fff2c5db; border-color: var(--wd-ink); outline-color: var(--wd-ink); }
.wd-fam-post.wd-v3 .wd-ornament::before { content: ""; inset: 5% 3%; border-block: max(1px,.32cqw) dashed var(--wd-accent); }

/* Folded botanical folios. */
.wd-fam-botany .wd-cover { --wd-title: 7.9cqw; }
.wd-fam-botany .wd-media { top: 0; right: 0; bottom: 0; width: 47%; }
.wd-fam-botany .wd-cover:not(.wd-personal) .wd-media img { object-fit: cover; }
.wd-fam-botany .wd-ornament::before { content: ""; inset: 6% 49.4% 6% 4%; border: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-botany .wd-panel { left: 6.2%; width: 42%; }
.wd-fam-botany .wd-partner-last { font-style: italic; }
.wd-fam-botany.wd-v2 .wd-media { left: 6%; right: auto; top: 10%; bottom: 10%; width: 35%; border-radius: 49% 49% 45% 45%; }
.wd-fam-botany.wd-v2 .wd-ornament::before { inset: 6% auto 6% 3.6%; width: 40%; border-radius: 50%; }
.wd-fam-botany.wd-v2 .wd-ornament::after { content: ""; right: 8%; top: 12%; bottom: 12%; width: 41%; border-block: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-botany.wd-v2 .wd-panel { left: auto; right: 5.5%; width: 46%; }
.wd-fam-botany.wd-v3 .wd-media { right: 8%; top: 12%; bottom: 12%; width: 34%; transform: rotate(3deg); border: .6cqw solid #fbf5e7; box-shadow: .5cqw .7cqw 0 var(--wd-accent); }
.wd-fam-botany.wd-v3 .wd-ornament::before { inset: 0 44% 0 0; border: 0; background: var(--wd-paper); box-shadow: .65cqw 0 var(--wd-tint), .85cqw 0 var(--wd-accent); }
.wd-fam-botany.wd-v3 .wd-ornament { background: var(--wd-tint); }
.wd-fam-botany.wd-v3 .wd-panel { left: 5.5%; width: 45%; }

/* Photographic cinematic titles. */
.wd-fam-film .wd-cover { --wd-title: 8.6cqw; background: #243032; color: #fffaf2; }
.wd-fam-film .wd-media { inset: 0; }
.wd-fam-film .wd-media img { object-position: 50% 52%; }
.wd-fam-film .wd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#100d0ce0 0,#100d0c9c 41%,#100d0c12 83%),linear-gradient(0deg,#100e0e52,transparent 40%); }
.wd-fam-film .wd-panel { left: 8%; bottom: 10%; top: 8%; width: 54%; justify-content: flex-end; align-items: flex-start; text-align: left; }
.wd-fam-film .wd-cover::after { content: ""; position: absolute; z-index: 2; inset: 5% 3.6%; border: var(--wd-hair) solid #faf1de77; pointer-events: none; }
.wd-fam-film .wd-kicker { color: #f7e9cf; }
.wd-fam-film.wd-v2 .wd-panel { left: 17%; width: 66%; top: 7%; bottom: 7%; justify-content: center; align-items: center; text-align: center; }
.wd-fam-film.wd-v2 .wd-media img { filter: grayscale(1); }
.wd-fam-film.wd-v2 .wd-media::after { background: linear-gradient(90deg,#10101030,#101010ab 37%,#101010a8 66%,#10101033); }
.wd-fam-film.wd-v2 .wd-cover::after { inset: 4% 3%; border-block-width: .32cqw; border-inline: none; }
.wd-fam-film.wd-v3 .wd-panel { left: auto; right: 7%; width: 49%; justify-content: center; align-items: flex-end; text-align: right; }
.wd-fam-film.wd-v3 .wd-media img { object-position: 50% 58%; }
.wd-fam-film.wd-v3 .wd-media::after { background: linear-gradient(270deg,#10252cee 0%,#17282fa6 42%,#10212614 85%); }
.wd-fam-film.wd-v3 .wd-cover::after { inset: 8% 5%; border-inline: 0; }

/* Modern cut-paper posters. */
.wd-fam-shape .wd-cover { --wd-title: 9.2cqw; }
.wd-fam-shape .wd-panel { left: 5.8%; width: 56%; align-items: flex-start; text-align: left; }
.wd-fam-shape .wd-names { font-weight: 700; letter-spacing: -.085em; }
.wd-fam-shape .wd-and { font-family: var(--wd-font); font-weight: 500; }
.wd-fam-shape .wd-ornament i:first-child { width: 65%; aspect-ratio: 1; right: -22%; top: -32%; border-radius: 50%; background: var(--wd-accent); }
.wd-fam-shape .wd-ornament i:nth-child(2) { width: 39%; height: 69%; right: 0; bottom: 0; border-radius: 100% 0 0 0; background: var(--wd-tint); }
.wd-fam-shape .wd-ornament i:nth-child(3) { width: 23%; aspect-ratio: 1; right: 7.5%; bottom: -3%; border-radius: 50%; background: var(--wd-accent); }
.wd-fam-shape .wd-media { right: 6.5%; top: 33%; width: 28%; height: 43%; border-radius: 50%; border: .6cqw solid var(--wd-paper); }
.wd-fam-shape.wd-v2 .wd-panel { left: auto; right: 4%; width: 53%; }
.wd-fam-shape.wd-v2 .wd-ornament i:first-child { left: -30%; top: -10%; right: auto; width: 70%; aspect-ratio: 1; }
.wd-fam-shape.wd-v2 .wd-ornament i:nth-child(2) { left: 0; right: auto; width: 42%; height: 61%; border-radius: 0; background: var(--wd-tint); clip-path: polygon(0 0,100% 100%,0 100%); }
.wd-fam-shape.wd-v2 .wd-ornament i:nth-child(3) { left: 9%; right: auto; bottom: 7%; width: 18%; background: var(--wd-paper); }
.wd-fam-shape.wd-v2 .wd-media { left: 4.5%; right: auto; }
.wd-fam-shape.wd-v3 .wd-panel { width: 58%; }
.wd-fam-shape.wd-v3 .wd-names { font-style: italic; }
.wd-fam-shape.wd-v3 .wd-ornament i:first-child { width: 72%; height: 79%; top: 5%; right: -28%; background: repeating-radial-gradient(ellipse,var(--wd-accent) 0 1.2cqw,var(--wd-paper) 1.3cqw 3.0cqw); }
.wd-fam-shape.wd-v3 .wd-ornament i:nth-child(2) { width: 36%; height: 35%; bottom: 0; border-radius: 0; clip-path: polygon(0 100%,0 72%,25% 72%,25% 48%,50% 48%,50% 24%,75% 24%,75% 0,100% 0,100% 100%); }
.wd-fam-shape.wd-v3 .wd-ornament i:nth-child(3) { display: none; }

/* Engraved stationery. */
.wd-fam-crest .wd-cover { --wd-title: 7.7cqw; }
.wd-fam-crest .wd-panel { left: 12%; width: 76%; top: 30%; bottom: 10%; }
.wd-fam-crest .wd-names { flex-flow: row wrap; align-items: baseline; gap: .1em; margin: 2.8cqw 0; }
.wd-fam-crest .wd-and { margin: 0 .02em; }
.wd-fam-crest .wd-ornament { inset: 5.3% 3.6%; border: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-crest .wd-ornament::before { content: ""; inset: 1.6%; border: max(2px,.34cqw) double var(--wd-accent); }
.wd-fam-crest .wd-ornament i:first-child, .wd-fam-crest .wd-ornament i:nth-child(2) { width: 13%; height: 19%; top: 4%; left: 2.3%; border-radius: 0 0 100% 0; border-right: var(--wd-hair) solid var(--wd-accent); border-bottom: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-crest .wd-ornament i:nth-child(2) { left: auto; top: auto; right: 2.3%; bottom: 4%; transform: rotate(180deg); }
.wd-fam-crest .wd-emblem { top: 13%; left: 43%; width: 14%; height: 19%; border-radius: 50%; border: max(2px,.38cqw) double var(--wd-accent); outline: var(--wd-hair) solid var(--wd-accent); outline-offset: .45cqw; color: var(--wd-mark); }
.wd-fam-crest .wd-media { left: 42%; top: 10%; width: 16%; height: 24%; border-radius: 50%; border: .35cqw solid var(--wd-accent); }
.wd-fam-crest .wd-with-image .wd-emblem { display: none; }
.wd-fam-crest.wd-v2 .wd-ornament { inset: 4.5% 3.4%; border-radius: 48%; border-width: max(2px,.35cqw); }
.wd-fam-crest.wd-v2 .wd-ornament::before { inset: 2.7%; border-radius: 48%; border: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-crest.wd-v2 .wd-ornament i { display: none; }
.wd-fam-crest.wd-v2 .wd-emblem { top: 14%; border-radius: 45% 45% 50% 50%; }
.wd-fam-crest.wd-v3 .wd-ornament::before { inset: 2.5% 1.5%; border-width: var(--wd-hair); }
.wd-fam-crest.wd-v3 .wd-ornament i:first-child, .wd-fam-crest.wd-v3 .wd-ornament i:nth-child(2) { width: 18%; height: 22%; border-radius: 0; background: repeating-linear-gradient(135deg,transparent 0 1.1cqw,var(--wd-accent) 1.15cqw 1.25cqw,transparent 1.3cqw 2.9cqw); border: 0; clip-path: polygon(0 0,100% 0,0 100%); }
.wd-fam-crest.wd-v3 .wd-emblem { width: 8%; height: auto; aspect-ratio: 1; left: 46%; top: 14%; border-radius: 0; transform: rotate(45deg); }
.wd-fam-crest.wd-v3 .wd-emblem span { transform: rotate(-45deg); }

/* Real paper folds and a small wax seal. */
.wd-fam-letter .wd-cover { --wd-title: 7.1cqw; background: var(--wd-tint); }
.wd-fam-letter .wd-ornament::before { content: ""; inset: 13% 12%; background: var(--wd-paper); transform: rotate(-3deg); box-shadow: .3cqw .5cqw 1.6cqw #31211935; }
.wd-fam-letter .wd-ornament::after { content: ""; inset: 0; background: color-mix(in srgb,var(--wd-accent) 45%,var(--wd-tint)); clip-path: polygon(100% 50%,100% 100%,55% 100%); }
.wd-fam-letter .wd-ornament i:first-child { width: 15%; top: 20%; left: 16%; height: var(--wd-hair); background: var(--wd-accent); transform: rotate(-3deg); }
.wd-fam-letter .wd-panel { left: 19%; top: 18%; bottom: 18%; width: 59%; }
.wd-fam-letter .wd-names { margin: 1.9cqw 0; }
.wd-fam-letter .wd-emblem { right: 9%; bottom: 10%; width: 10%; aspect-ratio: 1; border-radius: 48% 54% 46% 51%; color: var(--wd-on-accent); background: var(--wd-accent); border: .5cqw double color-mix(in srgb,var(--wd-accent),#3b2222 26%); box-shadow: .15cqw .4cqw .6cqw #36221a48,inset .25cqw .25cqw .25cqw #ffffff39; transform: rotate(-13deg); }
.wd-fam-letter .wd-media { right: 12%; top: 17%; width: 19%; height: 30%; transform: rotate(7deg); border: .8cqw solid #fff9e9; box-shadow: .3cqw .5cqw .4cqw #352d292c; }
.wd-fam-letter .wd-with-image .wd-panel { width: 47%; left: 17.5%; }
.wd-fam-letter.wd-v2 .wd-ornament::before { inset: 12% 13% 14% 17%; transform: rotate(3deg); }
.wd-fam-letter.wd-v2 .wd-ornament::after { clip-path: polygon(0 0,17% 0,22% 100%,0 100%); }
.wd-fam-letter.wd-v2 .wd-emblem { right: auto; left: 8%; bottom: 20%; }
.wd-fam-letter.wd-v2 .wd-ornament i:first-child { left: 68%; top: 20%; transform: rotate(3deg); }
.wd-fam-letter.wd-v3 .wd-ornament::before { inset: 16% 14%; transform: rotate(-1.5deg); }
.wd-fam-letter.wd-v3 .wd-ornament::after { clip-path: polygon(0 0,35% 0,0 48%); background: var(--wd-accent); }
.wd-fam-letter.wd-v3 .wd-emblem { bottom: 12%; right: 12%; }
.wd-fam-letter.wd-v3 .wd-cover { --wd-title: 6cqw; }

/* Orbital and horizon compositions. */
.wd-fam-orbit .wd-cover { --wd-title: 7.8cqw; }
.wd-fam-orbit .wd-panel { left: 5.2%; width: 51%; }
.wd-fam-orbit .wd-ornament i:first-child { width: 55%; aspect-ratio: 1; left: 60%; top: -8%; border: var(--wd-hair) solid var(--wd-accent); border-radius: 50%; }
.wd-fam-orbit .wd-ornament i:nth-child(2) { width: 46%; aspect-ratio: 1; left: 53%; top: 29%; border: var(--wd-hair) solid var(--wd-accent); border-radius: 50%; }
.wd-fam-orbit .wd-ornament i:nth-child(3) { width: 22%; aspect-ratio: 1; right: 14%; top: 23%; border-radius: 50%; background: var(--wd-accent); box-shadow: 1cqw .3cqw 0 var(--wd-tint); }
.wd-fam-orbit .wd-media { right: 9%; top: 32%; width: 31%; aspect-ratio: 1; border-radius: 50%; border: .5cqw solid var(--wd-paper); }
.wd-fam-orbit.wd-v2 .wd-panel { left: auto; right: 5%; width: 45%; align-items: flex-start; text-align: left; }
.wd-fam-orbit.wd-v2 .wd-ornament i:first-child { width: 55%; left: -9%; top: 19%; border: 0; background: var(--wd-accent); }
.wd-fam-orbit.wd-v2 .wd-ornament i:nth-child(2) { top: 50%; left: -2%; width: 51%; height: 50%; border: 0; background: repeating-linear-gradient(var(--wd-paper) 0 1.3cqw,var(--wd-accent) 1.3cqw 1.5cqw); border-radius: 0; }
.wd-fam-orbit.wd-v2 .wd-ornament i:nth-child(3) { width: 11%; right: auto; left: 5%; top: 14%; background: var(--wd-tint); box-shadow: none; }
.wd-fam-orbit.wd-v2 .wd-media { left: 7%; right: auto; }
.wd-fam-orbit.wd-v3 .wd-panel { left: 6%; width: 50%; }
.wd-fam-orbit.wd-v3 .wd-ornament i:first-child { width: 38%; height: 72%; left: 55%; top: 9%; transform: rotate(21deg); }
.wd-fam-orbit.wd-v3 .wd-ornament i:nth-child(2) { width: 33%; height: 69%; left: 62%; top: 23%; transform: rotate(-19deg); }
.wd-fam-orbit.wd-v3 .wd-ornament i:nth-child(3) { width: 12%; right: 20%; top: 44%; }

/* Calendar sheets calculate the actual month and Monday-based week. */
.wd-fam-calendar .wd-cover { --wd-title: 7.8cqw; }
.wd-fam-calendar .wd-panel { left: 5.5%; width: 44%; align-items: flex-start; text-align: left; }
.wd-fam-calendar .wd-names { font-weight: 600; }
.wd-fam-calendar .wd-ornament { inset: 0; background: linear-gradient(90deg,transparent 48.5%,var(--wd-tint) 48.5%); }
.wd-fam-calendar .wd-month-sheet { top: 18%; right: 5%; width: 41%; color: var(--wd-ink); z-index: 2; }
.wd-fam-calendar .wd-month-name { display: block; margin-bottom: 1cqw; font: 600 5.5cqw/1 var(--wd-font); letter-spacing: -.07em; }
.wd-fam-calendar .wd-month-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: .4cqw .13cqw; padding-top: 1cqw; border-top: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-calendar .wd-month-grid span, .wd-fam-calendar .wd-month-grid i { display: grid; place-items: center; min-width: 0; line-height: 1; }
.wd-fam-calendar .wd-month-grid span { font: 500 1.7cqw/1.7 var(--wd-ui); font-variant-numeric: tabular-nums; }
.wd-fam-calendar .wd-month-grid .wd-weekday { color: var(--wd-mark); font-size: 1.16cqw; font-weight: 700; text-transform: uppercase; }
.wd-fam-calendar .wd-month-grid .wd-chosen { color: var(--wd-on-accent); background: var(--wd-accent); border-radius: 50%; }
.wd-fam-calendar .wd-emblem { right: 9%; top: 30%; width: 29%; height: 40%; border-block: var(--wd-hair) solid var(--wd-accent); font-size: 7cqw; color: var(--wd-mark); }
.wd-fam-calendar.wd-v2 .wd-ornament { background-color: var(--wd-paper); background-image: linear-gradient(var(--wd-tint) var(--wd-hair),transparent var(--wd-hair)),linear-gradient(90deg,var(--wd-tint) var(--wd-hair),transparent var(--wd-hair)); background-size: 3.2cqw 3.2cqw; }
.wd-fam-calendar.wd-v2 .wd-month-sheet { left: 5%; right: auto; width: 39%; }
.wd-fam-calendar.wd-v2 .wd-panel { right: 5%; left: auto; width: 44%; }
.wd-fam-calendar.wd-v2 .wd-month-grid .wd-chosen { background: none; color: var(--wd-mark); outline: .24cqw solid var(--wd-accent); transform: rotate(-7deg); }
.wd-fam-calendar.wd-v2 .wd-emblem { right: auto; left: 6%; }
.wd-fam-calendar.wd-v3 .wd-ornament { background: linear-gradient(90deg,var(--wd-tint) 46%,transparent 46%); }
.wd-fam-calendar.wd-v3 .wd-month-sheet { top: 12%; width: 42%; }
.wd-fam-calendar.wd-v3 .wd-month-name { font-size: 6.2cqw; }
.wd-fam-calendar.wd-v3 .wd-month-grid { gap: 0; border-top: none; border-left: var(--wd-hair) solid var(--wd-accent); }
.wd-fam-calendar.wd-v3 .wd-month-grid span, .wd-fam-calendar.wd-v3 .wd-month-grid i { border: var(--wd-hair) solid var(--wd-accent); border-left-width: 0; margin-top: calc(-1 * var(--wd-hair)); }
.wd-fam-calendar.wd-v3 .wd-month-grid .wd-chosen { border-radius: 0; }
.wd-fam-calendar.wd-v3 .wd-panel { width: 38.5%; }

/* Taped prints, a film strip, and a travel album. */
.wd-fam-album .wd-cover { --wd-title: 7.8cqw; }
.wd-fam-album .wd-media { left: 8%; top: 12%; width: 36.5%; height: 75%; padding: 1.05cqw 1.05cqw 4.1cqw; transform: rotate(-6deg); background: #fbf7e9; box-shadow: .4cqw .7cqw 1.15cqw #2c302a38; overflow: visible; }
.wd-fam-album .wd-media::after { content:""; position:absolute; width: 32%; height: 8%; top:-2%; left:32%; transform:rotate(4deg); background: #bbaa72a8; clip-path: polygon(1% 0, 100% 5%, 98% 98%, 0 92%); }
.wd-fam-album .wd-panel { left: auto; right: 5.5%; width: 42%; }
.wd-fam-album .wd-ornament i:first-child { width: 35%; height: 68%; left: 8%; top: 17%; background: var(--wd-tint); border: var(--wd-hair) solid var(--wd-accent); transform: rotate(3.5deg); }
.wd-fam-album .wd-ornament i:nth-child(2) { width: 76%; height: var(--wd-hair); left: 12%; bottom: 7.5%; background: var(--wd-accent); }
.wd-fam-album.wd-v2 .wd-media { right: 6%; left: auto; top: 7%; height: 86%; width: 40%; transform: none; padding: 2.2cqw 1.6cqw; background: #252423; }
.wd-fam-album.wd-v2 .wd-media::after { inset: .55cqw 1.8cqw auto; width: auto; height: .65cqw; background: repeating-linear-gradient(90deg,#efeadf 0 .9cqw,transparent .9cqw 1.9cqw); transform: none; clip-path: none; }
.wd-fam-album.wd-v2 .wd-media::before { content:""; position:absolute; left:1.8cqw; right:1.8cqw; bottom:.55cqw; height:.65cqw; background: repeating-linear-gradient(90deg,#efeadf 0 .9cqw,transparent .9cqw 1.9cqw); }
.wd-fam-album.wd-v2 .wd-panel { right: auto; left: 5.5%; width: 44%; align-items: flex-start; text-align: left; }
.wd-fam-album.wd-v2 .wd-ornament i:first-child { display: none; }
.wd-fam-album.wd-v2 .wd-ornament i:nth-child(2) { left: 5.5%; width: 39%; bottom: 16%; }
.wd-fam-album.wd-v3 .wd-media { transform: rotate(4deg); top: 18%; height: 66%; width: 39%; background: #dfb982; padding: 1.8cqw; }
.wd-fam-album.wd-v3 .wd-media::after { left:auto; right:-5%; top:4%; width:30%; height:7%; transform:rotate(48deg); background:#f4e8c5b0; }
.wd-fam-album.wd-v3 .wd-ornament i:first-child { transform: rotate(-6deg); width: 37%; height: 64%; top: 19%; }
.wd-fam-album.wd-v3 .wd-panel { right: 4%; }

/* Place cards with different linen weaves. */
.wd-fam-table .wd-cover { --wd-title: 7.6cqw; }
.wd-fam-table .wd-ornament { background-color: var(--wd-paper); background-image: repeating-linear-gradient(0deg,transparent 0 2.6cqw,color-mix(in srgb,var(--wd-accent) 30%,transparent) 2.6cqw 5.2cqw),repeating-linear-gradient(90deg,transparent 0 2.6cqw,color-mix(in srgb,var(--wd-accent) 37%,transparent) 2.6cqw 5.2cqw); }
.wd-fam-table .wd-panel { left: 6.2%; top: 12%; bottom: 12%; width: 51%; padding: 3.4cqw; border-radius: 42% 42% 4% 4%; background: var(--wd-paper); outline: var(--wd-hair) solid var(--wd-accent); outline-offset:-1cqw; }
.wd-fam-table .wd-media { right: 6.5%; top: 19%; width: 33%; height: 64%; border-radius: 48% 48% 46% 46%; outline: .7cqw solid var(--wd-paper); outline-offset: .2cqw; transform: rotate(6deg); }
.wd-fam-table.wd-v2 .wd-ornament { background-size: 2.8cqw 2.8cqw; background-image: linear-gradient(0deg,transparent 48%,color-mix(in srgb,var(--wd-accent) 36%,transparent) 48%),linear-gradient(90deg,transparent 48%,color-mix(in srgb,var(--wd-accent) 31%,transparent) 48%); }
.wd-fam-table.wd-v2 .wd-panel { left: auto; right: 6%; width: 52%; top: 15%; bottom: 15%; border-radius: 4%; transform: rotate(2deg); }
.wd-fam-table.wd-v2 .wd-media { right: auto; left: 6%; top: 16%; height: 69%; width: 32%; border-radius: 0; transform: rotate(-4deg); }
.wd-fam-table.wd-v3 .wd-ornament { background-color: var(--wd-tint); background-image: repeating-linear-gradient(0deg,transparent 0 3.2cqw,var(--wd-paper) 3.2cqw 3.6cqw),repeating-linear-gradient(90deg,transparent 0 3.2cqw,var(--wd-paper) 3.2cqw 3.6cqw); }
.wd-fam-table.wd-v3 .wd-panel { border-radius: 48%; top: 10%; bottom: 10%; left: 4%; width: 56%; }
.wd-fam-table.wd-v3 .wd-media { right: 5%; width: 31%; top: 15%; height: 70%; border-radius: 48% 48% 0 0; transform:none; }

/* Guest details use normal document flow, including long addresses and multiline notes. */
.wd-details { width: min(100%, 1060px); margin-inline: auto; padding: clamp(35px,6.5vw,92px) clamp(20px,6vw,83px); overflow-wrap: anywhere; }
.wd-details:empty { display: none; }
.wd-details h2 { margin: 0 0 .7em; padding: 0; max-width: none; color: var(--wd-ink); font: 400 clamp(27px,3.85vw,50px)/1.06 var(--wd-font); letter-spacing: -.048em; text-transform: none; }
.wd-details p, .wd-details address { margin: 0; padding: 0; }
.wd-details a:focus-visible { outline: 3px solid var(--wd-mark); outline-offset: 5px; }
.wd-greeting { margin: 0 auto clamp(38px,6vw,84px); max-width: 780px; text-align: center; }
.wd-greeting:last-child { margin-bottom: 0; }
.wd-details .wd-message { color: var(--wd-ink); font: 400 clamp(22px,3.1vw,38px)/1.32 var(--wd-font); letter-spacing: -.025em; text-wrap: pretty; }
.wd-details .wd-text-link { display: inline-block; padding: .2em 0; color: var(--wd-mark); font: 600 15px/1.45 var(--wd-ui); text-decoration: underline; text-underline-offset: .33em; text-decoration-thickness: 1px; }
.wd-message + .wd-text-link { margin-top: 1.4em; }
.wd-text-link span { display: inline-block; width: .48em; height: .48em; margin: 0 .13em .19em .32em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.wd-button span { margin-left: .3em; }
.wd-info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); align-items: start; gap: clamp(34px,7vw,98px); padding-top: clamp(28px,4vw,53px); border-top: 1px solid var(--wd-line,var(--wd-tint)); }
.wd-meeting, .wd-itinerary { min-width: 0; }
.wd-details .wd-when, .wd-details .wd-venue { display: block; color: var(--wd-ink); font: 400 clamp(20px,2.4vw,29px)/1.28 var(--wd-font); }
.wd-details .wd-subline, .wd-program, .wd-dress p { display: block; color: var(--wd-ink); font: 400 clamp(15px,1.4vw,18px)/1.55 var(--wd-ui); }
.wd-details .wd-subline { margin-top: .25em; }
.wd-details .wd-address { font-style: normal; }
.wd-when + .wd-address { margin-top: 1.4em; }
.wd-details .wd-program { list-style: none; padding: 0; margin: 0; }
.wd-program li { display: grid; grid-template-columns: minmax(3.45em,max-content) 1fr; align-items: baseline; gap: .35em 1.15em; padding: .71em 0; margin: 0; border-bottom: 1px solid var(--wd-line,var(--wd-tint)); }
.wd-program li:first-child { padding-top: 0; }
.wd-program .wd-no-time { display: block; }
.wd-slot { color: var(--wd-mark); font-size: .93em; font-weight: 700; font-variant-numeric: tabular-nums; }
.wd-dress { margin-top: clamp(30px,5vw,65px); padding: clamp(22px,3.8vw,44px); background: var(--wd-tint); }
.wd-dress p { max-width: 68ch; }
.wd-reply { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(38px,6vw,84px); padding-top: clamp(25px,4vw,50px); border-top: 1px solid var(--wd-line,var(--wd-tint)); }
.wd-reply h2 { margin: 0; }
.wd-details .wd-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: .84em 1.4em; border: 0; border-radius: 999px; color: var(--wd-on-accent); background: var(--wd-accent); font: 600 16px/1.35 var(--wd-ui); text-align: center; text-decoration: none; }
.wd-details .wd-button:hover { text-decoration: underline; text-underline-offset: .18em; }
.wd-keepsake { width: min(100%,560px); max-height: 660px; margin: 0 auto clamp(35px,6vw,75px); overflow: hidden; }
.wd-keepsake img { max-height: 660px; aspect-ratio: 4/4.5; }
.wd-fam-gazette .wd-greeting, .wd-fam-shape .wd-greeting, .wd-fam-calendar .wd-greeting { margin-inline: 0; text-align: left; }
.wd-fam-gazette .wd-info-grid { border-top: 4px double var(--wd-mark); }
.wd-fam-gazette .wd-button, .wd-fam-post .wd-button, .wd-fam-calendar .wd-button, .wd-fam-shape .wd-button, .wd-fam-album .wd-button { border-radius: 0; }
.wd-fam-crest .wd-dress, .wd-fam-letter .wd-dress { outline: 1px solid var(--wd-line,var(--wd-tint)); outline-offset: -8px; }
.wd-fam-orbit .wd-dress { border-radius: 0 35px 0 35px; }
.wd-fam-table .wd-dress { border-block: 2px dotted var(--wd-mark); }
.wd-fam-botany .wd-details h2, .wd-fam-arch .wd-details h2 { font-style: italic; }

/* Full invitations recompose for a narrow guest screen or narrow editor preview. */
@container wd-cover (max-width: 620px) {
    .wd-invitation .wd-cover { aspect-ratio: .78; --wd-title: 11.6cqw; }
    .wd-invitation .wd-cover .wd-kicker { font-size: max(9px,2.28cqw); letter-spacing: .12em; }
    .wd-invitation .wd-cover .wd-date { font-size: max(11px,2.75cqw); letter-spacing: .09em; }
    .wd-invitation .wd-names { margin: 3.8cqw 0; }
    .wd-fam-arch.wd-invitation .wd-media { left: 24%; right: auto; top: 5%; width: 52%; height: 43%; }
    .wd-fam-arch.wd-invitation .wd-ornament::before { left: 22%; right: auto; top: 3.4%; width: 56%; height: 46.4%; }
    .wd-fam-arch.wd-invitation .wd-panel { left: 6%; right: auto; top: 51%; bottom: 5%; width: 88%; }
    .wd-fam-arch.wd-invitation .wd-ornament i:first-child { left: 4.7%; top: 8%; width: 12%; }
    .wd-fam-arch.wd-invitation .wd-ornament i:nth-child(2) { left: auto; right: 4.7%; top: auto; bottom: 7%; width: 12%; }
    .wd-fam-arch.wd-v2.wd-invitation .wd-media { left: 19%; width: 62%; }
    .wd-fam-arch.wd-v2.wd-invitation .wd-ornament::before { left: 17%; width: 66%; }
    .wd-fam-arch.wd-v3.wd-invitation .wd-media { left: 10%; right: 0; width: 90%; height: 42%; top: 0; border-radius: 0 0 0 40%; }
    .wd-fam-arch.wd-v3.wd-invitation .wd-ornament::before { left: 7%; top: -1%; width: 95%; height: 46%; border-radius: 0 0 0 40%; }
    .wd-fam-arch.wd-v3.wd-invitation .wd-ornament i { display:none; }
    .wd-fam-gazette.wd-invitation .wd-cover { aspect-ratio: .95; --wd-title: 9.5cqw; }
    .wd-fam-gazette.wd-invitation .wd-media { top: 18%; bottom: 16%; }
    .wd-fam-gazette.wd-v3.wd-invitation .wd-media { top: 12%; bottom: 12%; }
    .wd-fam-post.wd-invitation .wd-cover { --wd-title: 10.7cqw; }
    .wd-fam-post.wd-invitation .wd-panel { width: 72%; padding: 3cqw 4cqw; }
    .wd-fam-post.wd-invitation .wd-names { margin: 2cqw 0; }
    .wd-fam-post.wd-invitation .wd-emblem { width: 13%; font-size: 3.8cqw; }
    .wd-fam-post.wd-v2.wd-invitation .wd-media { left: 9%; right: auto; top: 7%; width: 66%; height: 43%; bottom: auto; }
    .wd-fam-post.wd-v2.wd-invitation .wd-panel { left: 12%; right: auto; bottom: 9%; width: 76%; }
    .wd-fam-post.wd-v2.wd-invitation .wd-emblem { right: 8%; top: 12%; }
    .wd-fam-post.wd-v3.wd-invitation .wd-media { top: 8%; right: 12%; left: auto; width: 49%; height: 41%; bottom: auto; }
    .wd-fam-post.wd-v3.wd-invitation .wd-panel { left: 7%; bottom: 10%; width: 79%; }
    .wd-fam-post.wd-v3.wd-invitation .wd-emblem { top: 34%; right: 9%; }
    .wd-fam-botany.wd-invitation .wd-cover { aspect-ratio: .93; --wd-title: 9.15cqw; }
    .wd-fam-botany.wd-invitation .wd-ornament::before { inset-block: 5%; }
    .wd-fam-botany.wd-v2.wd-invitation .wd-media { top: 15%; bottom: 15%; }
    .wd-fam-botany.wd-v2.wd-invitation .wd-ornament::before { top: 12%; bottom: 12%; }
    .wd-fam-botany.wd-v3.wd-invitation .wd-media { width: 38%; right: 5%; top: 16%; bottom: 16%; }
    .wd-fam-film.wd-invitation .wd-cover { --wd-title: 14.8cqw; }
    .wd-fam-film.wd-invitation .wd-panel { width: 78%; left: 9%; }
    .wd-fam-film.wd-v2.wd-invitation .wd-panel { width: 84%; left: 8%; }
    .wd-fam-film.wd-v3.wd-invitation .wd-panel { width: 79%; left: auto; right: 8%; }
    .wd-fam-film.wd-v1.wd-invitation .wd-media::after { background:linear-gradient(0deg,#14100de0 0,#15100b91 53%,#19120c10 100%); }
    .wd-fam-film.wd-v3.wd-invitation .wd-media::after { background:linear-gradient(270deg,#0e222bd1 0%,#17282f85 60%,#10212615 100%); }
    .wd-fam-shape.wd-invitation .wd-cover { --wd-title: 12.5cqw; }
    .wd-fam-shape.wd-invitation .wd-panel { left: 8%; top: 22%; bottom: 13%; width: 67%; }
    .wd-fam-shape.wd-invitation .wd-ornament i:first-child { top: -13%; right: -30%; width: 85%; }
    .wd-fam-shape.wd-v2.wd-invitation .wd-panel { left: auto; right: 6%; top: 30%; width: 59%; }
    .wd-fam-shape.wd-v2.wd-invitation .wd-ornament i:first-child { left: -40%; top: -10%; right: auto; width: 74%; }
    .wd-fam-shape.wd-v3.wd-invitation .wd-ornament i:first-child { width: 80%; height: 56%; top: 0; right: -40%; }
    .wd-fam-shape.wd-invitation .wd-personal .wd-media { top: 5%; right: 6%; width: 28%; height: 24%; }
    .wd-fam-shape.wd-v2.wd-invitation .wd-personal .wd-media { left: 7%; right: auto; }
    .wd-fam-crest.wd-invitation .wd-cover { --wd-title: 12cqw; }
    .wd-fam-crest.wd-invitation .wd-panel { left: 11%; top: 30%; bottom: 12%; width: 78%; }
    .wd-fam-crest.wd-invitation .wd-names { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: .06em; }
    .wd-fam-crest.wd-invitation .wd-emblem { left: 39%; width: 22%; height: 15%; top: 11.5%; font-size: 4.5cqw; }
    .wd-fam-crest.wd-invitation .wd-media { left: 37.5%; width: 25%; height: 20%; }
    .wd-fam-crest.wd-v3.wd-invitation .wd-emblem { top: 13%; left: 43%; width: 14%; height: auto; }
    .wd-fam-letter.wd-invitation .wd-cover { --wd-title: 11cqw; }
    .wd-fam-letter.wd-invitation .wd-panel { left: 17%; width: 66%; }
    .wd-fam-letter.wd-invitation .wd-emblem { width: 16%; bottom: 12%; font-size: 4.2cqw; }
    .wd-fam-letter.wd-invitation .wd-with-image .wd-media { top: 13%; right: 18%; width: 20%; height: 20%; }
    .wd-fam-letter.wd-invitation .wd-with-image .wd-panel { left: 18%; top: 31.5%; width: 63%; bottom: 15%; }
    .wd-fam-orbit.wd-invitation .wd-cover { --wd-title: 12.7cqw; }
    .wd-fam-orbit.wd-invitation .wd-panel { top: 30%; bottom: 8%; left: 5%; width: 70%; }
    .wd-fam-orbit.wd-invitation .wd-ornament i:first-child { top: -2%; left: 41%; width: 87%; }
    .wd-fam-orbit.wd-invitation .wd-ornament i:nth-child(2) { top: 22%; left: 63%; width: 65%; }
    .wd-fam-orbit.wd-invitation .wd-ornament i:nth-child(3) { top: 13%; right: 20%; width: 23%; }
    .wd-fam-orbit.wd-invitation .wd-media { top: 8%; right: 12%; width: 29%; }
    .wd-fam-orbit.wd-v2.wd-invitation .wd-panel { left: auto; right: 5.5%; top: 32%; width: 54%; }
    .wd-fam-orbit.wd-v2.wd-invitation .wd-ornament i:first-child { left: -25%; top: 12%; width: 66%; }
    .wd-fam-orbit.wd-v2.wd-invitation .wd-ornament i:nth-child(2) { left: 0; top: 42%; width: 39%; height: 57%; }
    .wd-fam-orbit.wd-v2.wd-invitation .wd-ornament i:nth-child(3) { top: 8%; left: 37%; width: 13%; }
    .wd-fam-orbit.wd-v3.wd-invitation .wd-ornament i:first-child { left: 47%; top: 0; height: 58%; width: 41%; }
    .wd-fam-orbit.wd-v3.wd-invitation .wd-ornament i:nth-child(2) { left: 58%; top: 9%; height: 63%; width: 39%; }
    .wd-fam-orbit.wd-v3.wd-invitation .wd-ornament i:nth-child(3) { right: 23%; top: 31%; width: 12%; }
    .wd-fam-calendar.wd-invitation .wd-cover { --wd-title: 9.5cqw; }
    .wd-fam-calendar.wd-invitation .wd-panel { left: 7%; right: auto; top: 7%; width: 86%; bottom: auto; align-items: flex-start; }
    .wd-fam-calendar.wd-invitation .wd-names { flex-flow: row wrap; gap: .13em; align-items: baseline; margin: 2.7cqw 0; }
    .wd-fam-calendar.wd-invitation .wd-and { margin: 0; }
    .wd-fam-calendar.wd-invitation .wd-month-sheet { left: 13%; right: auto; top: 40%; width: 74%; }
    .wd-fam-calendar.wd-invitation .wd-month-name { font-size: 9cqw; margin-bottom: 2cqw; }
    .wd-fam-calendar.wd-invitation .wd-month-grid { gap: .5cqw; }
    .wd-fam-calendar.wd-invitation .wd-month-grid span { font-size: 3.5cqw; }
    .wd-fam-calendar.wd-invitation .wd-month-grid .wd-weekday { font-size: 2.45cqw; }
    .wd-fam-calendar.wd-invitation .wd-emblem { left: 24%; right: auto; top: 52%; width: 52%; height: 26%; }
    .wd-fam-calendar.wd-v1.wd-invitation .wd-ornament { background: linear-gradient(0deg,var(--wd-tint) 65%,transparent 65%); }
    .wd-fam-calendar.wd-v3.wd-invitation .wd-ornament { background: linear-gradient(0deg,transparent 66%,var(--wd-tint) 66%); }
    .wd-fam-calendar.wd-v3.wd-invitation .wd-month-grid { gap: 0; }
    .wd-fam-album.wd-invitation .wd-cover { --wd-title: 11.7cqw; }
    .wd-fam-album.wd-invitation .wd-media { left: 22%; right: auto; top: 6%; width: 56%; height: 43%; padding: 1.8cqw 1.8cqw 5cqw; }
    .wd-fam-album.wd-invitation .wd-ornament i:first-child { width: 53%; height: 41%; left: 22%; top: 9%; }
    .wd-fam-album.wd-invitation .wd-panel { left: 6%; right: auto; width: 88%; top: 53%; bottom: 6%; }
    .wd-fam-album.wd-invitation .wd-ornament i:nth-child(2) { bottom: 3.5%; }
    .wd-fam-album.wd-v2.wd-invitation .wd-media { left: auto; right: 10%; top: 5%; width: 64%; height: 43%; padding: 2.2cqw 1.6cqw; }
    .wd-fam-album.wd-v2.wd-invitation .wd-panel { left: 10%; width: 80%; }
    .wd-fam-album.wd-v3.wd-invitation .wd-media { width: 62%; left: 20%; padding: 2.8cqw; }
    .wd-fam-table.wd-invitation .wd-cover { --wd-title: 11.2cqw; }
    .wd-fam-table.wd-invitation .wd-panel { top: 34%; bottom: 6%; left: 8%; right: auto; width: 84%; padding: 4cqw; }
    .wd-fam-table.wd-invitation .wd-media { left: auto; right: 16%; top: 4%; width: 35%; height: 34%; }
    .wd-fam-table.wd-v2.wd-invitation .wd-media { right: auto; left: 13%; top: 4%; width: 36%; height: 31%; }
    .wd-fam-table.wd-v2.wd-invitation .wd-panel { top: 36%; bottom: 8%; }
    .wd-fam-table.wd-v3.wd-invitation .wd-media { right: 16%; height: 33%; }
    .wd-fam-table.wd-v3.wd-invitation .wd-panel { top: 35%; bottom: 6%; }
}

/* Honor multiword and unusually long personal names without clipping the invitation. */
.wd-invitation .wd-cover.wd-extended { display: flow-root; aspect-ratio: auto; min-height: 34cqw; }
.wd-invitation .wd-cover.wd-extended .wd-panel { position: relative; inset: auto; width: 75%; height: auto; min-height: 20cqw; margin: 12% auto; padding: 4cqw; align-items: center; background: var(--wd-paper); color: var(--wd-ink); text-align: center; transform: none; }
.wd-invitation .wd-extended .wd-names { display: flex; flex-flow: column nowrap; align-items: center; --wd-title: 7.5cqw; }
.wd-invitation .wd-extended .wd-and { position: static; align-self: center; }
.wd-fam-calendar.wd-invitation .wd-cover.wd-extended .wd-panel { width: 48%; margin-left: 2%; }
.wd-fam-calendar.wd-v2.wd-invitation .wd-cover.wd-extended .wd-panel { margin-left: 50%; }
@container wd-cover (max-width: 620px) {
    .wd-invitation .wd-cover.wd-extended { min-height: 105cqw; }
    .wd-invitation .wd-cover.wd-extended .wd-panel { width: 86%; margin: 18% auto; padding: 7cqw 4cqw; }
    .wd-fam-calendar.wd-invitation .wd-cover.wd-extended .wd-panel { width: 85%; margin: 4% auto 85%; }
    .wd-fam-calendar.wd-invitation .wd-cover.wd-extended .wd-month-sheet { top: auto; bottom: 6%; }
}
@media (max-width: 580px) {
    .wd-reply { display: grid; justify-items: start; }
    .wd-program li { column-gap: .7em; }
}
@media print {
    .wd-template { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .wd-invitation .wd-cover-host, .wd-details section, .wd-details .wd-info-grid { break-inside: avoid; }
    .wd-details .wd-text-link, .wd-details .wd-reply { display: none; }
    .wd-invitation .wd-details { padding: 24px 12px; }
}
