.custom-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* max-width: 1200px; */
  margin: auto;
}

.custom-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.slide-background-video,
.slide-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.slide-content-wrap {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.slide-content {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.custom-slide.al-left .slide-content {
  align-items: flex-start;
  margin-right: auto;
  margin-left: 0%;
  text-align: left;
}

.custom-slide.al-right .slide-content {
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0%;
  text-align: right;
}

.custom-slide.al-center .slide-content {
  align-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.custom-slide h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.custom-slide p {
  font-size: 1.6rem;
}

.custom-slide-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.custom-slide-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
}

.swiper-pagination-bullet {
  background: white;
}

@media (max-width: 767px) {
  .slide-content-wrap {
    align-items: flex-end;
    justify-content: flex-end;
    display: flex;
    padding-bottom: 80px;
    height: 100%;
  }

  .custom-slide h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
  }

  .custom-slide p {
    font-size: 1.2rem;
  }

  .custom-slide.al-left .slide-content {
    margin-left: auto;
    margin-right: auto;
  }

  .custom-slide.al-right .slide-content {
    margin-left: auto;
    margin-right: auto;
  }
}
