:root {
  color-scheme: light;
  --paper: #fbf6ef;
  --white: #fffdf8;
  --ink: #34252a;
  --muted: #6a5257;
  --line: #ead9c7;
  --accent: #702747;
  --accent-soft: #f5e8d6;
  --rose: #4f2037;
  --detail: #854701;
  font: 16px/1.55 "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--detail); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--detail); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: .6rem; }
section[id] { scroll-margin-top: 1rem; }
[hidden] { display: none !important; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-bottom: .6rem; }
h3 { font-size: 1.04rem; margin-bottom: .28rem; }
.shell { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 4; padding: .6rem 1rem; background: var(--white); }
.skip:focus { top: .6rem; }
header { border-bottom: 1px solid var(--line); }
.nav, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.nav nav, .foot div { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); flex-wrap: wrap; }
.nav nav > a, .foot div a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.brand { font: bold 1.8rem/1 Georgia, serif; letter-spacing: -.05em; display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--detail); font: 1.05rem/1 system-ui; }
.brand-dot { color: var(--detail); margin-left: -.25rem; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(3rem, 6vw, 6rem) 0; }
.hero-copy { display: grid; gap: 1.25rem; }
.hero-photo { min-width: 0; height: 100%; min-height: 330px; background: var(--rose); position: relative; overflow: hidden; border-radius: 44% 44% 0 0 / 22% 22% 0 0; }
.hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.eyebrow { font-size: .79rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--detail); }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); max-width: 32rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.button { min-height: 45px; padding: .65rem 1rem; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; width: fit-content; font-weight: 650; font-size: .92rem; text-decoration: none; border-radius: .3rem; line-height: 1.3; }
.primary { color: var(--white); background: var(--accent); }
.primary:hover { color: var(--white); }
.outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.outline:hover { color: var(--accent); background: var(--accent-soft); }
.text-button { color: var(--accent); background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; padding: .6rem .15rem; }
.how { padding: 2.6rem 0 3.6rem; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { border-top: 2px solid var(--detail); padding-top: .9rem; }
.steps p, .section-heading p, .surface > p { color: var(--muted); }
.request { background: var(--accent-soft); padding: clamp(1.4rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3.5rem; }
.request h2, .invite h1, .studio-title h1, .gate h1 { margin: .5rem 0 .65rem; }
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 1rem; }
.form-stack, .surface { display: grid; gap: .9rem; align-content: start; }
.form-stack h2, .surface h2 { margin-bottom: 0; }
.surface { padding: clamp(1rem, 3vw, 1.65rem); background: var(--white); border: 1px solid var(--line); border-radius: .4rem; min-width: 0; }
label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 650; min-width: 0; }
input, textarea { min-height: 43px; width: 100%; padding: .5rem .6rem; background: #fff; border: 1px solid #a7aa9d; color: var(--ink); border-radius: .25rem; font-size: 1rem; }
input[type="file"] { padding: .4rem; font-size: .875rem; }
input[readonly] { background: var(--paper); }
textarea { resize: vertical; }
.notice, .error, .update { padding: .85rem 1rem; background: var(--accent-soft); border-left: 3px solid var(--accent); overflow-wrap: anywhere; }
.error { background: #f8e6e1; border-color: var(--detail); }
.hint { font-size: .9rem; color: var(--muted); }
.hashtag-field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.field-error { color: var(--accent); font-size: .875rem; font-weight: 650; }
.hashtag-field input[aria-invalid="true"] { border-color: var(--accent); }
code { font-size: .9em; overflow-wrap: anywhere; }
.gate { display: grid; min-height: 65vh; max-width: 530px; padding: 3rem 0; place-content: center stretch; }
.gate h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.guest-main, .studio-main { padding: 1.75rem 0 3.5rem; }
.invite { background: var(--rose); display: grid; grid-template-columns: 1.25fr auto; align-items: center; overflow: hidden; border-radius: .35rem; min-height: 205px; }
.invite-copy { padding: clamp(1.25rem, 4.5vw, 3.1rem); }
.invite h1 { font-size: clamp(3.1rem, 8vw, 6.1rem); }
.invite img { width: min(42vw, 500px); height: 100%; max-height: 285px; object-fit: cover; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.quick a { padding: .8rem .35rem; text-align: center; font-size: .9rem; font-weight: 680; text-decoration: none; }
.quick a:hover { background: var(--accent-soft); }
.update { margin-bottom: 1.7rem; }
.update .eyebrow { color: var(--accent); }
.guest-grid, .studio-grid { display: grid; grid-template-columns: 1.45fr minmax(0, 1fr); gap: 1.3rem; }
.guest-side, .studio-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.timeline, .photo-list, .operator-list, .upload-status { margin: 1rem 0 0; padding: 0; list-style: none; }
.timeline li { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(115px, .4fr) 1fr; gap: .8rem; padding: 1rem 0; overflow-wrap: anywhere; }
.timeline li > div:first-child { align-self: start; color: var(--accent); }
.timeline small { display: block; color: var(--muted); }
.timeline p { color: var(--muted); }
.studio-title > div { min-width: 0; overflow-wrap: anywhere; }
.studio-title > .pill { flex: none; }
.studio-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.studio-title h1, .studio-main > h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.studio-main > h1, .studio-main > .notice { margin-bottom: 1.25rem; }
.pill { padding: .23rem .7rem; background: var(--accent-soft); text-transform: capitalize; border: 1px solid var(--line); border-radius: 1rem; font-size: .88rem; }
.fields { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-item { min-width: 0; max-width: 100%; margin: 0 0 .65rem; padding: .7rem; border: 1px solid var(--line); }
.function-dress-options { grid-column: 1 / -1; }
.function-dress-options summary { cursor: pointer; font-size: .88rem; font-weight: 650; }
.function-dress-options[open] summary, .function-dress-options .hint { margin-bottom: .6rem; }
.photo-list li, .operator-list li { border-top: 1px solid var(--line); padding: .65rem 0; overflow-wrap: anywhere; }
.operator-list li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.upload-status { margin: 0; overflow-wrap: anywhere; font-size: .91rem; }
.upload-status li { padding: .2rem 0; }
@media (max-width: 750px) {
  .shell { width: min(100% - 1.5rem, 1160px); }
  .hero, .request, .guest-grid, .studio-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0; gap: 1.35rem; }
  .hero-copy { gap: .9rem; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { width: 100%; padding-inline: .6rem; text-align: center; }
  .hero-actions .primary, .hero-actions .outline:last-child:nth-child(2) { grid-column: 1 / -1; }
  .hero-photo { min-height: clamp(190px, 62vw, 330px); }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .invite { grid-template-columns: 1fr; }
  .invite img { width: 100%; height: clamp(140px, 40vw, 240px); }
  .nav { min-height: 64px; gap: .65rem; }
  .nav .brand { flex: none; font-size: 1.55rem; }
  .nav nav { justify-content: end; gap: .65rem; flex-wrap: nowrap; }
  .nav nav > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .nav nav > a.button { padding-inline: .65rem; }
  .nav nav a[href="#how"] { display: none; }
  .foot { flex-direction: column; justify-content: center; padding: 1rem 0 .5rem; gap: .5rem; }
  .foot div { justify-content: center; gap: 0 .7rem; }
  .foot div a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; }
}
@media (max-width: 390px) {
  .fields { grid-template-columns: 1fr; }
  .nav { gap: .4rem; }
  .nav .brand { font-size: 1.4rem; }
  .nav nav { gap: .4rem; }
  .nav nav > a { font-size: .72rem; }
  .nav nav > a.button { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Material 3 control shapes and navigation, with event-specific surface colors. */
body { background: var(--paper); color: var(--ink); }
.button { border-radius: 999px; min-height: 44px; padding-inline: 1.15rem; }
.primary:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
input:not([type="hidden"]), textarea, select { min-width: 0; max-width: 100%; border-radius: .5rem; font-weight: 400; }
select { min-height: 43px; width: 100%; border: 1px solid #a7aa9d; color: var(--ink); background: var(--white); padding: .5rem .6rem; font: inherit; font-size: 1rem; }
.surface { border-radius: 1rem; }
[data-copy-status]:empty { display: none; }
.quick { grid-template-columns: repeat(2, 1fr); }
.quick a { position: relative; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.quick a[aria-current="page"]::after { position: absolute; content: ''; bottom: 0; left: 25%; width: 50%; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.guide-shortcuts { margin: 0 0 1.3rem; }
.invite { position: relative; isolation: isolate; border-radius: 1rem; }
.invite-copy { z-index: 1; }
.invite:not(.has-cover) { grid-template-columns: 1fr; }
.invite img { min-height: 220px; }
.theme-wedding .invite { color: #fff7e9; border: 1px solid #a46e48; }
.theme-wedding .invite .eyebrow { color: #f4cd89; }
.invite-hashtag {
  width: fit-content;
  max-width: 100%;
  margin-top: .8rem;
  padding: .25rem .75rem;
  border: 1px solid #be925f;
  border-radius: 999px;
  background: #341425;
  color: #ffe4ae;
  font-size: .9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.theme-wedding .invite-copy::before { content: ''; display: block; width: 2.8rem; height: 1px; background: #d6a76b; margin-bottom: .85rem; }
.theme-birthday {
  --paper: #fff8f1;
  --white: #fffefa;
  --ink: #332444;
  --muted: #62536b;
  --line: #eedcec;
  --accent: #6c3395;
  --detail: #88407f;
  --accent-soft: #f4e7fa;
  --rose: #ffd9e5;
}
.theme-birthday h1, .theme-birthday h2 { font-family: "Avenir Next", system-ui, sans-serif; font-weight: 750; }
.theme-birthday .invite:not(.has-cover) .invite-copy { max-width: 80%; }
.balloons { position: absolute; right: clamp(8px, 4vw, 55px); top: 1.35rem; width: 105px; height: 125px; pointer-events: none; }
.has-cover .balloons { right: auto; left: 4px; bottom: 8px; top: auto; opacity: .2; }
.balloons i { position: absolute; inset: 6px auto auto 27px; width: 43px; height: 55px; border-radius: 51% 49% 47% 53%; background: #9254c4; transform: rotate(-13deg); }
.balloons i::after { content: ''; position: absolute; top: 100%; left: 52%; width: 1px; height: 39px; background: #9a6895; transform: rotate(7deg); transform-origin: top; }
.balloons i:nth-child(2) { inset: 29px auto auto 58px; transform: rotate(16deg); background: #ec8964; }
.balloons i:nth-child(3) { inset: 42px auto auto 7px; transform: rotate(-22deg); background: #e7af40; }
.invite-gallery { min-height: 0; }
.invite-gallery .invite-copy { padding: clamp(1rem, 3vw, 2rem); }
.invite-gallery h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); overflow-wrap: anywhere; }
.invite-gallery .balloons { opacity: .55; }
.gallery-layout { align-items: start; }
.gallery-heading { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.gallery-upload { display: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: .65rem; }
.gallery a { display: grid; overflow: hidden; border-radius: .8rem; background: var(--accent-soft); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-video { min-width: 0; overflow-wrap: anywhere; }
.gallery-video video { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 9; border-radius: .8rem; background: #241619; }
.gallery-video figcaption { margin-top: .35rem; }
.studio-invitations-link { display: inline-block; margin-bottom: 1rem; }
.invitation-access { padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.drive-space { border-inline-start: 3px solid var(--detail); padding-inline-start: .65rem; }
.gallery .gallery-file { padding: .8rem; align-content: center; height: 100%; overflow-wrap: anywhere; }
.gallery-pages { margin-top: 1rem; }
.cover-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: .75rem; }
.photo-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .65rem; scroll-margin-top: 1rem; }
.photo-list button { white-space: nowrap; }
[data-gallery-status]:empty { display: none; }
@media (max-width: 440px) {
  .photo-list li { grid-template-columns: minmax(0, 1fr); }
}
.owner-create { margin-bottom: 1.2rem; }
.operator-list li { flex-wrap: wrap; }
@media (max-width: 750px) {
  .invite img { min-height: 0; }
  .theme-birthday .invite:not(.has-cover) .invite-copy { max-width: 76%; }
  .balloons { scale: .75; transform-origin: top right; }
}

/* The wedding guide uses a full-bleed invitation and a swipeable programme. */
.theme-wedding .invite-feature {
  min-height: clamp(300px, 46vw, 545px);
  grid-template-columns: 1fr;
  align-items: end;
  background: #311122;
  border: 1px solid #c49b65;
  border-radius: 1.25rem 1.25rem .45rem .45rem;
}
.theme-wedding .invite-feature.has-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(88deg, rgb(32 10 24 / .94), rgb(37 12 26 / .64) 41%, rgb(37 12 26 / .08) 86%),
    linear-gradient(0deg, rgb(31 12 24 / .72), transparent 65%);
}
.theme-wedding .invite-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 52%;
}
.theme-wedding .invite-feature .invite-copy {
  z-index: 2;
  max-width: 42rem;
  padding: clamp(2rem, 7vw, 5rem);
  overflow-wrap: anywhere;
}
.theme-wedding .invite-feature h1 { font-size: clamp(3rem, 10vw, 7.3rem); line-height: .98; }
.theme-wedding .invite-feature .eyebrow { letter-spacing: .19em; }
.invite-ornament {
  position: absolute;
  inset: .7rem;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgb(247 213 155 / .56);
  border-radius: .82rem .82rem .2rem .2rem;
}
.invite-ornament i {
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid #f5d89d;
  transform: rotate(45deg);
}
.invite-ornament i:nth-child(1) { top: .45rem; left: .45rem; }
.invite-ornament i:nth-child(2) { top: .45rem; right: .45rem; }
.invite-ornament i:nth-child(3) { bottom: .45rem; left: .45rem; }
.invite-ornament i:nth-child(4) { bottom: .45rem; right: .45rem; }
.ceremony-section { margin: 2rem 0 2.5rem; }
.celebration-heading { display: flex; justify-content: space-between; align-items: end; gap: .8rem; margin-bottom: .55rem; }
.celebration-heading h2 { margin: .24rem 0 0; }
.carousel-controls { flex-wrap: nowrap; }
.carousel-controls .button { padding-inline: .85rem; }
.ceremony-deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 29%, 19rem);
  gap: .9rem;
  margin: 0;
  padding: .35rem .25rem .8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: .25rem;
  list-style: none;
}
.ceremony-card {
  --gold: #f4d397;
  --card-tint: #251224;
  min-width: 0;
  scroll-snap-align: start;
}
.ceremony-card a {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  min-height: clamp(220px, 25vw, 320px);
  overflow: hidden;
  border-radius: 5rem 5rem .6rem .6rem / 3rem 3rem .6rem .6rem;
  border: 1px solid #97634b;
  background: var(--card-tint);
  color: #fff8e9;
  text-decoration: none;
}
.ceremony-card a::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: .36rem;
  border: 1px solid rgb(246 211 157 / .55);
  border-radius: inherit;
  pointer-events: none;
}
.ceremony-card a::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(0deg, var(--card-tint), transparent);
  pointer-events: none;
}
.ceremony-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ceremony-card a > div { position: relative; z-index: 2; width: 100%; padding: 2.8rem 1.1rem 1.2rem; }
.ceremony-card p { color: var(--gold); font-size: .83rem; font-weight: 650; }
.ceremony-card h3 { font: normal clamp(1.37rem, 2.8vw, 2.12rem)/1.08 Georgia, serif; margin: .24rem 0 0; }
.ceremony-green { --card-tint: #0d281b; }
.ceremony-gold { --card-tint: #403011; }
.ceremony-red { --card-tint: #3a1714; }
.ceremony-ivory { --card-tint: #2d201f; }
.ceremony-purple { --card-tint: #240b30; }
.timeline li { scroll-margin-top: 1.1rem; }
.timeline li:target { background: var(--accent-soft); padding-inline: .6rem; }
.timeline-day { margin-top: 1.1rem; }
.timeline-day > h3 { color: var(--accent); margin: 0; }
.timeline-by-day { margin-top: .4rem; }
.timeline-by-day li { grid-template-columns: 5.25rem minmax(0, 1fr); }
.timeline-by-day h4 { font-size: 1.04rem; margin: 0 0 .28rem; }
.calendar-schedule { margin-top: .55rem; }
.guest-contacts { list-style: none; margin: .4rem 0 0; padding: 0; }
.guest-contacts li { border-top: 1px solid var(--line); padding: .55rem 0; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; overflow-wrap: anywhere; }
.guest-contacts li:last-child { padding-bottom: 0; }
.contact-settings { display: grid; gap: .7rem; margin-top: .65rem; }
.contact-fields { min-width: 0; border: 1px solid var(--line); border-radius: .6rem; padding: .65rem; }
.contact-fields legend { font-size: .9rem; font-weight: 650; padding-inline: .25rem; }
.contact-fields .field-error { margin-top: .55rem; }
.contact-role { grid-column: 1 / -1; }
.event-highlights { margin-top: 2.5rem; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.highlights > * { min-width: 0; max-width: 580px; }
.highlights img, .highlights video { display: block; width: 100%; height: auto; max-height: 55vh; aspect-ratio: 16 / 10; border-radius: 1rem; background: #241619; object-fit: cover; }
#invitation-card img { max-height: 65vh; border-radius: .6rem; object-fit: contain; }
#invitation-card .button { max-width: 100%; text-align: center; }
.media-field { border-top: 1px solid var(--line); padding-top: .7rem; }
.media-field > summary { cursor: pointer; font-weight: 650; }
.media-field .form-stack { margin-block: .65rem; }
.poster-audiences { display: grid; gap: .65rem; margin: .65rem 0 .25rem 1rem; }
.poster-audiences > p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .theme-wedding .invite-feature .invite-copy { animation: invite-entrance .85s cubic-bezier(.13,.79,.22,1) both; }
  .invite-ornament { animation: frame-reveal 1.25s ease-out both; }
  .ceremony-card img { transition: transform .42s cubic-bezier(.14,.78,.21,1); }
  .ceremony-card a:is(:hover,:focus-visible,:active) img { transform: scale(1.065); }
  @keyframes invite-entrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes frame-reveal { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 750px) {
  .theme-wedding .invite-feature { min-height: clamp(315px, 90vw, 425px); }
  .theme-wedding .invite-feature.has-cover::after { background: linear-gradient(0deg, rgb(31 12 24 / .94), rgb(31 12 24 / .42) 55%, rgb(31 12 24 / .05) 90%); }
  .theme-wedding .invite-feature .invite-copy { padding: 2.2rem 1.6rem; }
  .ceremony-deck { grid-auto-columns: min(75%, 290px); }
  .ceremony-card a { min-height: 255px; }
  .guide-shortcuts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.14fr); gap: .4rem; }
  .guide-shortcuts.has-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-shortcuts .button { width: 100%; text-align: center; padding-inline: .3rem; font-size: .83rem; }
  .celebration-heading { flex-wrap: wrap; }
}
.invite-ornament::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 77% 28%, #f9d89c 0 1px, transparent 3px),
    radial-gradient(circle at 88% 53%, #ffecbc 0 1px, transparent 3px),
    radial-gradient(circle at 73% 64%, #f1ba71 0 1px, transparent 4px),
    radial-gradient(circle at 93% 20%, #ffe2a9 0 1px, transparent 3px),
    radial-gradient(circle at 81% 74%, #eabf89 0 1px, transparent 3px);
  opacity: .46;
}
@media (prefers-reduced-motion: no-preference) {
  .invite-ornament::before { animation: invite-gold-dust 2.5s ease-out both; }
  @keyframes invite-gold-dust {
    0% { opacity: 0; transform: translateY(12px); }
    55% { opacity: .8; }
    100% { opacity: .46; transform: none; }
  }
}

.quick-invitation { grid-template-columns: repeat(3, 1fr); }
.theme-wedding .invite-feature img.invite-floral {
  inset: .55rem auto auto .55rem;
  width: clamp(92px, 15vw, 198px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: .92;
}
.theme-wedding .invite-feature img.floral-bottom {
  inset: auto .55rem .55rem auto;
  transform: rotate(180deg);
}
.sample-invitation { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 6vw, 4rem) 1.5rem; text-align: center; min-height: 285px; align-content: center; border: 1px solid #c89f73; }
.sample-invitation img { position: absolute; top: 0; left: 0; width: 95px; height: auto; opacity: .82; pointer-events: none; }
.sample-invitation div { position: relative; }
.schedule-clock { margin-bottom: 1.5rem; }
.next-event { display: flex; justify-content: space-between; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(.75rem, 2.8vw, 1.4rem); margin-bottom: .8rem; }
.next-event h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); margin: .12rem 0; }
.next-event time { color: var(--accent); font-size: clamp(1.06rem, 4vw, 2.12rem); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.next-event p { color: var(--muted); }
.next-event .eyebrow { color: var(--detail); }
.schedule-clock .update { margin-bottom: .7rem; }
.reminder-controls { margin-top: .55rem; }
.function-map { display: block; width: fit-content; margin: .35rem 0; font-size: .9rem; }
.photo-filter { display: flex; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.photo-filter label { flex: 1 1 12rem; max-width: 21rem; }
.photo-filter button { flex: none; white-space: nowrap; }
.photo-pickers { display: flex; flex-wrap: wrap; gap: .5rem; }
.picker { position: relative; overflow: hidden; cursor: pointer; }
.picker:focus-within { outline: 3px solid var(--detail); outline-offset: 3px; }
.picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
@media (max-width: 530px), (min-width: 861px) and (max-width: 1050px) {
  .function-name, .function-start { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .studio-grid, .gallery-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery-upload { display: inline-flex; }
}
@media (max-width: 440px) {
  .gallery-heading { align-items: center; }
  .gallery-upload { padding-inline: .7rem; font-size: .82rem; }
  .quick a { padding-inline: .12rem; font-size: .82rem; }
  .photo-filter button { padding-inline: .75rem; }
}
@media (max-width: 380px) {
  .next-event { align-items: flex-start; flex-direction: column; }
}

.card-video { display: block; width: 100%; max-height: 55vh; background: #241619; border-radius: .7rem; }
#gallery { gap: .85rem; }
#gallery .gallery-heading h2, #gallery .photo-filter, #gallery .gallery-pages { margin: 0; }
#gallery .gallery-pages:empty, [data-photos] .hint:empty, [data-photos] .upload-status:empty { display: none; }
.gallery-single { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.gallery-single img { max-height: 320px; aspect-ratio: 16 / 10; }
.gallery-layout #share-photos { align-self: start; }
.guest-drive { display: grid; gap: .65rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.guest-drive h3 { margin: 0; }
.guest-drive input { width: 100%; }
@media (max-width: 450px) {
  .guest-drive .actions .button { flex-grow: 1; }
}
#guest-drive-links { margin-top: .85rem; scroll-margin-top: 1rem; }
.checkbox-field { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.checkbox-field input { width: 1.1rem; height: 1.1rem; min-height: 0; flex: none; accent-color: var(--accent); }
