.carousel {
  padding: 20px;
  perspective: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 165px;
}
.carousel > * {
  flex: 0 0 auto;
}
.carousel figure {
  margin-top: 3rem;
  margin-bottom: 4.5rem;
  width: 300px;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  transform-origin: 50% 50% -482.8427124746px;
}
.carousel figure div p {
  margin-top: 15px;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  font-weight: 500;
  color: #fff;
  filter: drop-shadow(0 1px 2.5px rgb(0, 0, 0));
}
.carousel figure div img {
  height: 90px;
  align-self: center;
  filter: drop-shadow(0 1px 2.5px rgb(0, 0, 0));
}
.carousel figure a {
  height: 100%;
  width: 100%;
  padding: 55px 0px 25px 0px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.carousel figure div {
  width: 100%;
  background: linear-gradient(
    75deg,
    rgba(26, 44, 121, 0.9) 10%,
    rgba(232, 5, 102, 0.9)
  );
  box-sizing: border-box;
}
.carousel figure div:not(:first-of-type) {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50% -482.8427124746px;
}
.carousel figure div:nth-child(2) {
  transform: rotateY(0.7853981634rad);
}
.carousel figure div:nth-child(3) {
  transform: rotateY(1.5707963268rad);
}
.carousel figure div:nth-child(4) {
  transform: rotateY(2.3561944902rad);
}
.carousel figure div:nth-child(5) {
  transform: rotateY(3.1415926536rad);
}
.carousel figure div:nth-child(6) {
  transform: rotateY(3.926990817rad);
}
.carousel figure div:nth-child(7) {
  transform: rotateY(4.7123889804rad);
}
.carousel figure div:nth-child(8) {
  transform: rotateY(5.4977871438rad);
}
.carousel nav {
  display: flex;
  justify-content: center;
}
.carousel nav button {
  flex: 0 0 auto;
  margin: 0px 5px 0px 5px;
  cursor: pointer;
  background: none;
  padding: 5px 20px;
  border-radius: 10px;
  outline: 0;
  background-color: rgba(227, 233, 235, 1);
  border: 1px solid #fff;
  -moz-outline: 0;
}
.carousel nav img {
  height: 35px;
  pointer-events: none; /* Used cz image passing pointer events was disturbing the button functionality */
}
