.slider {
  background: white;
  padding: 20px 0 0;
  width: 100%;
}

.slider:first-child {
  padding-bottom: 50px;
}

.slider-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 95%;
  height: 800px;
  max-height: 560px;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.image-container img.image-active {
  opacity: 1;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.title-display {
  position: absolute;
  color: white;
  bottom: 56px;
  padding: 12px 20px;
  background: #00000099;
  width: calc(100% - 40px);
}

.nav-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 10%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-btn {
  height: 20px;
  width: 20px;
  display: inline-block;
  margin: 10px;
  background-color: #c4d5bd;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.nav-btn.btn-active {
  background-color: #126441;
}

.nav-btn:hover {
  -webkit-box-shadow: 0 0 5px 3px white;
  box-shadow: 0 0 5px 3px white;
}

.carousal-nav-btn {
  border: none;
  background: #126441;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  -webkit-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  padding: 12px;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.carousal-nav-btn:hover {
  opacity: 1;
}

.arrow {
  border: solid #d4e3ce;
  border-width: 0 5px 5px 0;
  display: inline-block;
  border-radius: 3px;
}

.right {
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  margin-right: 5px;
}

.left {
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  margin-left: 5px;
}

.prev-btn {
  position: absolute;
  top: calc(50% - 50px);
  left: -20px;
}

.next-btn {
  position: absolute;
  right: 0;
  top: calc(50% - 50px);
  right: -20px;
}

@media screen and (max-width: 900px) {
  .slider-container {
    width: 100%;
  }

  .prev-btn {
    left: 0;
  }

  .next-btn {
    right: 0;
  }

  .carousal-nav-btn {
    border-radius: 0;
    width: 40px;
  }
}

@media screen and (max-width: 500px) {
  .nav-btn {
    margin: 7px;
  }
  .slider-container {
    max-height: 460px;
  }

  .title-display {
    bottom: 46px;
  }
}
