.multislide {
  /*carousel multi ---------------------------------*/
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1rem 0;
}

.multislide-items {
  overflow-x: hidden;
  width: 100%;
}

.multislide-items > .items-list {
  width: 100%;
  white-space: nowrap;
}
.multislide-items > .items-list.no-multi {
  display: flex;
  justify-content: space-between;
}

.multislide-items > .items-list > a {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}
.multislide-items > .items-list > a .img-container {
  height: 100%;
  width: 100%;

  position: relative;
}
.multislide-items > .items-list > a .img-container::after {
  display: block;
  position: absolute;
  bottom: 0;
  height: 50%;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0,
    rgb(14, 14, 14) 100%
  );

  width: 100%;
  content: "";
  order: 1;
}

.multislide-items > .items-list > a > .img-container > img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100vh; 
  object-fit: cover; 
  position: relative;
}

.multislide-ctrl-left,
.multislide-ctrl-right {
  position: absolute;
  width: 25%;
  top: 0;
  bottom: 0;
  cursor: pointer;
  min-width: 8.125%;

  background: radial-gradient(
    circle,
    rgb(0 0 0 / 50%) 0%,
    rgb(115 115 115 / 20%) 30%,
    rgb(255 255 255 / 0%) 40%
  );

  z-index: 0;
}
.multislide > .multislide-ctrl-right,
.multislide > .multislide-ctrl-left {
  z-index: 0;
}

.multislide-ctrl-left {
  left: 0;
}

.multislide-ctrl-right {
  right: 0;
}

.overlaybutton {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  text-shadow: 0 0 3px #333333;
  color: #fff;
  line-height: 1;
  white-space: initial !important;

  overflow: hidden;
}
.overlaybutton > p {
  padding: 0.5rem 1rem 0 0;
}

.overlaybutton > p {
  padding: 0.5rem 1rem 0 0 !important;
}

.multislide
  .multislide-items
  > .items-list
  > a
  .overlaybutton
  > .overlay-button-text {
  font-family: inherit;
  font-weight: 400 !important;
  color: inherit;
  margin-bottom: 0;
  line-height: 1.5;
  white-space: normal;
  overflow: hidden;
  
  position: relative;
  text-overflow: ellipsis; 
  line-height: 1.5rem;
  max-height: 4.5rem;
  line-clamp: 3; 
}

h3.overlay-button-text {
  padding: 0 !important;
}

.multislide.prev-loading div[class*="ctrl-left"]::before,
.multislide.next-loading div[class*="ctrl-right"]::before {
  animation: 1.5s linear infinite spinner;
  animation-play-state: inherit;
  border: solid 5px #cfd0d1;
  border-bottom-color: #ffffff;
  border-radius: 50%;
  content: "";
  height: 40px;
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  opacity: 0.25;
  width: 40px;
  will-change: transform;
}
.multislide.prev-loading div[class*="ctrl-left"]::before {
  left: calc(50% - 19px);
}
.multislide.next-loading div[class*="ctrl-right"]::before {
  left: calc(50% - 21px);
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
