/* .about {
  gap: 0 50px;
} */

.about h2 {
  grid-column: span 3;
  justify-self: center;
}

.about p {
  grid-column: span 9;
  grid-row: span 2;
}

.about .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: span 3;
}

.about .actions .button {
  margin-bottom: 40px;
  width: 150px;
}

#carousel {
  width: 100%;
  height: 530px;
  margin-bottom: 40px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

#carousel img {
  position: absolute;
}

#carousel img.active {
  height: 95%;
  opacity: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#carousel img.hidden {
  display: none;
  transition: none !important;
}

#carousel img.left-out {
  left: -50%;
}

#carousel img.right-out {
  left: 150%;
}

#carousel img.left,
#carousel img.right,
#carousel img.left-out,
#carousel img.right-out {
  height: 80%;
  opacity: 0.75;
  top: 50%;
  transform: translate(-50%, -50%);
}

#carousel img.left {
  left: 0%;
}

#carousel img.right {
  left: 100%;
}

#controller {
  display: flex;
  gap: 10px;
}

.controller-button {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 2px solid var(--background-dark);
}

.controller-button.active {
  background-color: var(--brand);
}

.controller-button:hover {
  cursor: pointer;
}

@media screen and (max-width: 1024px){
  .about .actions a.button {
    width: 120px;
  } 
}

@media screen and (max-width: 768px) {
  .about h2 {
    grid-column: span 12;
    margin-bottom: 20px;
  }

  .about p {
    grid-column: span 12;
  }

  .about .actions {
    grid-column: span 12;
    flex-direction: row;
  }

  .about .actions a.button {
    margin-bottom: 0;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  #carousel {
    height: 450px;
  }

  #carousel img.left {
    left: -50%;
  }

  #carousel img.right {
    left: 150%;
  }
}

@media screen and (max-width: 425px) {
  #carousel {
    height: 400px;
  }
}

@media screen and (max-width: 320px) {
  #carousel {
    height: 350px;
  }
}