.products {
  --item-aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10vh;
  padding-bottom: 20vh;
  overflow: hidden;
}

.products-title {
  font-size: 230px;
  font-weight: 300;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: right;
}

.products-final-container,
.products-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(auto, 1fr));
  grid-template-rows: 1fr;
  gap: var(--default-grid-gap);
  padding: 0 var(--default-grid-margin);
}

.products-copy {
  position: sticky;
  top: 50%;
  grid-column: 1 / span 5;
  font-size: 18px;
  line-height: 1.4;
  height: min-content;
}

.products-carousel {
  position: relative;
  grid-column: 7 / span 3;
  display: flex;
  flex-direction: row;
  gap: 5vw;
  aspect-ratio: var(--item-aspect-ratio);
  z-index: -1;
  will-change: contents;
}

.products-carousel .products-item {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.products-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  will-change: contents;
}

.products-item {
  aspect-ratio: var(--item-aspect-ratio);
  will-change: position, transform, opacity;
}

.in-grid:nth-child(1) {
  top: 10vh;
  grid-column: 1 / span 2;
}

.in-grid:nth-child(2) {
  top: 45vh;
  grid-column: 3 / span 2;
}

.in-grid:nth-child(3) {
  top: 5vh;
  grid-column: 5 / span 2;
}

.in-grid:nth-child(4) {
  top: 40vh;
  grid-column: 7 / span 2;
}

.in-grid:nth-child(5) {
  top: 70vh;
  grid-column: 9 / span 2;
}

.in-grid:nth-child(6) {
  top: 30vh;
  grid-column: 11 / span 2;
}

@media only screen and (max-width: 1240px) {
  .products {
    gap: 2.5vh;
    margin-top: 10vh;
    padding-bottom: 15vh;
  }

  .products-title {
    font-size: 72px;
    text-align: center;
  }

  .products-final-container {
    display: flex;
    flex-direction: column;
    gap: 5vh;
  }

  .products-copy {
    position: static;
    font-size: 14px;
    line-height: 1.4;
  }

  .products-carousel {
    display: flex;
    flex-direction: row;
    width: calc(50vw - var(--default-grid-gap));
    /* forcing aspect ratio since if all children have position absolute break sizing on IOS */
    height: calc(calc(50vw - var(--default-grid-gap)) * 5 / 4);
    z-index: 0;
  }
}
