.mslider {
}

.mslider .carousel-inner .carousel-item img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mslider .full-slide-url {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
}

.mslider.mslider-fullscreen,
.mslider.mslider-fullscreen .carousel-inner,
.mslider.mslider-fullscreen .carousel-inner .carousel-item {
  height: 50vh;
}
@media (min-width: 768px) {
  .mslider.mslider-fullscreen,
  .mslider.mslider-fullscreen .carousel-inner,
  .mslider.mslider-fullscreen .carousel-inner .carousel-item {
    height: 100vh;
  }
}

.mslider.mslider-fullheight,
.mslider.mslider-fullheight .carousel-inner,
.mslider.mslider-fullheight .carousel-inner .carousel-item {
  height: 100%;
}

.mslider.mslider-fullscreen .carousel-inner .carousel-item img,
.mslider.mslider-fullheight .carousel-inner .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* @media (min-width: 768px) {
    .mslider.mslider-fullscreen .carousel-inner .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
} */

.carousel-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.has-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

/***** Titles *****/
.carousel-title {
  margin: 2px 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .carousel-title {
    font-size: 44px;
  }
}
.carousel-subtitle {
  margin: 2px 0;
  font-size: 18px;
}

/* .carousel-title > span,
.carousel-subtitle > span {
    display: inline-block;
    padding: 2px 10px;
    background-color: rgba(0, 0, 0, 0.7);
} */

.carousel-btn {
  margin: 2px 0;
}

.carousel-counting {
  position: absolute;
  right: 0;
  bottom: 0;
  margin-right: 40px;
  margin-bottom: 0.5rem;
  z-index: 11;
}
@media (max-width: 767px) {
  .carousel-counting {
    display: none;
  }
}
.carousel-counting-current,
.carousel-counting-total {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}
.carousel-counting-current {
  margin-right: 10px;
  padding-right: 40px;
}
.carousel-counting-current:after {
  position: absolute;
  top: 15px;
  right: 0;
  width: 30px;
  height: 1px;
  background-color: #ffffff;
  content: "";
}

/***** Text position *****/
.carousel-caption {
  bottom: 20px;
  width: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .carousel-caption {
    width: 600px;
  }
}
@media (min-width: 992px) {
  .carousel-caption {
    bottom: 50px;
    width: 850px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.carousel-caption-overlay {
  padding: 25px;
  background-color: rgba(0, 0, 0, 0.5);
}
@media (min-width: 992px) {
  .carousel-caption-overlay {
    width: auto;
    padding: 50px;
  }
}

.carousel-caption.into-img {
  position: absolute;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  text-align: left;
  z-index: 11;
}

/* @media (min-width: 768px) {
    .carousel-caption.into-img {
        padding: 50px;
    }
} */

.carousel-caption.into-img.into-img-top {
  top: 0;
  bottom: auto;
}

.carousel-caption.into-img.into-img-middle {
  top: 50%;
  transform: translateY(-50%);
}

.carousel-caption.into-img.into-img-bottom {
  top: auto;
  bottom: 20px;
}
@media (min-width: 992px) {
  .carousel-caption.into-img.into-img-bottom {
    bottom: 50px;
  }
}

.carousel-caption.into-img.into-img-left {
  left: 0;
  right: auto;
}
.carousel-caption.into-img.into-img-left .carousel-btn {
  text-align: left;
}

.carousel-caption.into-img.into-img-center {
  /*left: 50%;
    transform: translateX(-50%);*/
  left: 0;
  right: 0;
  transform: none;
  text-align: center;
}
@media (min-width: 768px) {
  .carousel-caption.into-img.into-img-center {
    left: 50%;
    transform: translateX(-50%);
  }
}

.carousel-caption.into-img.into-img-right {
  left: auto;
  right: 0;
}
.carousel-caption.into-img.into-img-right .carousel-btn {
  text-align: right;
}

.carousel-caption.into-img.into-img-middle.into-img-center {
  /*transform: translate(-50%, -50%);*/
  left: 0;
  right: 0;
  transform: none;
}
@media (min-width: 768px) {
  .carousel-caption.into-img.into-img-middle.into-img-center {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

.carousel-caption.out-img {
  bottom: auto;
  padding: 10px;
  text-align: left;
}

@media (min-width: 768px) {
  .carousel-caption.out-img {
    padding: 10px 20px;
  }
}

.carousel-caption.out-img.out-img-left {
  text-align: left;
}

.carousel-caption.out-img.out-img-center {
  text-align: center;
}

.carousel-caption.out-img.out-img-right {
  text-align: right;
}
