

.container {
  position: relative;
  overflow: hidden;
  border-radius: 3rem;
}
@media only screen and (max-width: 1000px) {
  .container {
    border-radius: 2rem;
  }
}

.slider {
  display: flex;
  width: 500%;
  height: calc(100vh - 30vh);
  transition: all 0.25s ease-in;
  transform: translateX(0);
}
@media only screen and (max-width: 1000px) {
  .slider {
    height: calc(100vh - 25vh);
  }
}
.slider .box {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media only screen and (max-width: 650px) {
  .slider .box {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}
.slider .box .bg {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  width: 55%;
  transform: skewX(7deg);
  position: absolute;
  height: 100%;
  left: -10%;
  padding-left: 20rem;
  transform-origin: 0 100%;
}
@media only screen and (max-width: 800px) {
  .slider .box .bg {
    width: 65%;
  }
}
@media only screen and (max-width: 650px) {
  .slider .box .bg {
    width: 100%;
    left: 0;
    bottom: 0;
    height: 54%;
    transform: skewX(0deg);
  }
}
.slider .box .bg::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: inherit;
  pointer-events: none;
  transform: skewX(10deg);
}
@media only screen and (max-width: 650px) {
  .slider .box .bg::before {
    width: 120%;
    bottom: 0;
    transform: skewX(0deg);
  }
}
.slider .box .details {
  padding: 4rem;
  padding-left: 7rem;
  z-index: 100;
  grid-column: 1/span 1;
  grid-row: 1/-1;
}
@media only screen and (max-width: 650px) {
  .slider .box .details {
    grid-row: 2/span 1;
    grid-column: 1/-1;
    text-align: center;
    padding: 1rem;
    transform: translateY(-2rem);
  }
}

.slider .box .details a {
  display: inline-block;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-weight: bold;
  color: white;
  margin-bottom: 0rem;
  margin-right: 4rem;
}
@media only screen and (max-width: 800px) {
  .slider .box .details a {
    margin-right: 0;
  }
}

.slider .box1 {
  /*background-image: url(src/img/image.jpg);*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center
}

.slider .box2 {
    /*background-image: url(src/img/heroimage.jpeg);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center
}


.slider .box3 {
    /*background-image: url(src/img/image.jpg);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center
}


.slider .box4 {
    /*background-image: url(src/img/heroimage.jpeg);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center
}


.slider .box5 {
    /*background-image: url(src/img/image.jpg);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center
}


.prev,
.next,
.trail {
  position: absolute;
}

.prev,
.next {
  width: 4rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}
@media only screen and (max-width: 650px) {
  .prev,
.next {
    display: none;
  }
}
.prev:hover,
.next:hover {
  opacity: 1;
}

.prev {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

.next {
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
}

.trail {
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  text-align: center;
  font-size: 2rem;
  color: white;
  font-weight: 900;
}
@media only screen and (max-width: 650px) {
  .trail {
    width: 90%;
    bottom: 0%;
  }
}
.trail div {
  padding: 1rem;
  border-top: 8px solid #fff;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.trail div:hover {
  opacity: 1;
}
@media only screen and (max-width: 650px) {
  .trail div {
    padding: 1rem;
  }
}

.active {
  opacity: 1 !important;
}