.screenshots-container {
  box-sizing: border-box;
  align-self: stretch;
  background-color: var(--gray-100);
  padding: var(--padding-77xl) 0;
  max-width: 100%;
  text-align: left;
  font-size: var(--display-md-semibold-size);
  color: var(--base-white);
  font-family: var(--text-md-regular);
}

.screenshots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 1280px;
  padding: 0 var(--padding-13xl);
  gap: var(--gap-13xl);
  max-width: 1920px;
  margin: auto;
}

.screenshots-item {
  display: flex;
  justify-content: flex-start;
  width: 384px;
  height: 550px;
  border-radius: var(--br-29xl);
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--padding-21xl) var(--padding-21xl) 48.4px;
  box-sizing: border-box;
}

.screenshots-item:first-of-type {
  justify-content: space-between;
  background-color: var(--color-black);
}

.new-apps-we-love {
  align-self: center;
}

.screenshots-item:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--accent-secondary-500);
}

.screenshots-item:last-of-type {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  background-color: var(--accent-primary-500);
}

.space-black-icon {
  transform: scale(0.5);
  position: absolute;
  bottom: -274px;
  z-index: 1;
}

.iphone-15-pro-portrait-left-mo {
  transform: scale(0.5);
  position: absolute;
  right: -184px;
  bottom: -280px;
}

@media screen and (max-width: 1900px) {
  .screenshots {
    max-width: 100%;
  }
}

@media screen and (max-width: 1280px) and (min-width: 801px) {
  .screenshots {
    margin: 0;
    justify-content: unset;
  }

  .screenshots-item {
    flex: 1;
  }

  .screenshots-item:first-of-type {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 950px) {
  .screenshots-item {
    padding-top: var(--padding-7xl);
    padding-bottom: 31px;
  }
}

@media screen and (max-width: 800px) {
  .screenshots {
    flex-direction: column;
  }

  .screenshots-item {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .screenshots-item {
    height: 450px;
  }

  .space-black-icon {
    transform: scale(0.4);
    bottom: -320px;
  }

  .iphone-15-pro-portrait-left-mo {
    transform: scale(0.4);
    right: -230px;
    bottom: -340px;
  }
}

/* Below 1280px the download card spans the full width, above the two phone cards. Size it to
   its content instead of the fixed card height, which left a tall empty gap above the laurel,
   and centre everything in it. */
@media screen and (max-width: 1280px) {
  .screenshots-item:first-of-type {
    height: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .screenshots-item:first-of-type .screen-parent,
  .screenshots-item:first-of-type .screen {
    align-items: center;
  }

  .screenshots-item:first-of-type .store-badges {
    justify-content: center;
  }
}

@media screen and (max-width: 450px) {
  .screenshots-item:first-of-type {
    padding-left: 24px;
    padding-right: 24px;
  }
}
