/* page styles */
.ax-hidden {
  visibility: hidden;
  position: absolute;
}

/* carousel styles */
.carousel {
  --carousel-height: 28vh;
    --carousel-width: 100vw;
    --carousel-item-height: 20%;
    --carousel-item-width: 50%;
    width: 95%;
    @media screen and (min-width: 300px) {
        width: 100%;
    }
  }

.carousel-container {
  align-items: center;
  display: flex;
  min-height: var(--carousel-height);
  margin: 0 auto;
  max-width: var(--carousel-width);
  position: relative;
}

.carousel-item {
  height: auto;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  width: auto;
  z-index: 0;
  color: white;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-size: medium;
  text-align: center;
  max-width: 400px;

  @media screen and (min-width: 300px) {
        font-size: xx-large;
    }

  @media screen and (min-width: 576px) {
        max-width: 500px;
    }

    @media screen and (min-width: 820px) {
        max-width: 800px;
        font-size: 250%;
    }

    @media screen and (min-width: 1920px) {
        font-size: 400%;
        max-width: 1200px;
    }
}

.carousel-item-2 {
  left: 15%;
  opacity: 0.4;
  font-size: medium;

  @media screen and (min-width: 300px) {
        font-size: large;
    }

  @media screen and (max-width: 1024px) {
    font-size: normal;
    max-width: 150px;
    opacity: 0.2;
  }
  @media screen and (min-width: 1280px){
    max-width: 400px;
}
}

.carousel-item-3 {
  height: calc(var(--carousel-item-height) * 2);
  opacity: 1;
  left: 50%;
  width: calc(var(--carousel-item-width) * 2);
  z-index: 2;
   font-size: medium;

  @media screen and (min-width: 300px){
    font-size: 30px;
    max-width: 270px;
}
@media screen and (min-width: 1280px){
    max-width: 400px;
}
}

.carousel-item-4 {
  left: 85%;
  opacity: 0.4;
  font-size: medium;

  @media screen and (min-width: 300px) {
        font-size: large;
    }
  
  @media screen and (max-width: 1024px) {
    font-size: normal;
    max-width: 150px;
    opacity: 0.2;
  }
  @media screen and (min-width: 1280px){
    max-width: 400px;
}
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* carousel button styles */
.carousel-control {  
  background-color: transparent;
  border: 2px solid;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  height: 22px;
  margin: 0 20px;
  position: relative;
  transform: scale(1.5);
  transition: transform 0.5s ease-out;
  width: 22px;
}

.carousel-control:hover {
  transform: scale(1.3);
}

/* previous button */
.carousel-control-previous::after,
.carousel-control-previous::before {
  box-sizing: border-box; 
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  top: 5px
}
.carousel-control-previous::before {
  background: currentColor;
  border-radius: 2px;
  right: 11px;
  width: 2px;
}
.carousel-control-previous::after {
  border-bottom: 4px solid transparent;
  border-right: 5px solid;
  border-top: 4px solid transparent;
  right: 5px;
  width: 0;
}

/* next button */
.carousel-control-next::after,
.carousel-control-next::before {
  box-sizing: border-box;
  content: "";
  display: block;
  height: 8px;
  position: absolute;
  top: 5px
}
.carousel-control-next::before {
  background: currentColor;
  border-radius: 2px;
  left: 11px;
  width: 2px;
}
.carousel-control-next::after {
  border-bottom: 4px solid transparent;
  border-left: 5px solid;
  border-top: 4px solid transparent;
  left: 5px;
  width: 0;
}

/* play button */
.carousel-control-play::before {
  border-bottom: 5px solid transparent;
  border-left: 6px solid;
  border-top: 5px solid transparent;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 10px;
  position: absolute;
  left: 7px;
  top: 4px;
  width: 0;
}

/* pause button */
.carousel-control-play.playing::before {
  border-bottom: 0;
  border-left: 2px solid;
  border-right: 2px solid;
  border-top: 0;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  left: 6px;
  top: 6px; 
  width: 6px;
}

/* add button */
.carousel-control-add::after,
.carousel-control-add::before {
  background: currentColor;
  border-radius: 5px;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
}
.carousel-control-add::after {
  height: 10px;
  left: 8px;
  top: 4px;
  width: 2px;
}