.carousel-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-nav a {
  color: rgba(255,255,255,1);
  margin-right: 1rem;
}

.wrapper {
  --image-height: 260px;
  --video-width: 280px;
  height: 325px;
  width: 320px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.carousel {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
  width: 100%;
  display: flex;
  position: absolute;
  left: 0;
  transition: all 1s ease;
}

.carousel.size-change {
  transition: none;
}

.caption {
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.caption .slide-number {
  color: rgba(255,255,255,.6);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100%;
  height: 100%;
  margin-right: 1rem;
  overflow: hidden;
}

.card img {
  height: var(--image-height);
  object-fit: contain;
  object-position: top;
}

.card video {
  width: var(--video-width);
}
  
.button-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
}

.button-wrapper button {
  height: 1.5rem;
  width: 1.5rem;
  background-color: transparent;
  outline: none;
  border: none;
  border-bottom: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  cursor: pointer;
}

.button-wrapper button[data-action="slideLeft"] {
  transform: translate(10px, calc(48px + var(--image-height)/2)) rotate(45deg);
}

.button-wrapper button[data-action="slideRight"] {
  transform: translate(-10px, calc(48px + var(--image-height)/2)) rotate(225deg);
}

@media (min-width: 360px) {
  .wrapper {
    --video-width: 355px;
    width: 355px;
  }
}

@media (min-width: 500px) {
  .wrapper {
    --image-height: 320px;
    --video-width: 500px;
    height: 441px;
    width: 500px;
  }
}

@media (min-width: 768px) {
  .wrapper {
    --image-height: 381px;
    --video-width: 750px;
    height: 600px;
    width: 750px;
  }
}

@media (min-width: 850px) {
  .wrapper {
    --image-height: 426px;
    --video-width: 835px;
    height: 750px;
    width: 835px;
  }
}

@media (min-width: 1200px) {
  .wrapper {
    --image-height: 616px;
    --video-width: 1180px;
    height: 750px;
    width: 1180px;
 }
}