/* Local clone: runtime additions that the original site applied via JS */

body {
  font-family: ods-font-secondary, -apple-system, system-ui, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* product-grid widget mount: filled by The Knot's JS, empty in a static clone.
   Its stylesheet forces min-height:100vh + 440px padding, which showed as a
   blank band above the footer on every page. */
#products-grid-app-root { display: none !important; }

/* mobile menu (original toggles the nav height through React) */
nav.wws-1hdrl3y { transition: height 0.35s ease; }
body.nav-locked { overflow: hidden; }

/* gallery lightbox, styled after the original ReactModal overlay */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
}
.lb.open { display: flex; }
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  background: #111;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.9;
  padding: 0;
  line-height: 1;
}
.lb-close {
  top: 10px;
  right: 18px;
  font-size: 42px;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  padding: 0 18px;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { opacity: 1; }
.lb-count {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 13px/1.4 Arial, sans-serif;
  letter-spacing: 1.5px;
}
@media (max-width: 768px) {
  .lb-prev,
  .lb-next { font-size: 44px; padding: 0 8px; }
  .lb-img { max-width: 96vw; max-height: 82vh; }
}

/* RSVP form: outline-only fields, transparent so the paper background shows */
.rsvp-form {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: "EB Garamond", Cambria, Times, "Times New Roman", serif;
  color: #333234;
}
.rsvp-row { display: flex; gap: 18px; }
.rsvp-field { display: flex; flex-direction: column; gap: 9px; flex: 1 1 0; min-width: 0; }
.rsvp-field label,
.rsvp-legend {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333234;
}
.rsvp-field input,
.rsvp-field select,
.rsvp-field textarea {
  background-color: transparent;
  border: 1px solid rgba(51, 50, 52, 0.55);
  border-radius: 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 17px;
  color: #333234;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}
.rsvp-field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23333234' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.rsvp-field textarea { min-height: 118px; resize: vertical; }
.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus { border-color: #333234; }
.rsvp-choices { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.rsvp-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 17px;
}
.rsvp-choice input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(51, 50, 52, 0.6);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.rsvp-choice input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #333234;
}
.rsvp-submit {
  align-self: center;
  margin-top: 6px;
  padding: 14px 46px;
  background: transparent;
  border: 1px solid #333234;
  border-radius: 0;
  color: #333234;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.rsvp-submit:hover { background-color: #333234; color: #fff; }
.rsvp-submit:disabled { opacity: 0.55; cursor: default; }
.rsvp-note {
  display: none;
  margin: 4px 0 0;
  text-align: center;
  font-style: italic;
  font-size: 18px;
}
.rsvp-form.sent .rsvp-note { display: block; }
@media (max-width: 640px) {
  .rsvp-row { flex-direction: column; gap: 22px; }
  .rsvp-form { margin-top: 22px; }
}
