/* Wedding-party names presented as keepsake stationery. */
#traditions .cards {
  gap: 1.5rem;
  margin-top: 2.5rem;
}

#traditions .cards article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  margin: 0;
  padding: 2.35rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #fffef9, #f7efe2);
  border: 1px solid #cdbda8;
  outline: 1px solid #dfd1bd;
  outline-offset: -9px;
  box-shadow: 0 13px 28px #59432b1f, 0 2px 5px #59432b16;
  color: var(--ink);
}

#traditions .cards article::before,
#traditions .cards article::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 105px;
  height: 145px;
  opacity: .56;
  background:
    radial-gradient(ellipse at center, #9aaa7c 0 18%, transparent 20%) 0 0 / 26px 35px,
    linear-gradient(62deg, transparent 48%, #87986c 49% 51%, transparent 52%);
  pointer-events: none;
}

#traditions .cards article::before {
  top: -45px;
  left: -35px;
  transform: rotate(19deg);
}

#traditions .cards article::after {
  right: -35px;
  bottom: -45px;
  transform: rotate(199deg);
}

#traditions .cards h3 {
  margin: 0 0 .8rem;
  color: #95675d;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
}

#traditions .cards p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 700px) {
  #traditions .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Floral stationery for the couple's traditions. */
#wedding-party .cards {
  gap: 1.5rem;
  margin-top: 2.5rem;
}

#wedding-party .cards article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 230px;
  margin: 0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 12% 12%, #f5c9bc 0 7px, transparent 8px),
    radial-gradient(circle at 88% 88%, #e7b9b0 0 8px, transparent 9px),
    linear-gradient(145deg, #fffef9, #f8f0e5);
  border: 1px solid #cebba5;
  outline: 1px solid #e2cfbb;
  outline-offset: -9px;
  box-shadow: 0 13px 28px #59432b1f, 0 2px 5px #59432b16;
}

#wedding-party .cards article::before,
#wedding-party .cards article::after {
  content: "✿";
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  color: #d49b91;
  font-size: 3.4rem;
  line-height: 1;
  text-shadow:
    34px 17px 0 #efc3b1,
    12px 46px 0 #d9aaa4,
    49px 55px 0 #f3d1bd;
  background:
    linear-gradient(58deg, transparent 48%, #87986c 49% 51%, transparent 52%),
    radial-gradient(ellipse at center, #aab58b 0 17%, transparent 19%) 8px 4px / 30px 38px;
  opacity: .68;
  pointer-events: none;
}

#wedding-party .cards article::before {
  top: -38px;
  left: -30px;
  transform: rotate(12deg);
}

#wedding-party .cards article::after {
  right: -25px;
  bottom: -38px;
  transform: rotate(192deg);
}

#wedding-party .cards h3 {
  margin: 0 0 .8rem;
  color: #95675d;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
}

#wedding-party .cards p {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (min-width: 700px) {
  #wedding-party .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Seashore-inspired tour cards. */
#things-to-do .cards {
  gap: 1.5rem;
  margin-top: 2.5rem;
}

#things-to-do .cards article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 285px;
  margin: 0;
  padding: 3.2rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 88% 13%, #fff8 0 3px, transparent 4px),
    radial-gradient(circle at 82% 18%, #fff7 0 2px, transparent 3px),
    linear-gradient(168deg, #e9f3f1 0 30%, #c8e0dd 31% 38%, #f6ead5 39% 100%);
  border: 1px solid #b9cfc9;
  border-radius: 48% 48% 8px 8px / 15px 15px 8px 8px;
  box-shadow: 0 14px 28px #234b5520, 0 2px 5px #59432b12;
}

#things-to-do .cards article::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 58px;
  right: -12%;
  left: -12%;
  height: 38px;
  background:
    radial-gradient(32px 14px at 32px 0, transparent 96%, #fffdf9 100%) 0 0 / 64px 28px repeat-x,
    linear-gradient(#fffdf9aa, transparent);
  transform: rotate(-2deg);
  opacity: .9;
}

#things-to-do .cards article::after {
  content: "◖◗";
  position: absolute;
  right: 1rem;
  bottom: .65rem;
  color: #c49372;
  font: 1.65rem/1 Georgia, serif;
  letter-spacing: -.38rem;
  transform: rotate(-18deg);
  opacity: .72;
  text-shadow: -28px -3px 0 #dfbfa4, -48px 4px 0 #b88c70;
  pointer-events: none;
}

#things-to-do .cards h3 {
  margin: 0 0 .65rem;
  color: #305b67;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
}

#things-to-do .cards p {
  margin: 0 0 1.25rem;
  color: #3d5054;
  line-height: 1.65;
}

#things-to-do .cards button {
  align-self: flex-start;
  margin-top: auto;
  padding: .5rem .85rem;
  border: 1px solid #527985;
  border-radius: 999px;
  background: #fffdf9c9;
  color: #305b67;
  text-decoration: none;
}

#things-to-do .cards button:hover,
#things-to-do .cards button:focus-visible {
  background: #305b67;
  color: #fff;
}

/* Raised photocard treatment for Our Story, preserving its existing footprint. */
#our-story .story-photocard {
  position: relative;
  width: 100%;
  padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) clamp(28px, 3.5vw, 44px);
  background: #fffefb;
  box-shadow: 0 18px 32px #3c2b1d2b, 0 3px 8px #3c2b1d1c;
  transform: rotate(1deg);
}

#our-story .story-photocard::after {
  content: "Manny & Arbie";
  position: absolute;
  right: 1rem;
  bottom: .45rem;
  color: #95675d;
  font: italic clamp(.8rem, 1.5vw, 1rem) var(--serif);
}

#our-story .story-photocard img.story-photo-full {
  display: block;
  width: 100%;
  margin: 0;
  box-shadow: inset 0 0 0 1px #3d332822;
}

/* Proposal carousel styled as floral sealed photocards. */
#proposal .gallery {
  margin-top: 2rem;
  padding: clamp(.75rem, 2vw, 1.4rem);
  background: linear-gradient(145deg, #eaded1, #f8efe5);
  box-shadow: inset 0 0 0 1px #cdbda8;
}

#proposal #track figure {
  position: relative;
  overflow: visible;
  padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) clamp(34px, 4vw, 50px);
  background: #fffefb;
  box-shadow: 0 14px 26px #3c2b1d2b;
}

#proposal #track figure::before {
  content: "✿";
  position: absolute;
  z-index: 2;
  top: -3px;
  left: 2px;
  color: #d4a099;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 27px 12px 0 #edc2ae, 12px 31px 0 #a9b38a;
  transform: rotate(-18deg);
  pointer-events: none;
}

#proposal #track figure::after {
  content: "A M";
  position: absolute;
  z-index: 3;
  right: clamp(10px, 2vw, 20px);
  bottom: clamp(7px, 1.2vw, 13px);
  width: clamp(38px, 6vw, 54px);
  height: clamp(38px, 6vw, 54px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #f3cbb5, #b97868 62%, #875047);
  box-shadow: inset 0 0 0 4px #f8d5c055, 0 4px 7px #4b2f2666;
  color: #fff8ef;
  font: .68rem var(--serif);
  letter-spacing: .1em;
  pointer-events: none;
}

#proposal #track figure img {
  display: block;
  width: 100%;
  border: 1px solid #d8c8b5;
}

@media (max-width: 600px) {
  #proposal .gallery {
    position: relative;
    display: block;
    width: 100%;
    padding: .65rem;
    overflow: hidden;
  }

  #proposal .gallery > #track {
    display: flex;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  #proposal .gallery > #track::-webkit-scrollbar {
    display: none;
  }

  #proposal #track figure {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  #proposal #track figure img,
  #proposal #track figure:nth-child(5) img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: 72svh !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fffefb;
  }

  #proposal .gallery > button {
    position: absolute;
    z-index: 5;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    box-shadow: 0 3px 12px #17313a38;
  }

  #proposal .gallery > button:hover,
  #proposal .gallery > button:active {
    transform: translateY(-50%);
  }

  #proposal .gallery > #prev {
    left: .85rem;
  }

  #proposal .gallery > #next {
    right: .85rem;
  }
}

/* Coastal vertical timeline for the celebration schedule. */
#schedule {
  position: relative;
  overflow: hidden;
}

#schedule::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -70px;
  width: 260px;
  height: 190px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 32% 33%, #fff9 0 4px, transparent 5px),
    linear-gradient(165deg, #d5e8e5 0 35%, #a9cfcc 36% 50%, #ead8b9 51%);
  transform: rotate(-10deg);
  opacity: .65;
}

#schedule article {
  position: relative;
  max-width: 850px;
  margin: 0 0 0 1.2rem;
  padding: 0 0 2.75rem 2.5rem;
  border: 0;
  border-left: 2px solid #6f9da2;
}

#schedule article::before {
  content: "\1F41A";
  position: absolute;
  top: -.15rem;
  left: -1.05rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 0 0 5px #dbeae7;
  color: #b7896d;
  font-size: 1rem;
}

#schedule article::after {
  content: "";
  position: absolute;
  left: .8rem;
  bottom: 1rem;
  width: 56px;
  height: 20px;
  background: radial-gradient(ellipse at center, #d5b18d 0 42%, transparent 45%) 0 0 / 18px 13px;
  opacity: .48;
  transform: rotate(-6deg);
}

#schedule article > b {
  display: block;
  margin-bottom: .55rem;
  color: #305b67;
  font: 600 clamp(1.15rem, 2vw, 1.45rem) var(--serif);
}

#schedule article p {
  margin: .45rem 0 0;
}

#schedule .map {
  margin-left: 3.7rem;
}

/* Editorial attire palette: a swatch and photograph for each colour. */
#attire .attire-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 2.5rem 0;
}

#attire .attire-palette-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#attire .attire-colour {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 0 0 .8rem;
  text-align: center;
  background: #fffaf2;
}

#attire .attire-colour span {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 1;
  margin: 0 0 .65rem;
}

#attire .attire-colour b {
  color: #685a50;
  font: 500 1.2rem var(--serif);
}

#attire .attire-colour small {
  margin-top: .15rem;
  color: #7f7166;
  font: .78rem var(--sans);
  letter-spacing: .12em;
}

#attire .attire-guide {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

#attire .attire-guide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media (max-width: 699px) {
  #schedule article {
    margin-left: .65rem;
    padding-left: 1.8rem;
  }

  #schedule .map {
    margin-left: 2.45rem;
  }

  #attire .attire-palette-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #attire .attire-colour span {
    width: 100%;
    min-height: 0;
  }

  #attire .attire-colour b {
    font-size: 1rem;
  }

  #attire .attire-colour small {
    font-size: .72rem;
    letter-spacing: .08em;
  }
}

/* Sunset-over-the-sea gift cards with clearly marked QR placeholders. */
#gift-guide .gift-transfer-details{gap:1.5rem;margin-top:2.5rem}
#gift-guide .gift-transfer-details article{position:relative;isolation:isolate;overflow:hidden;min-height:500px;margin:0;padding:2.25rem 1.5rem 2rem;display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #f5d6bb88;background:radial-gradient(circle at 50% 19%,#ffe5b7 0 7%,#efa981 8% 14%,transparent 30%),linear-gradient(180deg,#744e62 0 25%,#cf7c70 38%,#efae7d 49%,#47707a 50%,#1e4c5a 72%,#163b47 100%);box-shadow:0 16px 32px #25394335;color:#fffaf2}
#gift-guide .gift-transfer-details article::before{content:"";position:absolute;z-index:-1;right:-12%;bottom:23%;left:-12%;height:50px;background:radial-gradient(45px 13px at 45px 0,transparent 94%,#f7dfc8aa 100%) 0 0/90px 27px repeat-x;opacity:.78}
#gift-guide .gift-transfer-details article::after{content:"";position:absolute;right:-30px;bottom:-34px;width:125px;height:180px;background:radial-gradient(ellipse at center,#c9b38a 0 17%,transparent 19%) 0 0/30px 40px,linear-gradient(62deg,transparent 48%,#b39c78 49% 51%,transparent 52%);opacity:.55;transform:rotate(-16deg)}
#gift-guide .gift-icon{width:2.4rem;height:2.4rem;margin:0 0 .8rem;display:grid;place-items:center;border:1px solid #ffe2c9;border-radius:50%;color:#ffe2c9;font-size:1.2rem}
#gift-guide .gift-transfer-details h3{margin:0 0 1rem;color:#fff4e6;font-size:1.4rem;font-weight:500}
#gift-guide .gift-transfer-details p{color:#fffaf2}
#gift-guide .sample-qr{position:relative;width:132px;aspect-ratio:1;margin:auto 0 1.15rem;border:9px solid #fff;outline:1px solid #d5c5b7;background-color:#fff;background-image:repeating-conic-gradient(#172e33 0 25%,transparent 0 50%),repeating-linear-gradient(45deg,transparent 0 4px,#172e33 4px 7px,transparent 7px 11px);background-position:0 0,3px 2px;background-size:14px 14px,17px 17px}
#gift-guide .sample-qr::before,#gift-guide .sample-qr::after{content:"";position:absolute;width:25px;height:25px;border:6px solid #172e33;background:#fff}
#gift-guide .sample-qr::before{top:3px;left:3px}
#gift-guide .sample-qr::after{top:3px;right:3px}
#gift-guide .sample-qr span{position:absolute;z-index:2;right:8px;bottom:8px;left:8px;padding:2px;background:#fff;color:#7b504c;font:700 .58rem var(--sans);letter-spacing:.14em}
#gift-guide .gift-transfer-details small{position:relative;z-index:1;max-width:260px;color:#f9e8d8;line-height:1.45}
@media(min-width:900px){#gift-guide .gift-transfer-details{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Minimal gift-card finish. */
#gift-guide .gift-transfer-details article {
  min-height: 460px;
  padding: 2rem 1.5rem 1.6rem;
  border: 1px solid #dbcdbf;
  background: linear-gradient(90deg, #d99a7c, #efc49f 48%, #4f7a83 49%, #305b67) top / 100% 7px no-repeat, #fffdf9;
  box-shadow: 0 8px 22px #26353b12;
  color: var(--ink);
}

#gift-guide .gift-transfer-details article::before,
#gift-guide .gift-transfer-details article::after {
  display: none;
}

#gift-guide .gift-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-color: #c6a58f;
  color: #95675d;
  font-size: 1rem;
}

#gift-guide .gift-transfer-details h3 {
  color: var(--ink);
  font-size: 1.3rem;
}

#gift-guide .gift-transfer-details p {
  color: #4c5a5e;
}

#gift-guide .sample-qr {
  width: 120px;
  margin: auto 0 1.2rem;
  border-width: 7px;
  box-shadow: 0 0 0 1px #dfd4ca;
}

#gift-guide .gift-transfer-details small {
  color: #776b63;
}
