.carousel {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr 3fr 1.5fr;
  grid-template-columns: 50px 1fr 1fr 1fr 1fr 50px;
  row-gap: 2vh;
  position: relative;
}

.sv-logo {
  position:absolute;
  bottom:50px;
  left:calc(50% - 100px);
  z-index:3;
}

.sv-logo img {
  width:200px;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 100%;
}

.progress-bar__fill {
  width: 0;
  height: inherit;
  background: #FE5F55;
  -webkit-transition: all 0.16s;
  transition: all 0.16s;
}

.progress-bar--primary {
  z-index: 2;
}

.main-post-wrapper {
  grid-row: 1 / 4;
  grid-column: 1 / 7;
  position: relative;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.main-post {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.main-post__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  bottom: 0;
}

.main-post__image img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.main-post__image::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 13, 14, 0.0);
}

.main-post__content {
  position: absolute;
  top: 50%;
  left: 10%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #fff;
  width: 80%;
}

.main-post__title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  color: #FE5F55;
}

.main-post__link {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
}

.main-post__link-text {
  font-size: 0.9em;
}

.main-post__link-icon--arrow {
  margin-left: 12px;
}

.main-post__link-icon--play-btn {
  margin-right: 12px;
}

.main-post__link:hover .main-post__link-text,
.main-post__link:hover .main-post__link-icon--arrow path {
  color: #FE5F55;
  stroke: #FE5F55;
}

.main-post--active {
  top: 0;
  z-index: 1;
  -webkit-transition: top 0.9s 0.4s ease-out;
  transition: top 0.9s 0.4s ease-out;
}

.main-post--not-active {
  top: 100%;
  z-index: 0;
  -webkit-transition: top 0.75s 2s;
  transition: top 0.75s 2s;
}

.main-post.main-post--active .main-post__tag-wrapper {
  width: 25%;
  -webkit-transition: all 0.98s 1.9s;
  transition: all 0.98s 1.9s;
}

.main-post.main-post--not-active .main-post__tag-wrapper {
  width: 0;
  -webkit-transition: width 0.3s 0.2s;
  transition: width 0.3s 0.2s;
}

.main-post.main-post--active .main-post__title {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: opacity 0.8s 1.42s, -webkit-transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, -webkit-transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, transform 0.5s 1.4s, -webkit-transform 0.5s 1.4s;
}

.main-post.main-post--not-active .main-post__title {
  -webkit-transform: translateY(40px);
          transform: translateY(40px);
  opacity: 0;
  -webkit-transition: opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
  transition: opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
  transition: transform 0.2s 0.35s, opacity 0.5s 0.2s;
  transition: transform 0.2s 0.35s, opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
}


.main-post.main-post--active .main-post__text {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: opacity 0.8s 1.42s, -webkit-transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, -webkit-transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, transform 0.5s 1.4s;
  transition: opacity 0.8s 1.42s, transform 0.5s 1.4s, -webkit-transform 0.5s 1.4s;
}

.main-post.main-post--not-active .main-post__text {
  -webkit-transform: translateY(40px);
          transform: translateY(40px);
  opacity: 0;
  -webkit-transition: opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
  transition: opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
  transition: transform 0.2s 0.35s, opacity 0.5s 0.2s;
  transition: transform 0.2s 0.35s, opacity 0.5s 0.2s, -webkit-transform 0.2s 0.35s;
}

.main-post.main-post--active .main-post__link {
  opacity: 1;
  -webkit-transition: opacity 0.9s 2.2s;
  transition: opacity 0.9s 2.2s;
}

.main-post.main-post--not-active .main-post__link {
  opacity: 0;
  -webkit-transition: opacity 0.5s 0.2s;
  transition: opacity 0.5s 0.2s;
}

.posts-wrapper {
  grid-row: 3 / 4;
  grid-column: 3 / 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -webkit-column-gap: 14px;
     -moz-column-gap: 14px;
          column-gap: 14px;
  z-index: 1;
  width:100%;
}

.post {
  background: rgba(14, 13, 14, 0.6);
  opacity: 0.3;
  color: #fff;
  position: relative;
  padding: 16px 20px;
}

.post__header {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
          align-items: center;
  font-size: 0.8em;
}

.post__tag {
  color: #80837e;
}

.post__title {
  font-weight: 400;
  font-size: 0.95em;
  line-height: 1.5;
}

.post--active {
  opacity: 1;
  background: rgba(14, 13, 14, 0.75);
}

.post:not(.post--active) {
  pointer-events: none;
}

.hide-on-mobile {
  display: none;
}

@media screen and (min-width: 768px) {
  .sv-logo {
    left:auto;
    bottom:16px;
    right:16px;
  }
}

@media screen and (min-width: 1024px) {
  .hide-on-mobile {
    display: grid;
  }

  .posts-wrapper {
    grid-column: 2 / 6;
  }

  .hide-on-desktop {
    display: none;
  }

  .main-post__text {
    font-size:2rem;
  }
}

@media screen and (min-width: 1440px) {
  .main-post__content {
    width: 60%;
  }

  .posts-wrapper {
    grid-column: 3 / 6;
  }
}
