.content {
  display: grid;
  width: 100%;
  margin: 10vh 0;
}

.section:last-of-type {
  margin-bottom: 5vh;
}

.next-button {
  justify-self: end;
  position: fixed;
  bottom: 5vh;
  right: 4vw;
  z-index: 2;
  box-shadow: var(--elevation-200);
}

/* Navigation */
.sidebar {
  display: none;
}

/* Intro */
.intro {
  width: 100%;
}

.overview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@supports (text-wrap: balance) {
  .overview {
    text-wrap: balance;
  }
}

.box-shadow {
  box-shadow: var(--elevation-200);
}

.drop-shadow {
  filter: var(--drop-shadow);
}

.rounded {
  border-radius: 4px;
}

[class^=stack] > figure {
  margin: var(--space-500) 0;
}

.inset {
  max-width: 50%;
}

.tall {
  max-height: 640px;
  width: auto;
  max-width: 100%;
}

.phone {
  position: relative;
  top: 0;
  left: 0;
  aspect-ratio: auto;
}

.phone-frame {
  position: relative;
  top: 0;
  left: 0;
}

.phone-image {
  position: absolute;
  top: 2.5%;
  left: 5.5%;
  height: 95%;
}
@supports (mask-image: url(/images/phone-mask.png)) {
  .phone-image {
    mask-image: url(/images/phone-mask.png);
    mask-repeat: no-repeat;
    mask-size: 100%;
  }
}
@supports (-webkit-mask-image: url(/images/phone-mask.png)) {
  .phone-image {
    -webkit-mask-image: url(/images/phone-mask.png);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100%;
  }
}

figure img, figure video {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
}

figcaption {
  font-size: 15px;
  line-height: 1.25rem;
  margin-top: var(--space-300);
  color: var(--text-tertiary);
  text-align: center;
}
@supports (text-wrap: balance) {
  figcaption {
    text-wrap: balance;
  }
}

.row {
  display: flex;
  justify-content: space-around;
  max-width: 100%;
  margin: var(--space-400) 0;
}
.row > * {
  flex-basis: 40%;
}

.carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  margin: var(--space-400) 0;
  scrollbar-width: thin;
}
.carousel > * {
  flex: 0 0 90%;
}
.carousel > * + * {
  margin-left: var(--space-400);
}

.background {
  padding: var(--space-500);
  border-radius: 8px;
  background: var(--background-tertiary);
}

.carousel-tall > * {
  flex: 0 0 40%;
}

.carousel-long > * {
  flex: 0 0 66%;
}
.carousel-long > * + * {
  margin-left: var(--space-500);
}

.results {
  flex-direction: row;
  text-align: left;
  justify-content: space-between;
}
.results p {
  color: var(--text-secondary);
}
.results > * {
  flex-basis: auto;
}
.results > * + * {
  margin-left: var(--space-500);
}

.single-column {
  max-width: 600px;
  margin: 10vh auto;
}

/* Interact Project  */
.review-card {
  background-color: var(--background-secondary);
  border-radius: 8px;
  padding: 12px;
}

.review-card-caption {
  color: var(--text-secondary);
}

.review-card-rating {
  color: #EE9A35;
}

.overview > div + div {
  margin-top: var(--space-300);
}

@media screen and (min-width: 800px) {
  .main-navigation .logo {
    display: flex;
  }
  .overview {
    flex-direction: row;
  }
  .overview > div + div {
    margin-left: var(--space-300);
    margin-top: 0;
  }
  .content-main {
    grid-column: 2;
  }
  .content {
    grid-gap: 0 10%;
  }
  .carousel-tall > * {
    flex: 0 0 40%;
  }
  .carousel-long > * {
    flex: 0 0 33%;
  }
  .results > * {
    flex-basis: auto;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    justify-content: right;
    position: sticky;
    top: calc(10vh + 112px);
    width: max-content;
    height: max-content;
  }
  .next-button {
    grid-column: 2;
    position: static;
    z-index: 0;
    box-shadow: none;
  }
  .review-card {
    padding: 16px;
  }
}
