.case-history {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

.case-history-title {
  font-size: 150px;
  font-weight: 300;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: right;
}

.case-history-container {
  display: grid;
  grid-template-columns: repeat(12, minmax(auto, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: var(--default-grid-gap);
  padding: 0 var(--default-grid-margin);
}

.case-history-copy {
  position: sticky;
  top: 35%;
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  font-size: 18px;
  line-height: 1.4;
  height: min-content;
}

.case-history-image {
  position: relative;
  overflow: hidden;
}

.case-history-image img {
  position: absolute;
  top: -25%;
  transform: scale(1.5);
  will-change: top;
}

.case-history-image:nth-of-type(1) {
  grid-column: 6 / span 3;
  aspect-ratio: 12 / 9;
}

.case-history-image:nth-of-type(2) {
  grid-column: 9 / span 4;
  aspect-ratio: 16 / 9;
}

.case-history-image:nth-of-type(3) {
  grid-column: 6 / span 7;
  aspect-ratio: 21 / 9;
}

@media only screen and (max-width: 1240px) {
  .case-history {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .case-history-title {
    font-size: 50px;
    text-align: center;
  }

  .case-history-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .case-history-copy {
    position: static;
    font-size: 14px;
    line-height: 1.4;
  }

  .case-history-image:not(:nth-of-type(3)) {
    display: none;
  }

  .case-history-image:nth-of-type(3) {
    aspect-ratio: 5 / 4;
  }
}
