:root {
  --t8-green: #294d32;
  --t8-green-soft: #6f8f72;
  --t8-ivory: #faf8f3;
  --t8-paper: #fffdf8;
  --t8-beige: #e9dfcf;
  --t8-beige-deep: #d5c4ad;
  --t8-rose: #d9a6a8;
  --t8-rose-soft: #f2d8d8;
  --t8-gold: #b9965b;
  --t8-ink: #243027;
  --t8-muted: #74695d;
  --t8-line: rgba(41, 77, 50, 0.16);
  --t8-shadow: 0 18px 45px rgba(41, 77, 50, 0.08);
  --t8-shadow-soft: 0 10px 30px rgba(41, 77, 50, 0.06);
  --t8-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --t8-sans: "Inter", Arial, sans-serif;
  --t8-shell: 1120px;
  --t8-gutter: 22px;
  --t8-radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.template8-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--t8-ink);
  background: var(--t8-ivory);
  font-family: var(--t8-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.template8-page a {
  color: inherit;
  text-decoration: none;
}

.template8-page img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.template8-shell {
  width: min(100%, var(--t8-shell));
  margin: 0 auto;
  padding: 0 var(--t8-gutter);
}

.template8-section {
  position: relative;
  padding: 76px 0;
  background: #fff;
}

.template8-section:nth-child(even of .template8-section:not([hidden])) {
  background: var(--t8-ivory);
}

.template8-section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.template8-section-heading h2,
.template8-gallery-banner__content h2 {
  margin: 0;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 600;
  line-height: 1;
}

.template8-section-heading p,
.template8-intro__copy p {
  margin: 16px 0 0;
  color: var(--t8-muted);
}

.template8-kicker {
  margin: 0 0 10px;
  color: var(--t8-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.template8-separator,
.template8-mini-separator {
  width: 112px;
  height: auto;
  margin: 0 auto;
}

.template8-mini-separator {
  margin-top: 16px;
  margin-bottom: 14px;
}

.template8-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid rgba(233, 223, 207, 0.72);
  background: rgba(250, 248, 243, 0.88);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.template8-header.is-scrolled {
  background: rgba(250, 248, 243, 0.96);
  box-shadow: 0 10px 30px rgba(41, 77, 50, 0.08);
}

.template8-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 var(--t8-gutter);
}

.template8-brand {
  max-width: 210px;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
}

.template8-nav-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(41, 77, 50, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--t8-green);
  cursor: pointer;
}

.template8-nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.template8-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.template8-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.template8-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.template8-nav {
  position: fixed;
  top: 78px;
  right: var(--t8-gutter);
  display: grid;
  width: min(320px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid rgba(41, 77, 50, 0.12);
  border-radius: var(--t8-radius);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--t8-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.template8-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.template8-nav a {
  display: block;
  padding: 11px 10px;
  border-radius: 6px;
  color: var(--t8-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.template8-nav a:hover,
.template8-nav a:focus-visible {
  background: rgba(217, 166, 168, 0.16);
  color: #213f29;
}

.template8-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(36, 48, 39, 0.24);
}

.template8-nav-backdrop.is-open {
  display: block;
}

.template8-hero {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 112px var(--t8-gutter) 68px;
  place-items: center;
  overflow: hidden;
  background-image: url("/digital-invitations/template8/assets/garden-hero.webp");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.template8-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(255, 253, 248, 0.66) 0%, rgba(255, 253, 248, 0.22) 45%, transparent 75%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.3) 0%, rgba(250, 248, 243, 0.04) 42%, rgba(250, 248, 243, 0.32) 100%);
}

.template8-hero__content {
  width: min(100%, 720px);
  text-align: center;
}

.template8-hero h1 {
  margin: 18px 0 10px;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: clamp(54px, 16vw, 102px);
  font-weight: 600;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.template8-hero__date {
  margin: 0;
  color: var(--t8-ink);
  font-family: var(--t8-serif);
  font-size: clamp(24px, 7vw, 38px);
  font-weight: 500;
}

.template8-hero__tagline {
  margin: 12px 0 0;
  max-width: 100%;
  color: var(--t8-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.template8-intro::before,
.template8-program::before,
.template8-program::after,
.template8-rsvp::before,
.template8-rsvp::after {
  position: absolute;
  z-index: 0;
  display: none;
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
}

.template8-intro::before {
  top: 36px;
  left: max(18px, calc((100vw - var(--t8-shell)) / 2 - 64px));
  width: 85px;
  height: 130px;
  background-image: url("/digital-invitations/template8/assets/botanical-spray.webp");
}

.template8-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  justify-items: center;
}

.template8-intro__heading {
  margin-bottom: 0;
}

.template8-intro__copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.template8-intro__copy .template8-intro__message {
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.template8-intro__copy .template8-intro__signature {
  margin-top: 24px;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.template8-intro__copy .template8-mini-separator {
  margin-left: auto;
}

.template8-intro__image {
  position: relative;
  width: min(620px, calc(100% - 32px));
  margin: 8px auto;
  padding: 10px;
  border: 1px solid var(--t8-line);
  border-radius: 24px;
  background: var(--t8-ivory);
  box-shadow: var(--t8-shadow-soft);
}

.template8-intro__image::before,
.template8-intro__image::after {
  position: absolute;
  z-index: 1;
  width: clamp(64px, 10vw, 110px);
  aspect-ratio: 2 / 3;
  content: "";
  background: url("/digital-invitations/template8/assets/botanical-spray.webp") center / contain no-repeat;
  pointer-events: none;
}

.template8-intro__image::before {
  bottom: -18px;
  left: -30px;
  transform: rotate(-12deg);
}

.template8-intro__image::after {
  top: -18px;
  right: -30px;
  transform: rotate(168deg);
}

.template8-intro__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.template8-family__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}

.template8-family__member {
  padding: 28px 20px;
  border: 1px solid var(--t8-line);
  border-radius: var(--t8-radius);
  text-align: center;
}

.template8-family__member h3 {
  margin: 0;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.template8-story-gallery {
  margin-top: 40px;
  scroll-margin-top: 88px;
}

.template8-carousel {
  max-width: 920px;
  margin: 0 auto;
}

.template8-carousel__photos {
  position: relative;
  overflow: hidden;
  border-radius: var(--t8-radius);
  background: var(--t8-paper);
}

.template8-carousel__slide {
  margin: 0;
}

.template8-carousel__slide[hidden] {
  display: none;
}

.template8-carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.template8-carousel__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(41, 77, 50, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  color: var(--t8-green);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.template8-carousel__arrow--previous { left: 12px; }
.template8-carousel__arrow--next { right: 12px; }

.template8-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.template8-carousel__dots button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.template8-carousel__dots button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--t8-beige);
}

.template8-carousel__dots button[aria-current="true"]::after {
  width: 28px;
  background: var(--t8-green);
}

.template8-carousel:focus-visible,
.template8-carousel button:focus-visible {
  outline: 3px solid var(--t8-gold);
  outline-offset: 3px;
}

.template8-detail-cards {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(41, 77, 50, 0.1);
  border-radius: var(--t8-radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--t8-shadow-soft);
}

.template8-detail-card {
  display: grid;
  min-height: 275px;
  padding: 34px 24px;
  place-items: center;
  text-align: center;
}

.template8-detail-card + .template8-detail-card {
  border-top: 1px solid rgba(41, 77, 50, 0.1);
}

.template8-detail-card img {
  width: 108px;
  height: 92px;
  object-fit: contain;
}

.template8-detail-card h3 {
  margin: 18px 0 8px;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.template8-detail-card p {
  margin: 0;
}

.template8-detail-card__primary {
  color: var(--t8-ink);
  font-weight: 700;
}

.template8-detail-card__secondary {
  color: var(--t8-muted);
  font-size: 15px;
}

.template8-palette {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.template8-palette__swatch {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(41, 77, 50, 0.12);
}

.template8-palette__swatch--green {
  background: var(--t8-green);
}

.template8-palette__swatch--rose {
  background: var(--t8-rose);
}

.template8-palette__swatch--beige {
  background: var(--t8-beige);
}

.template8-program::before {
  top: 88px;
  left: max(16px, calc((100vw - var(--t8-shell)) / 2 - 54px));
  width: 80px;
  height: 135px;
  background-image: url("/digital-invitations/template8/assets/botanical-spray.webp");
}

.template8-program::after {
  right: max(10px, calc((100vw - var(--t8-shell)) / 2 - 60px));
  bottom: 76px;
  width: 90px;
  height: 145px;
  background-image: url("/digital-invitations/template8/assets/botanical-spray.webp");
  transform: scaleX(-1);
}

.template8-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.template8-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 25px;
  width: 1px;
  background: var(--t8-line);
  content: "";
}

.template8-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 0 0 26px;
}

.template8-timeline__item:last-child {
  padding-bottom: 0;
}

.template8-timeline__marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(41, 77, 50, 0.16);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(41, 77, 50, 0.08);
}

.template8-timeline__marker img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.template8-timeline__card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(41, 77, 50, 0.09);
  border-radius: var(--t8-radius);
  background: rgba(250, 248, 243, 0.82);
}

.template8-timeline__card time {
  display: block;
  color: var(--t8-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.template8-timeline__card h3 {
  margin: 4px 0 0;
  color: var(--t8-green);
  font-family: var(--t8-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.template8-gallery-banner {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  background-image: var(--template8-gallery-bg, url("/digital-invitations/template8/assets/gallery-garden.webp"));
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.template8-gallery-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.14) 0%, rgba(250, 248, 243, 0.62) 50%, rgba(250, 248, 243, 0.14) 100%);
}

.template8-gallery-banner__content {
  width: min(100%, 720px);
  padding: 56px var(--t8-gutter);
  text-align: center;
}

.template8-gallery-banner__content h2 {
  font-size: clamp(44px, 12vw, 78px);
}

.template8-outline-button,
.template8-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--t8-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.template8-outline-button {
  margin-top: 24px;
  padding: 0 30px;
  border: 1px solid rgba(41, 77, 50, 0.55);
  background: rgba(255, 253, 248, 0.72);
  color: var(--t8-green);
}

.template8-outline-button:hover,
.template8-outline-button:focus-visible {
  background: var(--t8-green);
  color: #fffdf8;
  transform: translateY(-1px);
}

.template8-rsvp::before {
  top: 46px;
  left: max(12px, calc((100vw - var(--t8-shell)) / 2 - 86px));
  width: 132px;
  height: 198px;
  background-image: url("/digital-invitations/template8/assets/botanical-spray.webp");
}

.template8-rsvp::after {
  right: max(8px, calc((100vw - var(--t8-shell)) / 2 - 88px));
  bottom: 48px;
  width: 146px;
  height: 219px;
  background-image: url("/digital-invitations/template8/assets/botanical-spray.webp");
  transform: scaleX(-1);
}

.template8-rsvp__card {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 34px 18px;
  border: 1px solid rgba(41, 77, 50, 0.1);
  border-radius: var(--t8-radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--t8-shadow-soft);
}

.template8-rsvp__invitee {
  max-width: 640px;
  margin: -8px auto 22px;
  color: var(--t8-green);
  text-align: center;
}

.template8-rsvp-form {
  display: grid;
  gap: 18px;
}

.template8-rsvp-form__grid {
  display: grid;
  gap: 14px;
}

.template8-rsvp-form label,
.template8-rsvp-form__message {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.template8-rsvp-form span {
  color: var(--t8-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.template8-rsvp-form [data-template8-guests-wrap].is-muted {
  opacity: 0.62;
}

.template8-rsvp-form input,
.template8-rsvp-form select,
.template8-rsvp-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(41, 77, 50, 0.16);
  border-radius: 6px;
  background: rgba(250, 248, 243, 0.8);
  color: var(--t8-ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.template8-rsvp-form input,
.template8-rsvp-form select {
  min-height: 52px;
  padding: 0 15px;
}

.template8-rsvp-form textarea {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
}

.template8-rsvp-form input:focus,
.template8-rsvp-form select:focus,
.template8-rsvp-form textarea:focus {
  border-color: rgba(41, 77, 50, 0.46);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(111, 143, 114, 0.14);
}

.template8-submit {
  width: 100%;
  border: 1px solid var(--t8-green);
  background: var(--t8-green);
  color: #fffdf8;
}

.template8-submit:hover,
.template8-submit:focus-visible {
  background: #213f29;
  transform: translateY(-1px);
}

.template8-rsvp-form__success,
.template8-alert {
  margin: 0;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
}

.template8-rsvp-form__success,
.template8-alert--success {
  border: 1px solid rgba(41, 77, 50, 0.2);
  background: rgba(111, 143, 114, 0.14);
  color: var(--t8-green);
}

.template8-alert--danger {
  border: 1px solid rgba(160, 58, 58, 0.2);
  background: rgba(160, 58, 58, 0.08);
  color: #8b3434;
}

.template8-alert--warning {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(185, 150, 91, 0.28);
  background: rgba(185, 150, 91, 0.12);
  color: #6e5530;
}

.template8-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 42px var(--t8-gutter);
  border-top: 1px solid rgba(41, 77, 50, 0.1);
  background: #f4efe6;
  color: var(--t8-green);
  text-align: center;
}

.template8-footer p {
  margin: 0;
  font-family: var(--t8-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.template8-footer > img {
  width: 112px;
  height: auto;
}

.template8-footer span {
  color: var(--t8-gold);
  font-size: 22px;
  line-height: 1;
}

.template8-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(36, 48, 39, 0.48);
}

.template8-gallery-modal.is-open {
  display: flex;
}

.template8-gallery-modal__panel {
  position: relative;
  width: min(100%, 820px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 34px 18px 22px;
  border-radius: var(--t8-radius);
  background: var(--t8-paper);
  box-shadow: 0 24px 80px rgba(36, 48, 39, 0.25);
}

.template8-gallery-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(41, 77, 50, 0.14);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--t8-green);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.template8-gallery-modal__grid {
  display: grid;
  gap: 14px;
}

.template8-gallery-modal__grid img {
  width: 100%;
  aspect-ratio: 355 / 234;
  border-radius: var(--t8-radius);
  object-fit: cover;
  box-shadow: var(--t8-shadow-soft);
}

body.template8-modal-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  :root {
    --t8-gutter: 30px;
  }

  .template8-section {
    padding: 94px 0;
  }

  .template8-header__inner {
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
  }

  .template8-brand {
    position: static;
    flex-shrink: 0;
    max-width: 240px;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .template8-nav-toggle,
  .template8-nav-backdrop {
    display: none;
  }

  .template8-nav {
    position: static;
    display: flex;
    width: auto;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .template8-nav a {
    padding: 8px 0;
    border-radius: 0;
    font-size: 12px;
  }

  .template8-nav a:hover,
  .template8-nav a:focus-visible {
    background: transparent;
    color: var(--t8-gold);
  }

  .template8-hero {
    min-height: 620px;
    padding-top: 130px;
  }

  .template8-intro::before,
  .template8-program::before,
  .template8-program::after {
    display: block;
  }

  .template8-detail-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .template8-detail-card + .template8-detail-card {
    border-top: 0;
    border-left: 1px solid rgba(41, 77, 50, 0.1);
  }

  .template8-gallery-banner {
    min-height: 390px;
  }

  .template8-rsvp__card {
    padding: 48px;
  }

  .template8-rsvp-form__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr) minmax(150px, 0.7fr);
  }

  .template8-submit {
    width: auto;
    justify-self: center;
    padding: 0 38px;
  }

  .template8-gallery-modal__panel {
    padding: 48px;
  }

  .template8-gallery-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .template8-timeline::before {
    left: 50%;
    transform: translateX(-0.5px);
  }

  .template8-timeline__item {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .template8-timeline__marker {
    grid-column: 2;
  }

  .template8-timeline__card {
    width: min(100%, 350px);
  }

  .template8-timeline__item:nth-child(odd) .template8-timeline__card {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .template8-timeline__item:nth-child(even) .template8-timeline__card {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .template8-rsvp::before,
  .template8-rsvp::after {
    display: block;
  }
}

@media (max-width: 430px) {
  .template8-brand {
    max-width: 190px;
    font-size: 21px;
  }

  .template8-hero__tagline {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .template8-section-heading h2,
  .template8-intro__copy h2 {
    font-size: 38px;
  }

  .template8-footer p {
    font-size: 23px;
  }
}
