.rm-gift-banner {
  --rm-navy: #18274d;
  --rm-gold: #ba8a3e;
  --rm-ink: #29344d;
  --rm-paper: #faf5e9;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  color: var(--rm-ink);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255, 255, 255, .9), transparent 42%),
    linear-gradient(115deg, #fffaf0 0%, var(--rm-paper) 62%, #f2e8d3 100%);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.rm-gift-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .2;
  pointer-events: none;
  background-image: radial-gradient(#9b7950 0.55px, transparent .55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(90deg, #000, transparent 66%);
}

.rm-gift-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 5.2vw, 66px) clamp(26px, 5.2vw, 68px) 28px clamp(30px, 6vw, 76px);
}

.rm-gift-logo {
  display: block;
  width: clamp(132px, 17vw, 188px);
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(30px, 4vw, 44px);
  filter: drop-shadow(0 4px 6px rgba(24, 39, 77, .08));
}

.rm-gift-message {
  max-width: 420px;
}

.rm-gift-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #89672f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rm-gift-kicker span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--rm-gold);
}

.rm-gift-message h2 {
  margin: 0;
  color: var(--rm-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4.45vw, 57px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.rm-gift-message h2 em {
  color: #a87632;
  font-weight: 500;
}

.rm-gift-description {
  max-width: 350px;
  margin: 19px 0 25px;
  color: #586071;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.rm-gift-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 21px 0 23px;
  border: 1px solid var(--rm-navy);
  border-radius: 2px;
  background: var(--rm-navy);
  box-shadow: 0 7px 16px rgba(24, 39, 77, .12);
  color: #fff9ed;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .035em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rm-gift-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 180ms ease;
}

.rm-gift-cta:hover {
  transform: translateY(-2px);
  background: #233862;
  box-shadow: 0 10px 19px rgba(24, 39, 77, .2);
}

.rm-gift-cta:hover svg {
  transform: translateX(3px);
}

.rm-gift-cta:focus-visible {
  outline: 3px solid #c59549;
  outline-offset: 4px;
}

.rm-gift-signoff {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 30px;
  color: #7a756c;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.rm-gift-rule {
  width: 27px;
  height: 1px;
  background: #bd9a65;
}

.rm-gift-photo-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 24px 22px 72px;
  min-width: 0;
  min-height: 0;
  height: 540px;
  overflow: hidden;
  background: linear-gradient(135deg, #eee0c7, #f4ecdc 60%, #e4d0ac);
}

.rm-gift-photo-wrap::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 12%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 245, 233, .14), transparent);
}

.rm-gift-box {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(186, 138, 62, .4);
  background: #fffaf0;
  box-shadow: 0 9px 22px rgba(61, 39, 16, .12);
}

.rm-gift-box-featured {
  grid-row: 1 / 3;
}

.rm-gift-box img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .65, .25, 1);
}

.rm-gift-box figcaption {
  position: relative;
  padding: 11px 8px;
  background: #fffaf0;
  color: var(--rm-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  text-align: center;
}

.rm-gift-box:hover img {
  transform: scale(1.025);
}

.rm-photo-caption {
  position: absolute;
  right: 22px;
  bottom: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(241, 207, 148, .55);
  background: rgba(24, 39, 77, .89);
  color: #fff7e8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  letter-spacing: .01em;
  box-shadow: 0 5px 18px rgba(30, 17, 11, .2);
}

.rm-caption-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #d2a453;
  border-radius: 50%;
  color: #e9bd6e;
  font-family: Inter, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rm-gift-corner {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: calc(50% - 18px);
  width: 58px;
  height: 58px;
  color: #d2a453;
  opacity: .9;
  pointer-events: none;
}

.rm-gift-corner svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

@media (max-width: 700px) {
  .rm-gift-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rm-gift-photo-wrap {
    grid-row: 1;
    height: clamp(320px, 85vw, 410px);
    padding: 16px 14px 56px;
    gap: 10px;
  }

  .rm-gift-box figcaption {
    padding: 8px 4px;
    font-size: 12px;
  }

  .rm-photo-caption {
    right: 14px;
    bottom: 10px;
    padding-block: 6px;
    font-size: 12px;
  }

  .rm-gift-copy {
    grid-row: 2;
    padding: 28px 28px 24px;
  }

  .rm-gift-logo {
    width: 142px;
    margin-bottom: 30px;
  }

  .rm-gift-message h2 {
    max-width: 470px;
    font-size: clamp(41px, 11vw, 56px);
  }

  .rm-gift-description {
    max-width: 430px;
  }

  .rm-gift-signoff {
    margin-top: 28px;
    padding-top: 0;
  }

  .rm-gift-corner {
    top: auto;
    right: 20px;
    bottom: calc(100% - 64px);
  }
}

@media (max-width: 380px) {
  .rm-photo-caption {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
  }

  .rm-gift-copy {
    padding-inline: 22px;
  }

  .rm-gift-cta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-gift-banner *,
  .rm-gift-banner *::before,
  .rm-gift-banner *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}