:root {
  --collection-green: #294e46;
  --collection-green-dark: #1f3d37;
  --collection-gold: #b3945f;
  --collection-cream: #f4f0e8;
  --collection-line: #dfe5e1;
  --collection-ink: #27322f;
}

.collection-page .site-container {
  max-width: 1400px;
  overflow: visible;
  background: #f8f9fa;
}

.collection-page main,
.collection-page .site-container {
  color: var(--collection-ink);
}

.collection-page .collection-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(29, 61, 54, .98) 0%, rgba(40, 74, 66, .9) 47%, rgba(40, 74, 66, .2) 100%),
    url("/img/cem_banner.jpg") center right / cover no-repeat;
}

.collection-page .collection-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.collection-page .collection-kicker {
  margin-bottom: .55rem;
  color: var(--collection-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.collection-page .collection-hero h1 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
}

.collection-page .collection-hero__content > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 1.15rem;
  opacity: .92;
}

.collection-page .collection-jump {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -38px auto 0;
  overflow: hidden;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 46, 40, .16);
}

.collection-page .collection-jump a {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 1.2rem 1.35rem;
  border-right: 1px solid #e3e7e4;
  color: var(--collection-ink);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.collection-page .collection-jump a:last-child {
  border-right: 0;
}

.collection-page .collection-jump a:hover {
  color: var(--collection-green);
  background: var(--collection-cream);
}

.collection-page .collection-jump a > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--collection-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.collection-page .collection-jump small {
  opacity: .7;
}

.collection-page .collection-intro {
  max-width: 850px;
  margin: 5rem auto 3.5rem;
  padding: 0 1rem;
}

.collection-page .collection-intro h2,
.collection-page .collection-heading h2 {
  color: var(--collection-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.collection-page .collection-intro p,
.collection-page .collection-heading > p,
.collection-page .collection-heading > div:last-child {
  font-size: 1.05rem;
  line-height: 1.75;
}

.collection-page .collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 clamp(.75rem, 3vw, 2rem) 2rem;
  padding-top: 2.75rem;
  scroll-margin-top: 100px;
}

.collection-page .collection-heading > p,
.collection-page .collection-heading > div:last-child {
  width: min(52%, 620px);
  margin-bottom: 0;
}

.collection-page .collection-heading--detailed {
  align-items: start;
}

/* All memorial product rows and cards. */
.collection-page .memorial-row {
  padding: 0 clamp(.25rem, 2vw, 1.25rem);
}

.collection-page .memorial-row > [class*="col-md-4"] {
  display: flex;
  padding-bottom: 1.5rem;
}

.collection-page .memorial-row .card {
  width: 100%;
  max-width: none !important;
  overflow: hidden;
  border: 1px solid var(--collection-line) !important;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 61, 55, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-page .memorial-row .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 28px rgba(31, 61, 55, .14);
}

.collection-page .memorial-row .card-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.2rem;
}

.collection-page .memorial-row .card-body > a {
  color: inherit;
  text-decoration: none;
}

.collection-page .memorial-row .card-title {
  margin: 0 0 .7rem;
  color: var(--collection-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.collection-page .memorial-row .card-img {
  display: block;
  width: 100%;
  height: clamp(260px, 28vw, 390px);
  padding: .75rem;
  object-fit: contain;
  border-radius: .45rem;
  background: linear-gradient(145deg, #fafafa, #edf1ee);
}

.collection-page .memorial-row .card-text {
  flex: 1;
  margin: 0;
  padding-top: .85rem;
  line-height: 1.6;
}

.collection-page .memorial-row hr {
  margin: .8rem 0 0;
  opacity: .12;
}

.collection-page .collection-back-top {
  display: inline-block;
  margin: 1rem clamp(.75rem, 3vw, 2rem) 2rem;
  color: var(--collection-green);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .collection-page .site-container {
    margin-top: 0 !important;
    border-radius: 0 !important;
  }

  .collection-page .collection-hero {
    min-height: 360px;
    padding: 2.5rem 1.25rem 4rem;
    background:
      linear-gradient(90deg, rgba(29, 61, 54, .98), rgba(40, 74, 66, .76)),
      url("/img/cem_banner.jpg") center / cover no-repeat;
  }

  .collection-page .collection-jump {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .collection-page .collection-jump a {
    border-right: 0;
    border-bottom: 1px solid #e3e7e4;
  }

  .collection-page .collection-jump a:last-child {
    border-bottom: 0;
  }

  .collection-page .collection-heading {
    display: block;
  }

  .collection-page .collection-heading > p,
  .collection-page .collection-heading > div:last-child {
    width: 100%;
    margin-top: 1rem;
  }

  .collection-page .memorial-row .card-img {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-page .card,
  .collection-page .collection-jump a {
    transition: none !important;
  }
}
