.carousel {
  position: relative;
  width: 90%;
  max-width: 90vw;
  overflow: hidden;
  margin: auto;
}
.carousel-item {
  padding: var(--stdPaddingSmall);
  position: absolute;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  border: none;
  top: 0;
  background-color: var(--tabBackground);
  color: var(--tabColour);
  transform: scale(0.7);
  opacity: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.carousel-item.unpacked {
  position: relative;
  top: auto;
  min-height: fit-content;
  transform: scale(1);
  opacity: 1;
  margin-top: 0.5rem;
}

.carousel-item a {
  color: black;
}

.carousel-item a:hover {
  color: var(--compColBrt1);
  transition: color 0.3s ease-in-out;
}

.carousel-item .slide-image img {
  margin-left: auto;
  margin-right: auto;
  max-height: 70vh;
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: 30%;
  /* flex-grow: 3; */
  object-fit: contain;
}

.carousel-item .slide-text-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item .slide-text-container .tile-background {
  /* z-index: 1; */
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform: scaleX(-1);
  opacity: 0.2;
  filter: grayscale(100%);
  filter: blur(8px);
}

.carousel-item .slide-text {
  height: fit-content;
  padding: var(--stdPaddingSmall);
  text-align: left;
  flex-shrink: 2;
}

.carousel-item.active .slide-text {
  position: relative;
  z-index: 5;
}

.carousel-item div {
  height: 100%;
}

@media screen and (max-width: 900px) {
  .carousel-item {
    flex-direction: column;
  }

  .carousel-item .slide-text-container {
    margin-top: 0;
  }
  .carousel-item .slide-text img {
    display: none;
  }
  .carousel-item .tile-background {
    display: none;
  }
}
.carousel-item.active {
  z-index: 4;
  left: 0;
  transition:
    left var(--stdTransitionTime) ease-in-out,
    transform var(--stdTransitionTime) ease-in-out;
  opacity: 1;
  transform: scale(1);
  height: fit-content;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item.active {
    transition:
      left 0s,
      transform 0s;
    opacity: 1;
    transform: scale(1);
  }
}
