.template__illustration {
  border: 1px solid $palette-neutral-200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  overflow: hidden;
  position: relative;
  aspect-ratio: 95 / 48;

  @include rounded($rounded-md);

  &::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    z-index: 1;

    &:hover {
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0) 100%
      );
    }
  }

  &:hover {
    &::after {
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0) 100%
      );
    }
  }
}

.template__illustration-image {
  line-height: 0;
  position: relative;
  z-index: 2;
  width: 70%;

  .template__illustration:hover & {
    animation: scale-template-illustration 0.5s forwards;
    box-shadow: 0 6px 32px 0 rgba(7, 8, 16, 0.04);
  }
}

.template__illustration--red {
  background: $palette-red-50;
}

.template__illustration--green {
  background: $palette-green-50;
}

.template__illustration--blue {
  background: $palette-blue-50;
}

.template__illustration--magenta {
  background: $palette-magenta-50;
}

.template__illustration--purple {
  background: $palette-purple-50;
}

.template__illustration--yellow {
  background: $palette-yellow-50;
}

@keyframes scale-template-illustration {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}
