/* //////////////////////////////////////////////// */
/* Container */

.carousel-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  height: auto;
  width: 100%;
  margin-bottom: 9.6rem;
}

/* //////////////////////////////////////////////// */
/* Carousel */

.carousel {
  height: 50rem;
  width: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .carousel {
    height: 30rem;
  }
}

/* //////////////////////////////////////////////// */
/* Wrapper */

.wrapper {
  position: relative;
  transform: translateX(0);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  height: 100%;
  width: 300%;
  background-color: var(--creme);
  transition: all 0.5s ease-in-out;
}

/* //////////////////////////////////////////////// */
/* Logos */

.wrapper-logo {
  display: block;
  position: absolute;
  pointer-events: none;
}

#wrapper-logo-1 {
  top: -6rem;
  left: -7.5rem;
  transform: rotate(135deg);
  height: 15rem;
  width: auto;
}

#wrapper-logo-2 {
  grid-column: 2;
  bottom: -7rem;
  left: -10rem;
  height: auto;
  width: 20rem;
}

#wrapper-logo-3 {
  grid-column: 3;
  top: -7rem;
  left: -10rem;
  transform: rotate(180deg);
  height: auto;
  width: 20rem;
}

#wrapper-logo-4 {
  bottom: -6rem;
  right: -7.5rem;
  transform: rotate(-45deg);
  height: 15rem;
  width: auto;
}

@media (min-width: 768px) {
  .wrapper-logo {
    display: block;
    position: absolute;
  }

  #wrapper-logo-1 {
    top: -8rem;
    left: -10rem;
    height: 20rem;
    width: auto;
  }

  #wrapper-logo-2 {
    bottom: -8rem;
    left: -12.5rem;
    height: auto;
    width: 25rem;
  }

  #wrapper-logo-3 {
    top: -8rem;
    left: -12.5rem;
    height: auto;
    width: 25rem;
  }

  #wrapper-logo-4 {
    bottom: -8rem;
    right: -10rem;
    height: 20rem;
    width: auto;
  }
}

@media (min-width: 1200px) {
  #wrapper-logo-1 {
    top: -12rem;
    left: -15rem;
    height: 30rem;
    width: auto;
  }

  #wrapper-logo-2 {
    bottom: -11rem;
    left: -17.5rem;
    height: auto;
    width: 35rem;
  }

  #wrapper-logo-3 {
    top: -11rem;
    left: -17.5rem;
    height: auto;
    width: 35rem;
  }

  #wrapper-logo-4 {
    bottom: -12rem;
    right: -15rem;
    height: 30rem;
    width: auto;
  }
}

/* //////////////////////////////////////////////// */
/* Slides */

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

#slide-1 {
  grid-column: 1;
}

#slide-2 {
  grid-column: 2;
}

#slide-3 {
  grid-column: 3;
}

/* //////////////////////////////////////////////// */
/* Content */

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2.4rem;
  height: 30rem;
  width: 100%;
  transition: all 0.5s ease-in-out;
}

@media (min-width: 768px) {
  .slide-content {
    height: 21.4rem;
    width: 60%;
    border-radius: 1.2rem;
    background-color: var(--white);
    box-shadow: 0 0 0.6rem 0 var(--shadow-light);
    padding: 2.4rem 0;
    margin: auto;
  }
}

@media (min-width: 1200px) {
  .slide-content {
    width: 50%;
  }
}

/* //////////////////////////////////////////////// */
/* Text */

.slide-text {
  padding: 0 2.4rem;
}

/* //////////////////////////////////////////////// */
/* Name */

.slide-name {
  padding: 0 2.4rem;
}

@media (min-width: 768px) {
  .slide-name {
    font-size: 2rem;
  }
}

/* //////////////////////////////////////////////// */
/* Controls */

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  width: auto;
}

/* //////////////////////////////////////////////// */
/* Buttons */

.carousel-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.4rem;
  width: 2.4rem;
  font-family: quicksand, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0.8rem;
  background-color: var(--creme);
  padding: 1.2rem;
  transition: all 0.5s ease-in-out;
}

.carousel-btn.active {
  color: var(--white);
  background-color: var(--black);
}
