body {
  font-family: sans-serif;
  background-color: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.carousel {
  position: relative;
  height: 100vh;
  min-height: 40em;
  overflow: hidden;
  color: #fff;
}

.carousel img {
  position: absolute;
  bottom: 4em;
  width: 15em;
  height: 22em;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 5px 5px 15px #000;
  transition: 500ms cubic-bezier(0.77,0,0.18,1);
}

.carousel img:nth-child(1) {
  bottom: 0; right: 0%;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  z-index: -2;
}

.carousel img:nth-child(2) {
  right: 27em;
}
.carousel img:nth-child(3) {
  right: 11em;
}
.carousel img:nth-child(4) {
  right: -5em;
}
.carousel img:nth-child(5) {
  right: -17em;
}

.title {display: none;}
.title:nth-child(1) {display: block;}

.side-content {
  height: 100%;
  padding: 2em 2em 4em 2em;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.carousel h1 {
  font-size: 3em;
}

.carousel p {
  max-width: 450px;
  line-height: 30px;
  margin-block: 1em;
}

.carousel p, .carousel h1 {
  text-shadow: 2px 2px 8px #000;
}

button {
  width: 5em;
  height: 5em;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  transition: 200ms;
  cursor: pointer;
}

button:hover {
  background-color: #eee;
}

@media screen and (max-width: 1300px) {
  .image-container {
    font-size: 13px;
  }
}

@media screen and (min-width: 900px) {
  .carousel::before {
    content: "";
    background-image: linear-gradient(
      90deg, transparent 0%, transparent 30%, #24201a 70%
    );
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  .carousel img:nth-child(1) {
    bottom: 0; right: 30%;
    width: 70%;
  }
}

@media screen and (max-width: 900px) {
  .side-content {
    justify-content: flex-start;
  }
  .image-container {
    font-size: 11px;
  }
}

@media screen and (max-width: 500px) {
  .carousel  {
    font-size: 14px;
  }
  button {
    width: 4em;
    height: 4em;
  }
  .image-container {
    font-size: 8px;
  }
}





