section#carousel {
  width: 100%;
  height: max-content;

  padding: 0 64px;

  display: grid;
  grid-gap: 4vh;
  justify-items: center;
  align-items: center;

  margin-top: 64px;
  overflow: hidden;
}

section#carousel ol {
  list-style: none;
  grid-column: 2;
  grid-row: 1;

  display: grid;
  justify-align: center;
  align-items: center;

  /* overflow: hidden; */
}

section#carousel li {
  grid-column: 1;
  grid-row: 1;
}

section#carousel ol li img {
  width: 100%;
  max-height: 100%;

  padding: 8px;

  object-fit: contain;
  object-position: center;
}

section#carousel button:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

section#carousel button:nth-of-type(2) {
  grid-column: 3;
  grid-row: 1;
}

section#carousel button {
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;

  width: 14vh;
  height: 14vh;

  z-index: 100;
}
section#carousel button:focus {outline:0;}

section#carousel li img {
  opacity: 0;
}

.centerToLeft {
  position: relative;
  left: 0%;

  animation-name: ctl;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

@keyframes ctl {
  from {
    opacity: 1;
    transform: translateX(0%);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.leftToCenter {
  position: relative;
  left: -100%;

  animation-name: ltc;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

@keyframes ltc {
  from {
    opacity: 0;
    transform: translateX(0%);
  }
  to {
    opacity: 1;
    transform: translateX(100%);
  }
}

.centerToRight {
  position: relative;
  left: 0%;

  animation-name: ctr;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

@keyframes ctr {
  from {
    opacity: 1;
    transform: translateX(0%);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
.rightToCenter {
  position: relative;
  left: 100%;

  animation-name: rtc;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

@keyframes rtc {
  from {
    opacity: 0;
    transform: translateX(0%);
  }
  to {
    opacity: 1;
    transform: translateX(-100%);
  }
}

@media (max-width: 900px) {
  section#carousel {
    visibility: hidden;
    margin: 0px;
    height: 0;
    width: 0;
  }
}

@media (max-width: 1437px) and (orientation: landscape) {
  section#carousel button {
    width: 11vh;
    height: 11vh;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  section#carousel {
    visibility: hidden;
    height: 0;
    width: 0;
    padding: 0px;
    margin: 0px;
  }
}
