/* Three ordinary actions, shown as a loose stack of real UI concepts. */
.habit-gallery {
  width: 100%;
  max-width: 26.25rem;
  min-width: 0;
  justify-self: end;
  margin: 0;
}

.habit-screenshot-stack {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 10px 12px 14px;
}

.habit-shot {
  position: relative;
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto 4 / 3;
  object-fit: contain;
  transform-origin: center;
  image-rendering: auto;
}

.habit-shot-walk {
  z-index: 1;
  width: 88%;
  margin-left: 8%;
  transform: rotate(1.2deg);
}

.habit-shot-read {
  z-index: 2;
  width: 80%;
  margin-top: -15%;
  transform: rotate(-1.4deg);
}

.habit-shot-project {
  z-index: 3;
  width: 85%;
  margin-top: -15%;
  margin-left: auto;
  transform: rotate(1deg);
}

.habit-gallery figcaption {
  max-width: 100%;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--body);
  font-size: .6875rem;
  line-height: 1.65;
  text-align: right;
  text-wrap: pretty;
}

@media (max-width: 1050px) and (min-width: 761px) {
  .habit-screenshot-stack {
    padding-inline: 8px;
  }

  .habit-shot-walk {
    width: 92%;
    margin-left: 4%;
  }

  .habit-shot-read {
    width: 86%;
  }

  .habit-shot-project {
    width: 90%;
  }
}

@media (max-width: 760px) {
  .habit-gallery {
    max-width: 22.5rem;
    justify-self: center;
  }

  .habit-screenshot-stack {
    padding: 0 6px 4px;
  }

  .habit-shot {
    transform: none;
  }

  .habit-shot-walk {
    width: 90%;
    margin-left: 6%;
  }

  .habit-shot-read {
    width: 84%;
    margin-top: -16%;
  }

  .habit-shot-project {
    width: 88%;
    margin-top: -16%;
  }

  .habit-gallery figcaption {
    margin-top: 14px;
    text-align: center;
  }
}
