:root {
  --box-shadow: #0000001c;
  --box-shadow-border: #0000000f;
}

.carousel {
  padding-top: 3rem;
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.carousel__prev,
.carousel__next {
  position: absolute;
  bottom: -15%;
  transition: transform 0.25s ease;
}

.carousel__prev:hover,
.carousel__next:hover {
  transform: scale(1.25);
}

.carousel__prev {
  left: 40%;
}

.carousel__next {
  right: 40%;
}

.carousel__body {
  width: 100%;
  padding: 50px 0 120px 0;
}

.carousel_slider {
  position: relative;
  transition: transform 1s ease-in-out;
  background: transparent;
  white-space: nowrap;
}

.slider_item {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  margin-left: 20px;
  margin-right: 20px;
}

.frame_3d {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
  transform-style: preserve-3d;
}

.frame_3d::after {
  content: '';
  position: absolute;
  bottom: -20%;
  width: 100%;
  height: 30px;
  transform: rotateX(90deg) translate3d(0px, -20px, 0px);
  opacity: 0.85;
}

.frame_3d_box {
  display: flex;
  align-items: center;
  vertical-align: middle;
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

purple {
  color: var(--violetdark);
  font-size: 0.9em;
  width: inherit;
  overflow-wrap: break-word;
}

.frame_3d_box_front {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.frame_3d_box_front img {
  max-width: inherit;
  max-height: inherit;
}

.frame_3d_box_front span {
  margin-top: 0.8em;
  width: inherit;
  overflow-wrap: break-word;
  white-space: wrap !important;
}

.frame_3d_box_left,
.frame_3d_box_right {
  top: 0;
  width: 40px;
  backface-visibility: hidden;
}

.frame_3d_box_left {
  left: 0;
  border-left-width: 5px;
  transform: translate3d(1px, 0, -40px) rotateY(-90deg);
  transform-origin: 0%;
}

.frame_3d_box_right {
  right: 0;
  border-right-width: 5px;
  transform: translate3d(-1px, 0, -40px) rotateY(90deg);
  transform-origin: 100%;
}

.scroll_left {
  position: absolute;
  top: 42vh;
  left: 1vw;
  color: black;
  font-size: 3em;
  font-family: Quicksand;
  user-select: none;
  z-index: 6;

  transition-duration: text-shadow 200ms;
}

.scroll_right {
  position: absolute;
  top: 42vh;
  right: 1vw;
  color: black;
  font-size: 3em;
  font-family: Quicksand;
  user-select: none;
  z-index: 6;

  transition-duration: text-shadow 5000ms;
}

.scroll_left:hover, .scroll_right:hover {
  cursor: pointer;
  text-shadow: 0 0 1px black, 0 0 1px black;
}

.scene, .previous-button, .next-button {
  display: none;
}

@media only screen and (max-width: 480px), only screen and (max-device-width: 480px) {
  .carousel, .scroll_left, .scroll_right {
    display: none;
  }

  .marquee {
    margin-bottom: 0 !important;
  }

  .scene {
    display: block;
    position: relative;
    width: 90vw;
    min-height: 70vh;
    perspective: 1000px;
    overflow: hidden;
  }

  .carousel_m {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
  }

  .carousel__cell {
    background-color: white;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    position: absolute;
    width: 90vw;
    height: 70vh;
    font-size: 80px;
    font-weight: bold;
    color: var(--violetdark);
    text-align: center;
    transition: transform 1s, opacity 1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .carousel__cell img {
    max-width: 90vw;
    width: auto;
    max-height: 40vh;
  }

  .small_link {
    font-weight: normal;
    color: var(--violetdark);
    font-size: 0.7em;
    font-style: normal;
    border-radius: 0.6em;
    border: 3px solid var(--violetdark);
    margin: 0.3em;
    padding: 0.2em 0.4em;
    padding-top: 0.3em;
    text-align: center;
  }

  .small_t {
    margin-top: 0.3em;
    font-style: italic;
  }

  .small_cc {
    font-weight: normal;
    color: black;
    font-size: 0.7em;
    font-style: normal;
  }

  .carousel-controls {
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40%;
    margin-bottom: -1em;
  }

  .previous-button, .next-button {
    color: black;
    font-size: 7em;
    font-family: Quicksand;
    transform: rotate(90deg);
    display: inline-block;
    text-shadow: 0 0 1px black, 0 0 1px black;
  }
}