#invitation-content {
  position: relative;
  isolation: isolate;
  display: flow-root;
  background: #e9e9dd;
}

body.invitation-locked #invitation-content { display: none; }

#invitation-content::before {
  content: '';
  display: block;
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100vh;
  height: 100lvh;
  margin-bottom: -100vh;
  margin-bottom: -100lvh;
  background: linear-gradient(145deg, #f8f6e78f, #f6f3e8ba),
    url('floral_after_video.webp') center / cover no-repeat;
  pointer-events: none;
}

#invitation-content #main,
#invitation-content #main .page-section,
#invitation-content .footer { background: transparent !important; }

#main .rsvp-section, #main .gift-section {
  padding-block: clamp(38px, 7vw, 72px);
}

.response-card {
  width: min(100%, 610px);
  margin: 0 auto;
  padding: clamp(22px, 6vw, 48px);
  border: 1px solid #c7b994;
  border-radius: 18px;
  background: #fffdf7f5;
  box-shadow: 0 15px 45px #26391d18;
}

.response-card h2 {
  margin: 0;
  font-size: clamp(28px, 6.6vw, 42px);
  font-weight: 400;
  line-height: 1.18;
}

.response-card p { line-height: 1.65; }
.gift-card p { font-size: clamp(17px, 4vw, 20px); }
.gift-card p:last-child { margin-bottom: 0; }
#rsvp { scroll-margin-top: 18px; }

.rsvp-jump, .rsvp-submit {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #4a6450;
  border-radius: 24px;
  background: #3d5947;
  color: #fffdf7;
  font: 600 15px/1.4 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.rsvp-jump { margin-top: 21px; }

.rsvp-embed { width: min(100%, 740px); }
.rsvp-embed .rsvp-direct { display: inline-block; margin-bottom: 16px; color: #314c3c; }
.rsvp-embed iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: 9px;
}
@media(max-width:560px) {
  .rsvp-embed { padding-inline: 12px; }
  .rsvp-embed iframe { height: 875px; }
}
