/*
 * InVie Theme 07 / Rose Fashion Editorial
 * Native Theme System v2 presentation. No legacy stylesheet or runtime is used.
 */

:root {
    scrollbar-gutter: stable;
}

html:has(body.theme-thm07) {
    background: #f6f1ed;
    scroll-behavior: smooth;
}

body.theme-thm07 {
    --thm07-bone: #f6f1ed;
    --thm07-paper: #fffaf7;
    --thm07-ink: #181318;
    --thm07-oxblood: #5b1f37;
    --thm07-rose: #b63667;
    --thm07-rose-muted: #c9a3b1;
    --thm07-rule: #cdbfc4;
    --thm07-muted: #71656a;
    /* The couple's own fonts (custom font add-on) take over when set; see x-theme-custom-fonts. */
    --thm07-serif: var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif;
    --thm07-sans: var(--invie-font-body, "Montserrat"), system-ui, sans-serif;
    --thm07-gutter: clamp(1.25rem, 4.4vw, 5.5rem);
    --thm07-section-y: clamp(5rem, 10vw, 9.5rem);
    --thm07-content: 88rem;
    --theme-focus: #0b62c4;
    min-width: 0;
    margin: 0;
    background: var(--thm07-bone);
    color: var(--thm07-ink);
    font-family: var(--thm07-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: clip;
    overflow-wrap: normal;
}

body.theme-thm07:not([data-theme-state="open"]) {
    height: 100dvh;
    overflow: hidden;
}

/* A heading not yet fitted (text-fit runs as it scrolls into view) cannot widen a
   phone or tablet page: behind the cover that zoomed the cover out and pushed the
   open button below the screen. */
.theme-thm07 .thm07-section,
.theme-thm07 .thm07-closing {
    overflow-x: clip;
}

body.theme-thm07[data-theme-state="open"] {
    min-height: 100%;
    overflow-y: auto;
}

body.theme-thm07 *,
body.theme-thm07 *::before,
body.theme-thm07 *::after {
    box-sizing: border-box;
}

body.theme-thm07 :where(h1, h2, h3, p, figure, blockquote, address, ul, ol, dl, dd) {
    margin: 0;
}

body.theme-thm07 :where(ul, ol) {
    padding: 0;
}

body.theme-thm07 a {
    color: inherit;
    text-decoration: none;
}

body.theme-thm07 button,
body.theme-thm07 input,
body.theme-thm07 select,
body.theme-thm07 textarea {
    border: 0;
    border-radius: 0;
    font: inherit;
}

body.theme-thm07 button,
body.theme-thm07 select {
    cursor: pointer;
}

body.theme-thm07 img,
body.theme-thm07 video,
body.theme-thm07 iframe {
    display: block;
    max-width: 100%;
}

body.theme-thm07 address {
    font-style: normal;
}

body.theme-thm07 ::selection {
    background: var(--thm07-rose);
    color: #fff;
}

.theme-thm07 .thm07-page,
.theme-thm07 .thm07-invitation {
    min-width: 0;
    width: 100%;
}

.theme-thm07 .thm07-page,
.theme-thm07 .thm07-invitation {
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-invitation {
    position: relative;
    z-index: 1;
    color: var(--thm07-ink);
    opacity: 1;
    visibility: visible;
}

/* Main content is fully composed before opening. The cover masks it while it is inert. */
.theme-thm07 [data-theme-content][aria-hidden="true"] {
    visibility: visible;
}

.theme-thm07 [data-theme-section]:not([data-theme-section="cover"]) {
    contain: none;
    content-visibility: visible;
}

.theme-thm07 .thm07-section {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: var(--thm07-section-y) var(--thm07-gutter);
    scroll-margin-top: 1rem;
}

.theme-thm07 .thm07-section > * {
    width: min(100%, var(--thm07-content));
    margin-inline: auto;
}

.theme-thm07 .thm07-kicker {
    color: var(--thm07-rose);
    font-family: var(--thm07-sans);
    font-size: clamp(0.75rem, 0.62rem + 0.14vw, 0.8125rem);
    font-weight: 650;
    letter-spacing: 0.16em;
    line-height: 1.45;
    text-transform: uppercase;
}

.theme-thm07 :where(.thm07-heading h2, .thm07-profile h3, .thm07-event h3,
    .thm07-rsvp h2, .thm07-gift h2, .thm07-closing h2) {
    font-family: var(--thm07-serif);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.theme-thm07 .thm07-heading h2 {
    max-width: 12ch;
    margin-top: 0.85rem;
    font-size: clamp(3rem, 6.5vw, 7rem);
}

.theme-thm07 .thm07-heading--spread {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 5vw, 4.75rem);
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-heading--spread > p,
.theme-thm07 .thm07-couple__intro,
.theme-thm07 .thm07-gallery__heading > p,
.theme-thm07 .thm07-events__heading > p {
    max-width: 38rem;
    color: var(--thm07-muted);
    font-size: clamp(0.98rem, 1.2vw, 1.16rem);
    line-height: 1.85;
}

.theme-thm07 .thm07-couple__intro {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.theme-thm07 .thm07-couple__intro > p {
    margin: 0;
}

.theme-thm07 .thm07-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--thm07-ink);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-thm07 .thm07-button--solid {
    border-color: var(--thm07-rose);
    background: var(--thm07-rose);
    color: #fff;
}

.theme-thm07 .thm07-button--solid:hover {
    border-color: var(--thm07-oxblood);
    background: var(--thm07-oxblood);
}

.theme-thm07 .thm07-button--light {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.theme-thm07 .thm07-button--light:hover {
    border-color: #fff;
    background: #fff;
    color: var(--thm07-oxblood);
}

.theme-thm07 .thm07-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid currentColor;
    color: var(--thm07-oxblood);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-text-link--light {
    color: #fff;
}

/* Cover */
.theme-thm07 .thm07-cover {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    min-width: 0;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.25fr) minmax(25rem, 0.75fr);
    overflow: hidden;
    background: var(--thm07-ink);
    color: var(--thm07-ink);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 920ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0s;
    visibility: visible;
    will-change: transform;
}

.theme-thm07[data-theme-state="open"] .thm07-cover {
    transform: translate3d(0, -105%, 0);
    transition-delay: 0s, 940ms;
    visibility: hidden;
}

.theme-thm07 .thm07-cover__media {
    position: relative;
    min-width: 0;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--thm07-ink);
}

.theme-thm07 .thm07-cover__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 19, 24, 0.16), transparent 48%, rgba(24, 19, 24, 0.22));
    content: "";
    pointer-events: none;
}

.theme-thm07 .thm07-cover__media img {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.08) sepia(0.05);
}

.theme-thm07 .thm07-cover__copy {
    z-index: 2;
    display: grid;
    min-width: 0;
    grid-template-rows: auto 1fr auto;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 4.5vw, 5rem) clamp(1.5rem, 4vh, 3.5rem);
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-cover__masthead {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--thm07-rule);
    color: var(--thm07-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.17em;
}

.theme-thm07 .thm07-cover__title-block {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.theme-thm07 .thm07-cover h1 {
    display: grid;
    width: min(100%, 8.5ch);
    min-width: 0;
    margin-top: clamp(1rem, 2.6vh, 2rem);
    font-family: var(--thm07-serif);
    font-size: clamp(4rem, 7.3vw, 8.75rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.74;
}

.theme-thm07 .thm07-cover h1 span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-cover h1 i {
    margin-block: 0.12em 0.05em;
    color: var(--thm07-rose);
    font-size: 0.54em;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.theme-thm07 .thm07-cover--names-long h1 {
    font-size: clamp(3.2rem, 5.9vw, 6.8rem);
    line-height: 0.82;
}

.theme-thm07 .thm07-cover--names-xlong h1 {
    font-size: clamp(2.55rem, 4.7vw, 5.4rem);
    line-height: 0.88;
}

.theme-thm07 .thm07-cover__title-block time {
    margin-top: clamp(1.6rem, 3vh, 2.6rem);
    padding-top: 0.65rem;
    border-top: 1px solid var(--thm07-ink);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-cover__invitation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: end;
}

.theme-thm07 .thm07-cover__guest {
    min-width: 0;
    padding-left: 0.85rem;
    border-left: 2px solid var(--thm07-rose);
}

.theme-thm07 .thm07-cover__guest span,
.theme-thm07 .thm07-cover__guest strong {
    display: block;
}

.theme-thm07 .thm07-cover__guest span {
    color: var(--thm07-muted);
    font-size: 0.75rem;
}

.theme-thm07 .thm07-cover__guest strong {
    margin-top: 0.15rem;
    font-family: var(--thm07-serif);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: break-word;
}

/* Intro */
.theme-thm07 .thm07-intro {
    padding-top: 0;
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-nav {
    display: grid;
    min-height: 5.25rem;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-nav__brand {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.2em;
}

.theme-thm07 .thm07-nav__brand strong {
    display: grid;
    width: 2rem;
    aspect-ratio: 1;
    place-items: center;
    background: var(--thm07-rose);
    color: #fff;
    font-size: 0.75rem;
}

.theme-thm07 .thm07-nav__links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(0.8rem, 2.2vw, 2.3rem);
}

.theme-thm07 .thm07-nav__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--thm07-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-nav__links a:hover {
    color: var(--thm07-rose);
}

.theme-thm07 .thm07-intro__editorial {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: end;
    padding-block: clamp(5rem, 10vw, 9rem);
}

.theme-thm07 .thm07-intro__heading {
    grid-column: 1 / span 5;
}

.theme-thm07 .thm07-intro__heading h2 {
    max-width: 8ch;
    margin-top: 0.8rem;
    font-family: var(--thm07-serif);
    font-size: clamp(4rem, 8vw, 8.5rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.82;
}

.theme-thm07 .thm07-intro__statement {
    grid-column: 6 / span 4;
    max-width: 33rem;
    color: var(--thm07-muted);
    font-family: var(--thm07-serif);
    font-size: clamp(1.4rem, 2.3vw, 2.15rem);
    font-weight: 500;
    line-height: 1.28;
}

.theme-thm07 .thm07-intro__date-card {
    grid-column: 10 / -1;
    padding: clamp(1.4rem, 2.7vw, 2.4rem);
    background: var(--thm07-rose);
    color: #fff;
}

.theme-thm07 .thm07-intro__date-card > span {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-intro__date-card time {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 1.25rem;
    align-items: end;
}

.theme-thm07 .thm07-intro__date-card time strong {
    grid-row: span 2;
    padding-right: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.48);
    font-family: var(--thm07-serif);
    font-size: clamp(3.7rem, 5.5vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.72;
}

.theme-thm07 .thm07-intro__date-card time span,
.theme-thm07 .thm07-intro__date-card time small {
    min-width: 0;
    padding-left: 0.85rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    /* Tabular figures widen the day; at 200% text the month may wrap instead of overflowing. */
    overflow-wrap: anywhere;
}

.theme-thm07 .thm07-intro__date-card p {
    margin-top: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.55;
}

.theme-thm07 .thm07-countdown {
    display: grid;
    grid-template-columns: minmax(13rem, 1.45fr) repeat(4, minmax(6rem, 0.65fr));
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-countdown > * {
    min-width: 0;
    padding: clamp(1.25rem, 2.6vw, 2.3rem);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-thm07 .thm07-countdown > :last-child {
    border-right: 0;
}

.theme-thm07 .thm07-countdown .thm07-kicker {
    display: flex;
    align-items: center;
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-countdown div {
    display: grid;
    place-items: center;
}

.theme-thm07 .thm07-countdown strong {
    font-family: var(--thm07-serif);
    font-size: clamp(2.5rem, 4.4vw, 4.8rem);
    font-weight: 600;
    line-height: 0.8;
}

.theme-thm07 .thm07-countdown div span {
    margin-top: 0.75rem;
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Couple */
.theme-thm07 .thm07-couple {
    background: var(--thm07-paper);
}

.theme-thm07 .thm07-couple__profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 5vw, 5.5rem);
    padding-top: clamp(3rem, 6vw, 5.5rem);
}

.theme-thm07 .thm07-profile {
    display: grid;
    min-width: 0;
    grid-template-rows: auto 1fr;
    align-content: start;
}

.theme-thm07 .thm07-profile__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--thm07-oxblood);
}

.theme-thm07 .thm07-profile__media::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    content: "";
    pointer-events: none;
}

.theme-thm07 .thm07-profile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.74) contrast(1.05);
}

.theme-thm07 .thm07-profile__monogram {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--thm07-rose-muted);
    font-family: var(--thm07-serif);
    font-size: clamp(7rem, 18vw, 15rem);
    font-weight: 600;
}

.theme-thm07 .thm07-profile__copy {
    display: grid;
    min-width: 0;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
    border-top: 1px solid var(--thm07-ink);
}

.theme-thm07 .thm07-profile__copy h3 {
    max-width: 15ch;
    font-size: clamp(2.55rem, 5vw, 5.3rem);
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-profile--name-medium .thm07-profile__copy h3 {
    font-size: clamp(2.25rem, 4.3vw, 4.6rem);
}

.theme-thm07 .thm07-profile--name-long .thm07-profile__copy h3 {
    font-size: clamp(1.9rem, 3.7vw, 3.9rem);
    line-height: 1.02;
}

.theme-thm07 .thm07-profile--name-xlong .thm07-profile__copy h3 {
    font-size: clamp(1.65rem, 3.1vw, 3.25rem);
    line-height: 1.08;
}

.theme-thm07 .thm07-profile__copy > p:not(.thm07-kicker) {
    max-width: 35rem;
    color: var(--thm07-muted);
    font-size: clamp(0.9rem, 1.1vw, 1.02rem);
}

/* Events */
.theme-thm07 .thm07-events {
    background: var(--thm07-oxblood);
    color: #fff;
}

.theme-thm07 .thm07-events__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 5vw, 4.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.theme-thm07 .thm07-events__heading > div {
    min-width: 0;
}

.theme-thm07 .thm07-events__heading .thm07-kicker {
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-events__heading h2 {
    max-width: 11ch;
    margin-top: 0.85rem;
    font-family: var(--thm07-serif);
    font-size: clamp(3.2rem, 7vw, 7.4rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

.theme-thm07 .thm07-events__heading > p {
    color: rgba(255, 255, 255, 0.72);
}

.theme-thm07 .thm07-events__ledger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.theme-thm07 .thm07-event {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(5rem, 0.42fr) minmax(9rem, 0.7fr) minmax(18rem, 1.6fr);
    border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.theme-thm07 .thm07-event:first-child {
    border-top: 0;
}

.theme-thm07 .thm07-event > * {
    min-width: 0;
    padding: clamp(1.5rem, 3.5vw, 3.75rem);
    border-right: 1px solid rgba(255, 255, 255, 0.26);
}

.theme-thm07 .thm07-event > :last-child {
    border-right: 0;
}

.theme-thm07 .thm07-event__index {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-event__index span {
    font-family: var(--thm07-serif);
    font-size: clamp(3.3rem, 6vw, 6.8rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.72;
}

.theme-thm07 .thm07-event__index small {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
}

.theme-thm07 .thm07-event__date time {
    display: grid;
    align-content: start;
}

.theme-thm07 .thm07-event__date span,
.theme-thm07 .thm07-event__date small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.13em;
}

.theme-thm07 .thm07-event__date strong {
    margin-block: 0.7rem;
    font-family: var(--thm07-serif);
    font-size: clamp(4.5rem, 8vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 0.67;
}

.theme-thm07 .thm07-event__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.theme-thm07 .thm07-event__copy .thm07-kicker {
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-event__copy h3 {
    max-width: 14ch;
    margin-block: 0.65rem 1.2rem;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-event__copy > time {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-event__copy > strong {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.theme-thm07 .thm07-event__copy address {
    max-width: 43rem;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.theme-thm07 .thm07-event__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    margin-top: 1.6rem;
}

.theme-thm07 .thm07-event__map {
    grid-column: 1 / -1;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    border-right: 0;
}

.theme-thm07 .thm07-event__map summary {
    min-height: 52px;
    padding: 1rem clamp(1.5rem, 3.5vw, 3.75rem);
    color: var(--thm07-rose-muted);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
}

.theme-thm07 .thm07-event__map iframe {
    width: 100%;
    height: min(31rem, 55vw);
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

/* Dress notes */
.theme-thm07 .thm07-dresscode {
    display: grid;
    grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: center;
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-dresscode > * {
    width: 100%;
    max-width: none;
}

.theme-thm07 .thm07-dresscode__copy h2 {
    max-width: 9ch;
    margin-block: 0.9rem 1.5rem;
    font-family: var(--thm07-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.94;
}

.theme-thm07 .thm07-dresscode__copy > p:not(.thm07-kicker) {
    max-width: 33rem;
    color: var(--thm07-muted);
}

.theme-thm07 .thm07-dresscode__copy small {
    display: block;
    margin-top: 1rem;
    color: var(--thm07-muted);
    font-size: 0.75rem;
}

.theme-thm07 .thm07-dresscode__palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--thm07-rule);
    list-style: none;
}

.theme-thm07 .thm07-dresscode__swatch {
    min-width: 0;
    padding: 0.75rem;
    border-right: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-dresscode__swatch:last-child {
    border-right: 0;
}

.theme-thm07 .thm07-dresscode__swatch > span {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 0.8rem;
    background: var(--thm07-swatch);
}

.theme-thm07 .thm07-dresscode__swatch strong,
.theme-thm07 .thm07-dresscode__swatch small {
    display: block;
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-dresscode__swatch strong {
    font-family: var(--thm07-serif);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.1;
}

.theme-thm07 .thm07-dresscode__swatch small {
    margin-top: 0.35rem;
    color: var(--thm07-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* Livestream access pass */
.theme-thm07 .thm07-livestream {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 0;
    padding: 0 var(--thm07-gutter);
    background: var(--thm07-rose);
    color: #fff;
}

.theme-thm07 .thm07-livestream > * {
    width: 100%;
    max-width: none;
    margin: 0;
}

.theme-thm07 .thm07-livestream__headline {
    display: grid;
    min-width: 0;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(3rem, 7vw, 6.5rem) 0;
}

.theme-thm07 .thm07-livestream__headline > span {
    font-family: var(--thm07-serif);
    font-size: clamp(4.5rem, 9vw, 9rem);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 0.58;
}

.theme-thm07 .thm07-livestream__headline .thm07-kicker {
    color: var(--thm07-paper);
}

.theme-thm07 .thm07-livestream__headline h2 {
    max-width: 11ch;
    margin-block: 0.7rem 1rem;
    font-family: var(--thm07-serif);
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.theme-thm07 .thm07-livestream__headline p:last-child {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.94);
}

.theme-thm07 .thm07-livestream__access {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2.5rem, 6vw, 6rem);
    border-inline: 1px solid rgba(255, 255, 255, 0.35);
    background: var(--thm07-oxblood);
}

.theme-thm07 .thm07-livestream__access dl {
    width: 100%;
    margin-bottom: 1.5rem;
}

.theme-thm07 .thm07-livestream__access dl > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding-block: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.theme-thm07 .thm07-livestream__access dt {
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-livestream__access dd {
    font-weight: 650;
    overflow-wrap: anywhere;
}

.theme-thm07 .thm07-livestream__access > p {
    color: rgba(255, 255, 255, 0.76);
}

/* Pull quote */
.theme-thm07 .thm07-quote {
    display: grid;
    min-height: min(48rem, 85vh);
    grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1.68fr);
    align-items: stretch;
    padding: 0;
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-quote > * {
    width: 100%;
    max-width: none;
    margin: 0;
}

.theme-thm07 .thm07-quote__folio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 4.5rem);
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    writing-mode: vertical-rl;
}

.theme-thm07 .thm07-quote blockquote {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(3rem, 8vw, 8.5rem);
}

.theme-thm07 .thm07-quote__mark {
    position: absolute;
    top: clamp(1rem, 3vw, 3rem);
    right: clamp(1rem, 4vw, 4rem);
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: clamp(8rem, 20vw, 20rem);
    line-height: 0.8;
    opacity: 0.5;
}

.theme-thm07 .thm07-quote blockquote p {
    position: relative;
    z-index: 1;
    max-width: 22ch;
    font-family: var(--thm07-serif);
    font-size: clamp(2.7rem, 6.5vw, 7.2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.theme-thm07 .thm07-quote cite {
    margin-top: clamp(1.5rem, 3vw, 2.8rem);
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Story feature spreads */
.theme-thm07 .thm07-story {
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-story__features {
    padding-top: clamp(3rem, 6vw, 5.5rem);
}

.theme-thm07 .thm07-story-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(4.5rem, 0.22fr) minmax(0, 1.12fr) minmax(18rem, 0.66fr);
    border-top: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-story-card:last-child {
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-story-card:nth-child(even) {
    grid-template-columns: minmax(4.5rem, 0.22fr) minmax(18rem, 0.66fr) minmax(0, 1.12fr);
}

.theme-thm07 .thm07-story-card:nth-child(even) .thm07-story-card__media {
    grid-column: 3;
}

.theme-thm07 .thm07-story-card:nth-child(even) .thm07-story-card__copy {
    grid-column: 2;
    grid-row: 1;
}

.theme-thm07 .thm07-story-card__meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(0.75rem, 1.5vw, 1.5rem);
    border-right: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-story-card__meta span {
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.8;
}

.theme-thm07 .thm07-story-card__meta :where(time, small) {
    color: var(--thm07-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    line-height: 1.45;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.theme-thm07 .thm07-story-card__media {
    position: relative;
    min-width: 0;
    height: clamp(23rem, 35vw, 30rem);
    min-height: 0;
    overflow: hidden;
}

.theme-thm07 .thm07-story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.04);
}

.theme-thm07 .thm07-story-card__media figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.5rem;
    background: rgba(24, 19, 24, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.theme-thm07 .thm07-story-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2rem, 5vw, 5.5rem);
}

.theme-thm07 .thm07-story-card__copy h3 {
    max-width: 12ch;
    margin-block: 0.7rem 1.25rem;
    font-family: var(--thm07-serif);
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.96;
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-story-card__copy > p:last-child {
    max-width: 37rem;
    color: var(--thm07-muted);
    white-space: pre-line;
}

.theme-thm07 .thm07-story-card--text-only {
    grid-template-columns: minmax(4.5rem, 0.22fr) minmax(0, 1fr);
}

.theme-thm07 .thm07-story-card--text-only .thm07-story-card__copy {
    grid-column: 2;
    min-height: 23rem;
}

/* Gallery contact sheet */
/* Rows come from the shared gallery layout in theme-system.css; the couple's
   column choice caps a row. */
.theme-thm07 .thm07-gallery {
    --theme-gallery-gap: clamp(0.45rem, 0.8vw, 0.8rem);
    background: var(--thm07-paper);
}

.theme-thm07 .thm07-gallery__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 5vw, 4.75rem);
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-gallery__heading h2 {
    max-width: 10ch;
    margin-top: 0.85rem;
    font-family: var(--thm07-serif);
    font-size: clamp(3.1rem, 7vw, 7.3rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.theme-thm07 .thm07-gallery__grid {
    padding-top: clamp(2rem, 4vw, 4rem);
}

.theme-thm07 .thm07-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.04);
    transition: filter 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-thm07 .thm07-gallery__item:hover img,
.theme-thm07 .thm07-gallery__item:focus-visible img {
    filter: saturate(1) contrast(1.02);
    transform: scale(1.025);
}

.theme-thm07 .thm07-gallery__item > span {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.3rem 0.45rem;
    background: rgba(24, 19, 24, 0.78);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.theme-thm07 .thm07-gallery-dialog {
    width: min(92vw, 76rem);
    max-width: none;
    height: min(92dvh, 60rem);
    max-height: 92dvh;
    padding: 0;
    border: 0;
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-gallery-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.theme-thm07 .thm07-gallery-dialog::backdrop {
    background: rgba(11, 8, 11, 0.86);
    backdrop-filter: blur(5px);
}

.theme-thm07 .thm07-gallery-dialog[data-gallery-fallback] {
    box-shadow: 0 0 0 100vmax rgba(11, 8, 11, 0.86);
}

.theme-thm07 .thm07-gallery-dialog__bar,
.theme-thm07 .thm07-gallery-dialog__controls {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-thm07 .thm07-gallery-dialog__bar p {
    padding-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-gallery-dialog button {
    min-width: 44px;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    background: transparent;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-gallery-dialog__bar button {
    font-size: 1.6rem;
    line-height: 1;
}

.theme-thm07 .thm07-gallery-dialog figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    place-items: center;
    padding: 1rem;
}

.theme-thm07 .thm07-gallery-dialog figure img {
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-thm07 .thm07-gallery-dialog__controls {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
}

.theme-thm07 .thm07-gallery-dialog__controls > span {
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* Shared forms */
.theme-thm07 .thm07-form {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem clamp(1.5rem, 3vw, 3rem);
}

.theme-thm07 .thm07-field {
    display: grid;
    min-width: 0;
    gap: 0.55rem;
}

.theme-thm07 .thm07-field--wide {
    grid-column: 1 / -1;
}

.theme-thm07 .thm07-field label {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-field :where(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.7rem 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: inherit;
    outline: 0;
}

.theme-thm07 .thm07-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.theme-thm07 .thm07-field :where(input, select, textarea)::placeholder {
    color: currentColor;
    opacity: 0.5;
}

.theme-thm07 .thm07-field :where(input, select, textarea):focus {
    border-bottom-color: var(--thm07-rose);
    box-shadow: 0 2px 0 var(--thm07-rose);
}

.theme-thm07 .thm07-form__status {
    min-height: 1.5rem;
    font-size: 0.78rem;
}

.theme-thm07 .thm07-form__status[data-status="error"] {
    color: #ffd0d0;
}

/* RSVP */
.theme-thm07 .thm07-rsvp {
    display: grid;
    grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 8rem);
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-rsvp > * {
    width: 100%;
    max-width: none;
}

.theme-thm07 .thm07-rsvp__intro {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.theme-thm07 .thm07-rsvp__intro .thm07-kicker {
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-rsvp__intro h2 {
    max-width: 8ch;
    margin-block: 1rem 1.5rem;
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-rsvp__intro > p:not(.thm07-kicker) {
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.72);
}

.theme-thm07 .thm07-rsvp__intro > small {
    margin-top: 1.2rem;
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-rsvp__letters {
    margin-top: auto;
    padding-top: 3rem;
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.55;
}

.theme-thm07 .thm07-rsvp__form {
    padding: clamp(2rem, 5vw, 5rem);
    background: var(--thm07-bone);
    color: var(--thm07-ink);
}

.theme-thm07 .thm07-rsvp__form .thm07-form__status[data-status="error"] {
    color: #a31e36;
}

/* Wishes */
.theme-thm07 .thm07-wishes {
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-wishes__featured {
    display: grid;
    grid-auto-columns: minmax(min(80vw, 25rem), 0.55fr);
    grid-auto-flow: column;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--thm07-rose) var(--thm07-rule);
    scroll-snap-type: inline mandatory;
}

.theme-thm07 .thm07-wish-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 20rem;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border: 1px solid var(--thm07-rule);
    background: var(--thm07-paper);
    scroll-snap-align: start;
}

.theme-thm07 .thm07-wish-card__index {
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 0.8;
}

.theme-thm07 .thm07-wish-card blockquote {
    margin-block: 1.5rem;
    font-family: var(--thm07-serif);
    font-size: clamp(1.5rem, 2.7vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
}

.theme-thm07 .thm07-wish-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.theme-thm07 .thm07-wish-card figcaption > img,
.theme-thm07 .thm07-wish-card__initial {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    object-fit: cover;
    background: var(--thm07-oxblood);
    color: #fff;
    font-family: var(--thm07-serif);
    font-size: 1.5rem;
}

.theme-thm07 .thm07-wish-card figcaption strong,
.theme-thm07 .thm07-wish-card figcaption small {
    display: block;
}

.theme-thm07 .thm07-wish-card figcaption strong {
    font-size: 0.76rem;
}

.theme-thm07 .thm07-wish-card figcaption small {
    margin-top: 0.2rem;
    color: var(--thm07-muted);
    font-size: 0.75rem;
}

.theme-thm07 .thm07-wishes__guestbook {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: 1px;
    margin-top: clamp(3rem, 7vw, 7rem);
    background: var(--thm07-rule);
    border: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-wishes__form,
.theme-thm07 .thm07-wishes__messages {
    min-width: 0;
    padding: clamp(1.75rem, 4vw, 4rem);
    background: var(--thm07-paper);
}

.theme-thm07 .thm07-wishes__form {
    grid-template-columns: 1fr;
}

.theme-thm07 .thm07-wishes__form .thm07-field--wide {
    grid-column: auto;
}

.theme-thm07 .thm07-wishes__messages-head {
    display: flex;
    min-height: 44px;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-wishes__messages-head button {
    padding: 0;
    background: transparent;
}

.theme-thm07 .thm07-wishes__messages ul {
    max-height: 30rem;
    overflow-y: auto;
    list-style: none;
}

.theme-thm07 .thm07-wishes__messages li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-wishes__messages li > span {
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: 1.6rem;
    line-height: 1;
}

.theme-thm07 .thm07-wishes__messages li :where(strong, time) {
    display: block;
}

.theme-thm07 .thm07-wishes__messages li strong {
    font-size: 0.8rem;
}

.theme-thm07 .thm07-wishes__messages li time {
    margin-block: 0.15rem 0.6rem;
    color: var(--thm07-muted);
    font-size: 0.75rem;
}

.theme-thm07 .thm07-wishes__messages li p {
    color: var(--thm07-muted);
    font-size: 0.9375rem;
}

.theme-thm07 .thm07-wishes__messages .thm07-wishes__empty {
    display: block;
    color: var(--thm07-muted);
}

/* Gift registry */
.theme-thm07 .thm07-gift {
    display: grid;
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
    background: var(--thm07-paper);
}

.theme-thm07 .thm07-gift > * {
    width: 100%;
    max-width: none;
}

.theme-thm07 .thm07-gift__heading h2 {
    max-width: 8ch;
    margin-block: 0.9rem 1.4rem;
    font-size: clamp(3rem, 6vw, 6rem);
}

.theme-thm07 .thm07-gift__heading > p:last-child {
    max-width: 33rem;
    color: var(--thm07-muted);
}

.theme-thm07 .thm07-gift-card {
    min-width: 0;
    background: var(--thm07-oxblood);
    color: #fff;
}

.theme-thm07 .thm07-gift-card__masthead {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.5rem, 3vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
}

.theme-thm07 .thm07-gift-card > .thm07-field,
.theme-thm07 .thm07-gift-card__account {
    padding: clamp(1.5rem, 4vw, 4rem);
}

.theme-thm07 .thm07-gift-card > .thm07-field {
    padding-bottom: 0;
}

.theme-thm07 .thm07-gift-card__select {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.theme-thm07 .thm07-gift-card__select select {
    min-width: 0;
    border-bottom: 0;
    color: #fff;
}

.theme-thm07 .thm07-gift-card__select select option {
    color: var(--thm07-ink);
}

.theme-thm07 .thm07-gift-card__select img {
    width: auto;
    max-width: 6rem;
    height: 2rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.theme-thm07 .thm07-gift-card__account {
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr auto;
    align-items: end;
}

.theme-thm07 .thm07-gift-card__account > span,
.theme-thm07 .thm07-gift-card__account > strong,
.theme-thm07 .thm07-gift-card__account > small {
    grid-column: 1;
}

.theme-thm07 .thm07-gift-card__account > span {
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-gift-card__account > strong {
    margin-block: 0.45rem;
    font-family: var(--thm07-serif);
    font-size: clamp(2.4rem, 5.5vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.theme-thm07 .thm07-gift-card__account > small {
    color: rgba(255, 255, 255, 0.7);
}

.theme-thm07 .thm07-gift-card__account .thm07-button {
    grid-column: 2;
    grid-row: 1 / span 3;
}

/* Considerate note */
.theme-thm07 .thm07-health {
    display: grid;
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-health > * {
    width: 100%;
    max-width: none;
}

.theme-thm07 .thm07-health__copy h2 {
    max-width: 10ch;
    margin-block: 0.8rem 1.25rem;
    font-family: var(--thm07-serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.theme-thm07 .thm07-health__copy > p:last-child {
    max-width: 32rem;
    color: var(--thm07-muted);
}

.theme-thm07 .thm07-health__list {
    border-top: 1px solid var(--thm07-rule);
    list-style: none;
}

.theme-thm07 .thm07-health__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--thm07-rule);
}

.theme-thm07 .thm07-health__list li > span {
    color: var(--thm07-rose);
    font-family: var(--thm07-serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.theme-thm07 .thm07-health__list li p {
    color: var(--thm07-muted);
}

/* Closing */
.theme-thm07 .thm07-closing {
    position: relative;
    display: grid;
    min-height: min(58rem, 100dvh);
    grid-template-columns: minmax(0, 1.25fr) minmax(23rem, 0.75fr);
    overflow: hidden;
    background: var(--thm07-ink);
    color: #fff;
}

.theme-thm07 .thm07-closing__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.theme-thm07 .thm07-closing__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 19, 24, 0.04), rgba(24, 19, 24, 0.42));
    content: "";
}

.theme-thm07 .thm07-closing__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.66) contrast(1.08);
}

.theme-thm07 .thm07-closing__copy {
    display: grid;
    min-width: 0;
    grid-template-rows: auto 1fr auto;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4.5rem);
    background: var(--thm07-oxblood);
}

.theme-thm07 .thm07-closing__masthead {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
}

.theme-thm07 .thm07-closing__copy > div:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.theme-thm07 .thm07-closing__copy .thm07-kicker {
    color: var(--thm07-rose-muted);
}

.theme-thm07 .thm07-closing h2 {
    display: grid;
    max-width: 10ch;
    margin-block: clamp(1.2rem, 3vw, 2.5rem);
    font-size: clamp(3.8rem, 7vw, 7.8rem);
    line-height: 0.78;
}

.theme-thm07 .thm07-closing h2 span {
    min-width: 0;
    overflow-wrap: break-word;
}

.theme-thm07 .thm07-closing h2 i {
    margin-block: 0.15em 0.08em;
    color: var(--thm07-rose-muted);
    font-size: 0.52em;
    font-style: italic;
}

.theme-thm07 .thm07-closing--names-long h2 {
    font-size: clamp(3.1rem, 5.8vw, 6.2rem);
    line-height: 0.84;
}

.theme-thm07 .thm07-closing--names-xlong h2 {
    font-size: clamp(2.45rem, 4.6vw, 4.9rem);
    line-height: 0.9;
}

.theme-thm07 .thm07-closing__copy > div:nth-child(2) > p:not(.thm07-kicker) {
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.72);
}

.theme-thm07 .thm07-closing__copy time {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.theme-thm07 .thm07-closing__copy > small {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
}

.theme-thm07 .thm07-closing__copy > small a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Live announcements */

.theme-thm07 .thm07-sr-status {
    position: fixed;
    z-index: 6000;
    left: 50%;
    bottom: 1rem;
    width: min(calc(100% - 2rem), 30rem);
    min-height: 0;
    padding: 0.85rem 1rem;
    background: var(--thm07-ink);
    color: #fff;
    font-size: 0.78rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

/* The status line stays for screen readers only: the kernel's toast (.theme-v2-toast)
   already confirms a copy on screen, and showing both stacked two identical notices. */

.theme-thm07 .thm07-sr-status[data-status="error"] {
    background: #871b32;
}

@media (max-width: 1199px) {
    .theme-thm07 .thm07-cover {
        grid-template-columns: minmax(0, 1.05fr) minmax(23rem, 0.95fr);
    }

    .theme-thm07 .thm07-cover h1 {
        font-size: clamp(3.6rem, 7.4vw, 6.8rem);
    }

    .theme-thm07 .thm07-intro__heading {
        grid-column: 1 / span 5;
    }

    .theme-thm07 .thm07-intro__statement {
        grid-column: 6 / span 4;
    }

    .theme-thm07 .thm07-intro__date-card {
        grid-column: 10 / -1;
    }

    .theme-thm07 .thm07-event {
        grid-template-columns: minmax(4.5rem, 0.3fr) minmax(8.5rem, 0.58fr) minmax(17rem, 1.4fr);
    }

    .theme-thm07 .thm07-story-card,
    .theme-thm07 .thm07-story-card:nth-child(even) {
        grid-template-columns: minmax(4rem, 0.18fr) minmax(0, 1fr) minmax(16rem, 0.72fr);
    }
}

@media (max-width: 1023px) {
    body.theme-thm07 {
        --thm07-gutter: clamp(1.4rem, 5vw, 3rem);
        --thm07-section-y: clamp(4.5rem, 10vw, 7rem);
    }

    .theme-thm07 .thm07-cover {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    }

    .theme-thm07 .thm07-cover__copy {
        padding-inline: clamp(1.5rem, 4vw, 2.75rem);
    }

    .theme-thm07 .thm07-cover__invitation {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .theme-thm07 .thm07-intro__editorial {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .theme-thm07 .thm07-intro__heading {
        grid-column: 1 / span 3;
    }

    .theme-thm07 .thm07-intro__statement {
        grid-column: 4 / -1;
    }

    .theme-thm07 .thm07-intro__date-card {
        grid-column: 4 / -1;
    }

    .theme-thm07 .thm07-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .theme-thm07 .thm07-countdown .thm07-kicker {
        grid-column: 1 / -1;
        min-height: 3.25rem;
        justify-content: center;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .theme-thm07 .thm07-events__heading,
    .theme-thm07 .thm07-gallery__heading,
    .theme-thm07 .thm07-heading--spread {
        gap: 2.5rem;
    }

    .theme-thm07 .thm07-event {
        grid-template-columns: minmax(4rem, 0.3fr) minmax(8rem, 0.58fr) minmax(15rem, 1.2fr);
    }

    .theme-thm07 .thm07-event > * {
        padding: clamp(1.35rem, 3vw, 2.3rem);
    }

    .theme-thm07 .thm07-dresscode,
    .theme-thm07 .thm07-gift,
    .theme-thm07 .thm07-health {
        gap: clamp(2rem, 5vw, 4rem);
    }

    .theme-thm07 .thm07-livestream {
        grid-template-columns: 1fr;
    }

    .theme-thm07 .thm07-livestream__access {
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-inline: 0;
    }

    .theme-thm07 .thm07-story-card,
    .theme-thm07 .thm07-story-card:nth-child(even) {
        grid-template-columns: minmax(3.5rem, 0.16fr) minmax(0, 1fr) minmax(15rem, 0.8fr);
    }

    .theme-thm07 .thm07-story-card__copy {
        padding: clamp(1.5rem, 3.5vw, 3rem);
    }

    .theme-thm07 .thm07-rsvp {
        gap: clamp(2rem, 5vw, 4rem);
    }

    .theme-thm07 .thm07-closing {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
    }
}

@media (max-width: 767px) {
    body.theme-thm07 {
        --thm07-gutter: clamp(1rem, 5.5vw, 1.75rem);
        --thm07-section-y: clamp(4rem, 15vw, 6rem);
        font-size: 0.95rem;
    }

    .theme-thm07 .thm07-section > * {
        max-width: 38rem;
    }

    .theme-thm07 .thm07-heading--spread,
    .theme-thm07 .thm07-events__heading,
    .theme-thm07 .thm07-gallery__heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .theme-thm07 .thm07-heading h2,
    .theme-thm07 .thm07-events__heading h2,
    .theme-thm07 .thm07-gallery__heading h2 {
        max-width: 12ch;
        font-size: clamp(2.75rem, 14vw, 4.8rem);
    }

    /* Mobile cover keeps the photograph visible above a compact title panel. */
    .theme-thm07 .thm07-cover {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(12rem, 43dvh) minmax(0, 57dvh);
        background: var(--thm07-bone);
    }

    .theme-thm07 .thm07-cover__media {
        min-height: 0;
    }

    .theme-thm07 .thm07-cover__media img {
        min-height: 0;
        object-position: center center;
    }

    .theme-thm07 .thm07-cover__copy {
        min-height: 0;
        gap: 0.55rem;
        padding: 0.75rem var(--thm07-gutter) max(0.85rem, env(safe-area-inset-bottom));
    }

    .theme-thm07 .thm07-cover__masthead {
        padding-bottom: 0.45rem;
        font-size: 0.75rem;
    }

    .theme-thm07 .thm07-cover__title-block {
        justify-content: flex-start;
        padding-top: 0.35rem;
    }

    .theme-thm07 .thm07-cover__title-block .thm07-kicker {
        font-size: 0.75rem;
    }

    .theme-thm07 .thm07-cover h1,
    .theme-thm07 .thm07-cover--names-long h1,
    .theme-thm07 .thm07-cover--names-xlong h1 {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 0 0.2em;
        margin-top: 0.35rem;
        font-size: clamp(2.35rem, 12.4vw, 4rem);
        line-height: 0.82;
    }

    .theme-thm07 .thm07-cover--names-long h1 {
        font-size: clamp(2rem, 10vw, 3.4rem);
        line-height: 0.88;
    }

    .theme-thm07 .thm07-cover--names-xlong h1 {
        font-size: clamp(1.65rem, 8.2vw, 2.75rem);
        line-height: 0.94;
    }

    .theme-thm07 .thm07-cover h1 i {
        margin: 0 0.06em;
        align-self: center;
    }

    .theme-thm07 .thm07-cover__title-block time {
        margin-top: 0.65rem;
        padding-top: 0.35rem;
        font-size: 0.75rem;
    }

    .theme-thm07 .thm07-cover__invitation {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: center;
    }

    .theme-thm07 .thm07-cover__guest {
        padding-left: 0.55rem;
    }

    .theme-thm07 .thm07-cover__guest span {
        font-size: 0.75rem;
    }

    .theme-thm07 .thm07-cover__guest strong {
        display: -webkit-box;
        max-height: 2.55em;
        margin-top: 0.05rem;
        overflow: hidden;
        font-size: 0.9rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .theme-thm07 .thm07-cover .thm07-button {
        padding: 0.75rem 0.8rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .theme-thm07 .thm07-nav {
        display: flex;
        min-height: auto;
        align-items: flex-start;
        padding-block: 0.85rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .theme-thm07 .thm07-nav::-webkit-scrollbar {
        display: none;
    }

    .theme-thm07 .thm07-nav__brand {
        position: sticky;
        z-index: 2;
        left: 0;
        flex: 0 0 auto;
        padding-right: 0.7rem;
        background: var(--thm07-bone);
    }

    .theme-thm07 .thm07-nav__links {
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 1rem;
    }

    .theme-thm07 .thm07-intro__editorial {
        /* minmax(0, …) keeps long month names at large text sizes inside the screen. */
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
        padding-block: clamp(4rem, 16vw, 6rem);
    }

    .theme-thm07 .thm07-intro__heading,
    .theme-thm07 .thm07-intro__statement,
    .theme-thm07 .thm07-intro__date-card {
        grid-column: 1;
    }

    .theme-thm07 .thm07-intro__heading h2 {
        max-width: 9ch;
        font-size: clamp(3.5rem, 18vw, 6rem);
    }

    .theme-thm07 .thm07-intro__statement {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
    }

    .theme-thm07 .thm07-intro__date-card {
        width: min(100%, 22rem);
        margin: 0;
    }

    .theme-thm07 .thm07-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .theme-thm07 .thm07-countdown > * {
        padding: 1rem 0.35rem;
    }

    .theme-thm07 .thm07-countdown strong {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .theme-thm07 .thm07-countdown div span {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .theme-thm07 .thm07-couple__profiles {
        grid-template-columns: 1fr;
        gap: clamp(3.5rem, 15vw, 6rem);
    }

    .theme-thm07 .thm07-profile:nth-child(even) {
        padding-top: 0;
    }

    .theme-thm07 .thm07-profile__media {
        aspect-ratio: 4 / 5;
    }

    .theme-thm07 .thm07-profile__copy h3,
    .theme-thm07 .thm07-profile--name-medium .thm07-profile__copy h3,
    .theme-thm07 .thm07-profile--name-long .thm07-profile__copy h3,
    .theme-thm07 .thm07-profile--name-xlong .thm07-profile__copy h3 {
        max-width: 100%;
        font-size: clamp(2.25rem, 11vw, 4rem);
        line-height: 0.98;
    }

    .theme-thm07 .thm07-profile--name-long .thm07-profile__copy h3 {
        font-size: clamp(1.9rem, 9vw, 3.3rem);
    }

    .theme-thm07 .thm07-profile--name-xlong .thm07-profile__copy h3 {
        font-size: clamp(1.6rem, 7.4vw, 2.8rem);
        line-height: 1.04;
    }

    .theme-thm07 .thm07-event {
        grid-template-columns: 4.25rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-event > * {
        padding: 1.35rem;
    }

    .theme-thm07 .thm07-event__index {
        grid-row: 1 / span 2;
        padding-inline: 0.8rem;
    }

    .theme-thm07 .thm07-event__index span {
        font-size: 3rem;
    }

    .theme-thm07 .thm07-event__date {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.26);
    }

    .theme-thm07 .thm07-event__date time {
        grid-template-columns: auto 1fr;
        align-items: end;
    }

    .theme-thm07 .thm07-event__date strong {
        grid-row: span 2;
        margin: 0 0.8rem 0 0;
        font-size: 4.2rem;
    }

    .theme-thm07 .thm07-event__copy {
        grid-column: 2;
        border-right: 0;
    }

    .theme-thm07 .thm07-event__copy h3 {
        max-width: 100%;
        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    .theme-thm07 .thm07-event__map {
        grid-column: 1 / -1;
    }

    .theme-thm07 .thm07-event__map iframe {
        height: 19rem;
    }

    .theme-thm07 .thm07-dresscode,
    .theme-thm07 .thm07-gift,
    .theme-thm07 .thm07-health,
    .theme-thm07 .thm07-rsvp {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .theme-thm07 .thm07-dresscode__palette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-thm07 .thm07-dresscode__swatch:nth-child(2) {
        border-right: 0;
    }

    .theme-thm07 .thm07-dresscode__swatch:nth-child(-n + 2) {
        border-bottom: 1px solid var(--thm07-rule);
    }

    .theme-thm07 .thm07-livestream__headline {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .theme-thm07 .thm07-livestream__headline > span {
        font-size: 5rem;
    }

    .theme-thm07 .thm07-livestream__access {
        margin-inline: calc(var(--thm07-gutter) * -1);
        padding: var(--thm07-gutter);
    }

    .theme-thm07 .thm07-quote {
        min-height: 42rem;
        grid-template-columns: 3.25rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-quote__folio {
        padding: 1rem;
    }

    .theme-thm07 .thm07-quote blockquote {
        padding: clamp(2rem, 8vw, 3.5rem);
    }

    .theme-thm07 .thm07-quote blockquote p {
        max-width: 18ch;
        font-size: clamp(2.4rem, 11.5vw, 4.5rem);
        line-height: 1;
    }

    .theme-thm07 .thm07-story-card,
    .theme-thm07 .thm07-story-card:nth-child(even) {
        grid-template-columns: 3.25rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-story-card__meta {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding: 1rem 0.65rem;
    }

    .theme-thm07 .thm07-story-card__meta span {
        font-size: 2.5rem;
    }

    .theme-thm07 .thm07-story-card__media,
    .theme-thm07 .thm07-story-card:nth-child(even) .thm07-story-card__media {
        grid-column: 2;
        grid-row: 1;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .theme-thm07 .thm07-story-card__copy,
    .theme-thm07 .thm07-story-card:nth-child(even) .thm07-story-card__copy,
    .theme-thm07 .thm07-story-card--text-only .thm07-story-card__copy {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        padding: 1.5rem 1rem 2.5rem;
    }

    .theme-thm07 .thm07-story-card__copy h3 {
        max-width: 100%;
        font-size: clamp(2.2rem, 11vw, 4rem);
    }

    .theme-thm07 .thm07-gallery-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
    }

    .theme-thm07 .thm07-gallery-dialog figure {
        padding: 0.5rem;
    }

    .theme-thm07 .thm07-gallery-dialog__controls button {
        font-size: 0;
    }

    .theme-thm07 .thm07-gallery-dialog__controls button span {
        font-size: 1rem;
    }

    .theme-thm07 .thm07-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .theme-thm07 .thm07-field--wide {
        grid-column: auto;
    }

    .theme-thm07 .thm07-rsvp__letters {
        display: none;
    }

    .theme-thm07 .thm07-rsvp__form {
        margin-inline: calc(var(--thm07-gutter) * -0.25);
        padding: clamp(1.35rem, 6vw, 2rem);
    }

    .theme-thm07 .thm07-wishes__guestbook {
        grid-template-columns: 1fr;
    }

    .theme-thm07 .thm07-wishes__featured {
        grid-auto-columns: minmax(82vw, 1fr);
    }

    .theme-thm07 .thm07-gift-card__account {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .theme-thm07 .thm07-gift-card__account .thm07-button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 0.6rem;
    }

    .theme-thm07 .thm07-gift-card__account > strong {
        font-size: clamp(2rem, 10vw, 3.3rem);
    }

    .theme-thm07 .thm07-closing {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(23rem, 62dvh) auto;
    }

    .theme-thm07 .thm07-closing__copy {
        min-height: 36rem;
        padding: 1.25rem var(--thm07-gutter) 1.5rem;
    }

    .theme-thm07 .thm07-closing h2,
    .theme-thm07 .thm07-closing--names-long h2,
    .theme-thm07 .thm07-closing--names-xlong h2 {
        max-width: 100%;
        font-size: clamp(3.3rem, 16vw, 5.8rem);
    }

    .theme-thm07 .thm07-closing--names-long h2 {
        font-size: clamp(2.7rem, 13vw, 4.8rem);
    }

    .theme-thm07 .thm07-closing--names-xlong h2 {
        font-size: clamp(2.2rem, 10vw, 3.8rem);
        line-height: 0.94;
    }

}

@media (max-width: 479px) {
    .theme-thm07 .thm07-cover {
        grid-template-rows: minmax(10.5rem, 40dvh) minmax(0, 60dvh);
    }

    .theme-thm07 .thm07-cover__copy {
        padding-inline: 1rem;
    }

    .theme-thm07 .thm07-cover__masthead span:last-child {
        display: none;
    }

    .theme-thm07 .thm07-cover__invitation {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .theme-thm07 .thm07-cover .thm07-button span {
        display: none;
    }

    .theme-thm07 .thm07-nav__brand > span {
        display: none;
    }

    .theme-thm07 .thm07-event {
        grid-template-columns: 3.6rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-event > * {
        padding: 1.1rem;
    }

    .theme-thm07 .thm07-event__index {
        padding-inline: 0.55rem;
    }

    .theme-thm07 .thm07-event__index span {
        font-size: 2.5rem;
    }

    .theme-thm07 .thm07-quote {
        grid-template-columns: 2.65rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-quote blockquote {
        padding: 1.75rem 1.15rem;
    }

    .theme-thm07 .thm07-story-card,
    .theme-thm07 .thm07-story-card:nth-child(even) {
        grid-template-columns: 2.75rem minmax(0, 1fr);
    }

    .theme-thm07 .thm07-story-card__meta {
        padding-inline: 0.45rem;
    }

    .theme-thm07 .thm07-story-card__meta span {
        font-size: 2rem;
    }

    .theme-thm07 .thm07-gallery__item > span {
        font-size: 0.75rem;
    }

    .theme-thm07 .thm07-gift-card__masthead span:last-child,
    .theme-thm07 .thm07-closing__masthead span:last-child {
        display: none;
    }

}

@media (max-width: 359px), (max-height: 650px) and (max-width: 767px) {
    .theme-thm07 .thm07-cover {
        grid-template-rows: minmax(9.5rem, 36dvh) minmax(0, 64dvh);
    }

    .theme-thm07 .thm07-cover h1,
    .theme-thm07 .thm07-cover--names-long h1,
    .theme-thm07 .thm07-cover--names-xlong h1 {
        font-size: clamp(1.8rem, 10vw, 2.7rem);
        line-height: 0.9;
    }

    .theme-thm07 .thm07-cover--names-xlong h1 {
        font-size: clamp(1.45rem, 8vw, 2.2rem);
    }

    .theme-thm07 .thm07-cover__title-block time {
        margin-top: 0.45rem;
    }

    .theme-thm07 .thm07-cover__guest strong {
        font-size: 0.8rem;
    }

    .theme-thm07 .thm07-cover .thm07-button {
        min-height: 42px;
        padding: 0.6rem 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.theme-thm07) {
        scroll-behavior: auto;
    }

    .theme-thm07 .thm07-cover {
        transition-duration: 1ms;
    }

    .theme-thm07 .thm07-gallery__item img,.theme-thm07 .thm07-sr-status {
        transition: none;
    }
}

@media (forced-colors: active) {
    .theme-thm07 .thm07-cover,
    .theme-thm07 .thm07-event,
    .theme-thm07 .thm07-wish-card,
    .theme-thm07 .thm07-gift-card,
    .theme-thm07 .thm07-rsvp__form {
        border: 1px solid CanvasText;
    }
}

/*
 * Chromium's CSS `zoom` keeps viewport units tied to the unzoomed viewport.
 * Constrain the invitation to the effective 200% canvas so browser zoom and
 * assistive zoom reflow instead of exposing a horizontal document scrollbar.
 */
html[style*="zoom"] body.theme-thm07 {
    --thm07-gutter: 0.8rem;
    width: 50vw;
    max-width: 50vw;
    overflow-wrap: anywhere;
}

html[style*="zoom"] body.theme-thm07 .thm07-page,
html[style*="zoom"] body.theme-thm07 .thm07-invitation,
html[style*="zoom"] body.theme-thm07 .thm07-section,
html[style*="zoom"] body.theme-thm07 .thm07-section > * {
    width: 100%;
    max-width: 100%;
}

html[style*="zoom"] body.theme-thm07 .thm07-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-block: 0.55rem;
}

html[style*="zoom"] body.theme-thm07 .thm07-nav__brand {
    position: static;
    width: 100%;
}

html[style*="zoom"] body.theme-thm07 .thm07-nav__links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.15rem 0.65rem;
}

html[style*="zoom"] body.theme-thm07 .thm07-nav__links a {
    min-height: 2rem;
}

html[style*="zoom"] body.theme-thm07 .thm07-intro__heading h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 13vw, 3.15rem);
}

html[style*="zoom"] body.theme-thm07 :where(h1, h2, h3, p, blockquote, a, span, strong) {
    min-width: 0;
    overflow-wrap: anywhere;
}

html[style*="zoom"] body.theme-thm07 :where(.thm07-wish-card, .thm07-gift__card, .thm07-rsvp__form) {
    max-width: 100%;
}

/* Text-only enlargement must keep prose and actions inside a 320–390px canvas. */
html[style*="font-size"] body.theme-thm07 .thm07-quote blockquote {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

html[style*="font-size"] body.theme-thm07 .thm07-quote blockquote p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 11.5vw, 2.4rem);
}

html[style*="font-size"] body.theme-thm07 .thm07-event__actions,
html[style*="font-size"] body.theme-thm07 .thm07-event__actions .thm07-button {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal;
}

html[style*="font-size"] body.theme-thm07 .thm07-profile__copy,
html[style*="font-size"] body.theme-thm07 .thm07-profile__copy > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
}

html[style*="font-size"] body.theme-thm07 .thm07-event {
    grid-template-columns: minmax(0, 1fr);
}

html[style*="font-size"] body.theme-thm07 .thm07-event__index {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

html[style*="font-size"] body.theme-thm07 .thm07-event__date,
html[style*="font-size"] body.theme-thm07 .thm07-event__copy,
html[style*="font-size"] body.theme-thm07 .thm07-event__map {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-right: 0;
}

html[style*="font-size"] body.theme-thm07 .thm07-event__copy > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

html[style*="font-size"] body.theme-thm07 .thm07-event__copy > strong {
    width: 100%;
}

/* Floating controls use the shared dock (theme-system.css), coloured for this theme. */
.thm07-dock {
    --theme-dock-bg: #5b1f37;
    --theme-dock-fg: #fff;
    --theme-dock-border: rgba(255, 255, 255, 0.58);
    --theme-dock-bg-on-dark: rgba(255, 250, 248, 0.94);
    --theme-dock-fg-on-dark: #5b1f37;
    --theme-dock-border-on-dark: rgba(91, 31, 55, 0.25);
}

/* Small phones: the navigation keeps RSVP in view. The brand shows only the
   monogram, the story link gives way, and the links sit closer together. */
@media (max-width: 479px) {
    .theme-thm07 .thm07-nav__brand span {
        display: none;
    }

    .theme-thm07 .thm07-nav__links {
        gap: 0.9rem;
    }

    .theme-thm07 .thm07-nav__links a {
        letter-spacing: 0.06em;
    }

    .theme-thm07 .thm07-nav__links a[href="#thm07-story"] {
        display: none;
    }
}

@media (max-width: 379px) {
    .theme-thm07 .thm07-nav__links a[href="#thm07-gallery"] {
        display: none;
    }
}


/* Revisions after the 2026-10-12 review ------------------------------------ */

/* Verse: a reading, not a poster. */
.theme-thm07 .thm07-quote {
    min-height: 0;
}

.theme-thm07 .thm07-quote blockquote p {
    max-width: 24ch;
    font-size: clamp(1.9rem, 3.6vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

/* One map control per event. */
.theme-thm07 .thm07-map .theme-v2-map__panel iframe {
    filter: grayscale(0.4);
}

@media (max-width: 767px) {
    /* Cover: the photograph takes the space the panel does not need, so the
       names, date and guest sit together instead of across an empty gap. */
    .theme-thm07 .thm07-cover {
        grid-template-rows: minmax(12rem, 1fr) auto;
    }

    .theme-thm07 .thm07-cover__copy {
        grid-template-rows: auto auto auto;
        gap: 1.1rem;
        padding-top: 1rem;
    }

    .theme-thm07 .thm07-cover__title-block {
        justify-content: center;
    }

    .theme-thm07 .thm07-cover h1 {
        font-size: clamp(3rem, 14vw, 4.2rem);
    }

    /* Livestream: the button sits inside the rose panel. */
    .theme-thm07 .thm07-livestream__access {
        margin-inline: 0;
        padding: 0 0 clamp(2.5rem, 9vw, 3.5rem);
        border: 0;
        background: transparent;
    }

    .theme-thm07 .thm07-livestream__headline {
        padding-bottom: 1.5rem;
    }

    .theme-thm07 .thm07-livestream__access .thm07-button--solid {
        border-color: #fff;
        background: #fff;
        color: var(--thm07-oxblood);
    }

    /* The vertical folio only narrows the verse on phones. */
    .theme-thm07 .thm07-quote {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-thm07 .thm07-quote__folio {
        display: none;
    }

    .theme-thm07 .thm07-quote blockquote p {
        max-width: 22ch;
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.15;
    }
}

/* The phone measure (24ch) left a narrow column on wide screens; from tablets
   up the verse reads in about five lines. */
@media (min-width: 768px) {
    .theme-thm07 .thm07-quote blockquote p {
        max-width: 32ch;
    }
}

/* Revisions after the 2026-10-14 review ------------------------------------ */

/* Display headings get a measure that holds two or three words per line,
   not one, and words stay visibly apart under the tight tracking. */
.theme-thm07 :where(h1, h2, h3) {
    word-spacing: 0.08em;
}

.theme-thm07 .thm07-intro__heading h2 { max-width: 11ch; }
.theme-thm07 .thm07-dresscode__copy h2 { max-width: 14ch; }
.theme-thm07 .thm07-gallery__heading h2 { max-width: 14ch; }
/* 100%: a longer title in a wider custom font stays inside the column (text-fit.js shrinks it). */
.theme-thm07 .thm07-rsvp__intro h2 { max-width: min(12ch, 100%); }
.theme-thm07 .thm07-gift__heading h2 { max-width: 12ch; }
.theme-thm07 .thm07-health__copy h2 { max-width: 14ch; }

@media (min-width: 700px) {
    .theme-thm07 .thm07-gallery__heading h2,
    .theme-thm07 .thm07-intro__heading h2 {
        max-width: 14ch;
    }
}

/* Event index: the number stands alone; the stray "ACARA" caption is dropped. */
.theme-thm07 .thm07-event__index small {
    display: none;
}

/* The lightest swatch keeps an outline so it never reads as an empty cell. */
.theme-thm07 .thm07-dresscode__swatch > span {
    box-shadow: inset 0 0 0 1px rgba(91, 31, 55, 0.22);
}

/* The account number stays on one line. */
.theme-thm07 .thm07-gift-card__account > strong {
    font-size: clamp(2rem, 4.6vw, 4.2rem);
    overflow-wrap: normal;
    white-space: nowrap;
}

/* Tablet: the gift card is narrow, so the copy button sits under the number. */
@media (max-width: 1023px) {
    .theme-thm07 .thm07-gift-card__account {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .theme-thm07 .thm07-gift-card__account .thm07-button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 0.6rem;
    }
}

/* Names wrap only between words: a name shrinks to its line instead (the templates estimate --thm07-name-em). */
.theme-thm07 .thm07-closing h2 {
    width: 100%;
    container-type: inline-size;
}

.theme-thm07 .thm07-cover h1 {
    container-type: inline-size;
}

.theme-thm07 .thm07-cover h1 > span,
.theme-thm07 .thm07-closing h2 > span {
    font-size: min(1em, max(1rem, 92cqi / var(--thm07-name-em, 3)));
    overflow-wrap: break-word;
}

/* Revisions after the 2026-10-24 review ------------------------------------ */

/* Video: an editorial film feature on bone, between the paper gallery and the ink
   RSVP. One film is centred at a comfortable width; several sit in rows that never
   leave a film alone. */
.theme-thm07 .thm07-video {
    --theme-video-gap: clamp(0.75rem, 1.6vw, 1.5rem);
    --theme-video-radius: 0;
    --theme-video-border: transparent;
    --theme-video-frame: var(--thm07-oxblood);
    --theme-video-button: #fff;
    --theme-video-button-text: var(--thm07-oxblood);
    background: var(--thm07-bone);
}

.theme-thm07 .thm07-video .thm07-video__reel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem) var(--theme-video-gap);
    padding-top: clamp(2rem, 4vw, 4rem);
    counter-reset: thm07-film;
}

.theme-thm07 .thm07-video[data-video-count="1"] .thm07-video__reel {
    width: min(100%, 64rem);
}

.theme-thm07 .thm07-video .theme-video__item {
    container-type: inline-size;
    counter-increment: thm07-film;
}

.theme-thm07 .thm07-video .theme-video__poster {
    filter: saturate(0.8) contrast(1.04);
}

/* The whole frame is the play button: a guest taps the film, not a small target. */
body.theme-thm07 .thm07-video .theme-video__play {
    z-index: 2;
    align-self: stretch;
    justify-self: stretch;
    justify-content: center;
}

body.theme-thm07 .thm07-video .theme-video__play,
body.theme-thm07 .thm07-video .theme-video__frame--link {
    font-family: var(--thm07-sans);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
}

/* The play mark grows with its frame, so three small films are not all button. */
.theme-thm07 .thm07-video .theme-video__play-icon {
    width: clamp(3.25rem, 13cqi, 4.75rem);
    box-shadow: 0 12px 30px rgba(24, 19, 24, 0.3);
}

.theme-thm07 .thm07-video :is(.theme-video__play, .theme-video__frame--link):is(:hover, :focus-visible) {
    --theme-video-button: var(--thm07-rose);
    --theme-video-button-text: #fff;
}

/* Focus rings the whole frame in rose. The frame clips its button, so the ring is
   drawn on the frame; browsers without :has() keep an inner ring. */
.theme-thm07 .thm07-video .theme-video__play:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -0.5rem !important;
}

.theme-thm07 .thm07-video .theme-video__frame--link:focus-visible {
    outline: 3px solid var(--thm07-rose) !important;
    outline-offset: 3px !important;
}

.theme-thm07 .thm07-video .theme-video__frame:has(.theme-video__play:focus-visible) {
    outline: 3px solid var(--thm07-rose);
    outline-offset: 3px;
}

@supports selector(:has(*)) {
    .theme-thm07 .thm07-video .theme-video__play:focus-visible {
        outline-color: transparent !important;
    }
}

body.theme-thm07 .thm07-video .theme-video__caption {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--thm07-rule);
    font-family: var(--thm07-serif);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: left;
}

body.theme-thm07 .thm07-video .theme-video__caption::before {
    color: var(--thm07-rose);
    content: counter(thm07-film, decimal-leading-zero);
    font-family: var(--thm07-sans);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .theme-thm07 .thm07-video:not([data-video-count="1"]) .thm07-video__reel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Films pair up; an odd last one is centred under the pairs. */
    .theme-thm07 .thm07-video:not([data-video-count="1"]) .theme-video__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--theme-video-gap)) / 2);
    }
}

@media (min-width: 1024px) {
    .theme-thm07 .thm07-video:not([data-video-count="1"]) .thm07-video__reel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* Three films to a row; two, four and the first pair of five sit two to a row. */
    .theme-thm07 .thm07-video:not([data-video-count="1"]) .theme-video__item {
        grid-column: span 2;
    }

    .theme-thm07 .thm07-video:is([data-video-count="2"], [data-video-count="4"]) .theme-video__item,
    .theme-thm07 .thm07-video[data-video-count="5"] .theme-video__item:nth-child(-n + 2) {
        grid-column: span 3;
    }

    .theme-thm07 .thm07-video:not([data-video-count="1"]) .theme-video__item:last-child:nth-child(odd) {
        grid-column: span 2;
        justify-self: stretch;
        width: auto;
    }
}

/* Kirim Kado: the digital envelope's sibling, mirrored. The oxblood card takes the
   left column and the heading the right; right after the gift it continues the
   same paper band. */
.theme-thm07 .thm07-gift-address {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
    background: var(--thm07-paper);
}

.theme-thm07 .thm07-gift-address > * {
    width: 100%;
    max-width: none;
}

.theme-thm07 .thm07-gift + .thm07-gift-address {
    padding-top: 0;
}

.theme-thm07 .thm07-gift-address__heading {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.theme-thm07 .thm07-gift-address__heading h2 {
    max-width: 12ch;
    margin-block: 0.9rem 1.4rem;
    font-family: var(--thm07-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.theme-thm07 .thm07-gift-address__heading > p:last-child {
    max-width: 33rem;
    color: var(--thm07-muted);
}

.theme-thm07 .thm07-gift-address__card {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    background: var(--thm07-oxblood);
    color: #fff;
}

.theme-thm07 .thm07-gift-address__masthead {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.5rem, 3vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
}

.theme-thm07 .thm07-gift-address .thm07-gift-address__entries {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.theme-thm07 .thm07-gift-address .theme-gift-address__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2rem;
    row-gap: 0;
    align-items: end;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
}

.theme-thm07 .thm07-gift-address .theme-gift-address__card + .theme-gift-address__card {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-thm07 .thm07-gift-address .theme-gift-address__card > * {
    grid-column: 1;
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__label {
    color: var(--thm07-rose-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    opacity: 1;
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__name {
    margin-block: 0.45rem 0.4rem;
    font-family: var(--thm07-serif);
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    overflow-wrap: break-word;
    text-wrap: balance;
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__phone a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration-color: var(--thm07-rose-muted);
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__address {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__note {
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    opacity: 1;
}

body.theme-thm07 .thm07-gift-address .theme-gift-address__copy {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: end;
    margin-top: 0;
    white-space: nowrap;
}

.theme-thm07 .thm07-gift-address .theme-gift-address__copy:focus-visible {
    outline: 3px solid var(--thm07-rose-muted) !important;
    outline-offset: 3px !important;
}

.theme-thm07 .thm07-gift-address .theme-gift-address__copy[data-copy-state="copied"] {
    border-color: #fff;
    background: #fff;
    color: var(--thm07-oxblood);
}

@media (max-width: 1023px) {
    .theme-thm07 .thm07-gift-address {
        gap: clamp(2rem, 5vw, 4rem);
    }

    .theme-thm07 .thm07-gift-address .theme-gift-address__card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.theme-thm07 .thm07-gift-address .theme-gift-address__copy {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 1.2rem;
    }
}

@media (max-width: 767px) {
    .theme-thm07 .thm07-gift-address {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .theme-thm07 .thm07-gift-address__heading,
    .theme-thm07 .thm07-gift-address__card {
        grid-column: 1;
        grid-row: auto;
    }

    body.theme-thm07 .thm07-gift-address .theme-gift-address__name {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

/* Story: a chapter without a photograph keeps the chapter grid and lets its words
   take the photograph's column too, so no column is left empty. */
@media (min-width: 768px) {
    .theme-thm07 .thm07-story-card--text-only .thm07-story-card__copy,
    .theme-thm07 .thm07-story-card--text-only:nth-child(even) .thm07-story-card__copy {
        grid-column: 2 / -1;
        grid-row: 1;
    }
}

@media (min-width: 1200px) {
    .theme-thm07 .thm07-story-card--text-only:not(:nth-child(even)) {
        grid-template-columns: minmax(4.5rem, 0.22fr) minmax(0, 1.12fr) minmax(18rem, 0.66fr);
    }
}

/* Teks & Font: a text the couple writes may hold one long word (Bapak/Ibu/Saudara/i). Body text
   breaks instead of pushing past its column (headings shrink first: text-fit.js). Zero
   specificity, so the theme's own wrapping rules win. */
:where(body.theme-thm07) :where(h4, p, small, li, blockquote, figcaption) {
    overflow-wrap: break-word;
}

/* Teks & Font: a longer guest label or button text shares the cover row. The guest keeps a column
   for the name and the button wraps instead of covering it; the theme's own words fit as before. */
@media (min-width: 1024px), (max-width: 767px) {
    .theme-thm07 .thm07-cover__invitation {
        grid-template-columns: minmax(min(4rem, 100%), 1fr) auto;
    }
}

.theme-thm07 .thm07-cover .thm07-button {
    white-space: normal;
}

/* Small desktops: the date card is three of twelve columns, too narrow for the month beside
   the day ("DESEMBE/R" broke mid-word). The day sits above its month and year instead. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .theme-thm07 .thm07-intro__date-card time {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-thm07 .thm07-intro__date-card time strong {
        grid-row: auto;
        margin-bottom: 0.7rem;
        padding: 0 0 0.7rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    }

    .theme-thm07 .thm07-intro__date-card time span,
    .theme-thm07 .thm07-intro__date-card time small {
        padding-left: 0;
    }
}

/* Teks & Font: the short measures (8–14ch) are set for the theme's own titles. A title the
   couple writes (no data-copy-fit="off") takes its column: in ch the box shrank with the type as
   text-fit shrank it, so a long word never fitted and broke mid-word in a narrow strip. */
.theme-thm07 h2[id$="-title"]:not([data-copy-fit="off"]) {
    max-width: 100%;
}
