@include comp(stack-card) {
  display: block;
  box-sizing: border-box;

  &.stack-card-direction-vertical {
    height: 100%;

    .stack-card-container {
      height: 100%
    }

    @include comp(stack-card-item) {
      height: 100%
    }
  }

  .stack-card-container {
    position: relative;
    @include comp(stack-card-item) {
      transition: transform linear 100ms, opacity linear 300ms;

      &:not(:first-child) {
        position: absolute;
        inset: 0;
      }
      &:first-child {
        position: relative;
      }

      & > img {
        width: 100%;
      }
    }
  }

  &:not(.stack-card-touching) {
    @include comp(stack-card-item) {
    }
  }
}
