/* Homepage Crystal Quest feature */
.stories-window {
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  background: #0b3442;
  color: #fff;
}

.stories-window .collection-copy {
  position: relative;
  order: 2;
  overflow: hidden;
  background: #0b3442;
}

.stories-window .collection-copy::before,
.stories-window .collection-copy::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 260px;
  opacity: .16;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 12%, #87a06f 0 9%, transparent 10%),
    radial-gradient(ellipse at 22% 30%, #87a06f 0 8%, transparent 9%),
    radial-gradient(ellipse at 76% 43%, #87a06f 0 9%, transparent 10%),
    radial-gradient(ellipse at 28% 63%, #87a06f 0 8%, transparent 9%),
    linear-gradient(70deg, transparent 48%, #87a06f 49% 51%, transparent 52%);
}

.stories-window .collection-copy::before {
  left: -66px;
  bottom: -74px;
  transform: rotate(15deg);
}

.stories-window .collection-copy::after {
  right: -68px;
  top: -76px;
  transform: rotate(195deg);
}

.stories-window .collection-copy h3,
.stories-window .collection-copy p,
.stories-window .collection-copy a {
  position: relative;
  z-index: 1;
}

.stories-window .collection-copy h3 {
  color: #fff;
}

.stories-window .collection-copy > p:not(.collection-kicker) {
  color: #f7f1e5;
}

.collection-kicker {
  margin-bottom: 14px !important;
  color: #e7bd64 !important;
  font: 700 .72rem/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.crystal-cover-stage {
  min-height: 520px;
  padding: 0;
  background: #f8f2e7;
}

.crystal-cover-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.crystal-button {
  background: #c69438;
}

.crystal-button:hover {
  background: #a87725;
}

/* Children’s Stories page */
.crystal-product-page {
  background: #fbf7ed;
}

.crystal-story-main {
  max-width: 1180px;
  padding-top: 58px;
}

.crystal-story-intro {
  text-align: center;
}

.crystal-story-heading {
  max-width: 840px;
  margin: 0 auto 34px;
}

.crystal-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 16px;
  color: #b48131;
  font: 700 .78rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.crystal-eyebrow span {
  width: 92px;
  height: 1px;
  background: #c7a366;
}

.crystal-story-heading h1 {
  margin: 0;
  color: #09284b;
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.crystal-story-heading > p:last-child {
  margin: 18px 0 0;
  color: #465449;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.book-mockup {
  position: relative;
  display: inline-block;
  width: min(45vw, 440px);
  margin: 8px auto 46px;
  perspective: 1200px;
}

.book-mockup::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -12px;
  top: 10px;
  bottom: 10px;
  width: 18px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, #d1c3a7, #fffdf7 38%, #b8aa90 100%);
  box-shadow: 10px 13px 22px rgba(37, 32, 25, .14);
  transform: skewY(2deg);
}

.book-mockup::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 6%;
  right: -4%;
  bottom: -18px;
  height: 35px;
  border-radius: 50%;
  background: rgba(24, 34, 36, .18);
  filter: blur(18px);
}

.book-mockup img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px 7px 7px 3px;
  box-shadow: 0 18px 32px rgba(25, 30, 35, .17);
  transform: rotateY(-2.5deg);
  transform-origin: left center;
}

.crystal-story-copy {
  max-width: 900px;
  margin: 0 auto;
}

.crystal-story-copy h2 {
  margin: 0;
  color: #09284b;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.series-title {
  margin: 8px 0 0;
  color: #41513d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.story-divider {
  display: block;
  width: 122px;
  height: 1px;
  margin: 28px auto;
  background: #c49a52;
}

.crystal-story-copy > p {
  color: #172e50;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.62;
}

.crystal-story-copy .story-lead {
  margin-bottom: 18px;
  font-weight: 700;
}

.amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 18px;
  padding: 16px 30px;
  border-radius: 7px;
  background: #c69438;
  color: #fff;
  font: 750 .82rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s ease, transform .18s ease;
}

.amazon-button:hover {
  background: #a87725;
  transform: translateY(-2px);
}

.crystal-product-page .gallery-section {
  margin-top: 90px;
  padding-top: 58px;
  border-top: 1px solid rgba(180, 129, 49, .35);
}

.crystal-product-page .crystal-gallery {
  align-items: stretch;
}

.crystal-product-page .crystal-gallery .gallery-slide {
  display: flex;
  flex: 0 0 min(31%, 330px);
  flex-direction: column;
}

.crystal-product-page .crystal-gallery .gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f2ecdf;
}

.crystal-product-page .crystal-gallery .gallery-slide figcaption {
  margin-top: auto;
  color: #102734;
  font-weight: 700;
  text-align: center;
}

.crystal-product-page .product-note em {
  color: #b48131;
}

@media (max-width: 980px) {
  .stories-window {
    grid-template-columns: 1.28fr 1fr !important;
  }
}

@media (max-width: 760px) {
  .stories-window {
    display: flex !important;
    flex-direction: column;
  }

  .stories-window .collection-copy {
    order: 2;
  }

  .stories-window .collection-photo {
    order: 1;
  }

  .crystal-cover-stage,
  .crystal-cover-stage img {
    min-height: 0;
  }

  .crystal-cover-stage img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 802 / 828;
    object-fit: cover !important;
  }

  .book-mockup {
    width: min(58vw, 390px);
  }
}

@media (max-width: 620px) {
  .crystal-story-main {
    padding: 42px 18px 64px;
  }

  .crystal-story-heading {
    margin-bottom: 28px;
  }

  .crystal-eyebrow {
    gap: 11px;
    font-size: .66rem;
    letter-spacing: .18em;
  }

  .crystal-eyebrow span {
    width: 55px;
  }

  .crystal-story-heading h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .crystal-story-heading > p:last-child {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .book-mockup {
    width: min(71vw, 340px);
    margin-bottom: 42px;
  }

  .crystal-story-copy h2 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .series-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .story-divider {
    margin: 23px auto;
  }

  .crystal-story-copy > p {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .amazon-button {
    width: 100%;
  }

  .crystal-product-page .gallery-section {
    margin-top: 68px;
    padding-top: 44px;
  }

  .crystal-product-page .crystal-gallery {
    gap: 12px;
  }

  .crystal-product-page .crystal-gallery .gallery-slide {
    flex-basis: 47%;
  }

  .crystal-product-page .crystal-gallery .gallery-slide img {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .crystal-product-page .crystal-gallery .gallery-slide figcaption {
    padding: 10px 8px;
    font-size: .76rem;
    line-height: 1.25;
  }
}
