.merchant-stories {
  padding-bottom: 70px;
}

.stories-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: end;
}

.stories-heading h2 {
  max-width: 760px;
}

.stories-heading > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 250px 250px;
  gap: 18px;
  margin-top: 58px;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: 0 18px 48px rgba(25, 19, 63, 0.12);
}

.story-large {
  grid-row: 1 / 3;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 46, 0) 35%, rgba(20, 16, 46, 0.82) 100%);
}

.story-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card:hover img {
  transform: scale(1.035);
}

.story-overlay {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: #fff;
}

.story-overlay span {
  color: #cbc2ff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-overlay h3 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.story-large .story-overlay {
  bottom: 34px;
  left: 36px;
}

.story-large .story-overlay h3 {
  font-size: 34px;
}

.image-disclosure {
  margin: 12px 2px 0;
  color: #aaa6b4;
  font-size: 10px;
  text-align: right;
}

@media (max-width: 980px) {
  .stories-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stories-heading > p {
    max-width: 650px;
  }

  .story-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px 270px;
  }

  .story-large {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (max-width: 650px) {
  .merchant-stories {
    padding-bottom: 45px;
  }

  .story-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 370px 245px 245px;
    margin-top: 38px;
  }

  .story-large {
    grid-column: auto;
  }

  .story-overlay,
  .story-large .story-overlay {
    bottom: 22px;
    left: 22px;
  }

  .story-overlay h3,
  .story-large .story-overlay h3 {
    font-size: 25px;
  }

  .image-disclosure {
    text-align: left;
  }
}
