.carousel-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.carousel-slider .items {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 56.25%;
}

.carousel-slider .items .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease-in-out;

  &.current {
    opacity: 1;
  }

}

.carousel-slider .items .item img {
  max-width: 100%;
  align-items: center;
  justify-content: center;
  /* object-fit: cover; */
  object-fit: contain;
  object-position: center;
}

.carousel-slider .controls {
  position: relative;
  /* z-index: 1; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  /* justify-content: center; */
  align-items: center;

  margin-top: 10px;
  /* border: 1px solid; */
}

.carousel-slider .caption {
  display: flex;
  background-color: antiquewhite;
  width: 95%;
  display: flex;
  flex-direction: column;

  
}

.carousel-slider .caption .carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.carousel-slider .caption .carousel-content.current {
  opacity: 1;
}

.carousel-slider .controls .buttons {

  /* width: 100%; */
  /* height: 100%; */
  display: flex;
  align-items: center;
  
}

.carousel-slider .controls .buttons .button {
  width: 32px;
  height: 32px;
  border: none;
  outline: none;
  padding: 0;
  background: transparent center no-repeat;
  cursor: pointer;
  opacity: .4;
  &.prev {
    /* background-image: url(https://codeisle.info/blog/wp-content/uploads/2018/12/ico_next_b32.png); */
    & div {
      border-top: 2px solid black;
      border-left: 2px solid black;
      width: 20px;
      height: 20px;
      transform: rotate(-40deg);
    }
  }


  &.next {
    /* background-image: url(https://codeisle.info/blog/wp-content/uploads/2018/12/ico_next_b32-1.png); */
    & div {
      border-top: 2px solid black;
      border-left: 2px solid black;
      width: 20px;
      height: 20px;
      transform: rotate(-230deg);
    }
  }

  &:hover {
    opacity: .8;
  }
}

.carousel-slider .dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-slider .dots .dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 0;
  background: #777;
  cursor: pointer;
  opacity: .5;
  transition: opacity .4s ease-in-out;

  &:nth-child(n+2) {
    margin-left: 5px;
  }

  &.current {
    opacity: 1;
  }
}