nav {
    /* background: transparent; */
    /* backdrop-filter: brightness(9) blur(10px); */
}

.carousel {
    min-height: 100vh;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    /* height: 2px; */
    height: 100%;
    width: 100%;
    border-radius: 5em;
    overflow: hidden;
}

.progress-bar__fill {
    width: 0;
    height: inherit;
    background: var(--black);
    transition: all 0.16s;
    opacity: 0.2;
}

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

.main-post-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}

.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,
.main-post__image video {
    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.5);
}

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

.main-post__tag-wrapper {
    margin: 0;
    display: inline-flex;
    overflow: hidden;
}

.main-post__tag {
    font-size: 2em;
    background: var(--logo-color);
    /* color: var(--white); */
    font-weight: 800;
    padding: 0.5rem 1rem;
    margin-bottom: 1em;
    border-radius: 5em;
}

.main-post__title {
    font-weight: 700;
    font-size: 1.95em;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.main-post__link {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    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: var(--logo-color);
    stroke: var(--logo-color);
}

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

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

.main-post.main-post--active .main-post__tag-wrapper {
    width: 50%;
    transition: all 0.98s 1.9s;
    /* max-width: max-content; */
    /* min-width: max-content; */
}

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

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

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

.main-post.main-post--active .main-post__link {
    opacity: 1;
    transition: opacity 0.9s 2.2s;
    /* margin-left: 1rem; */
    margin-top: 1em;
}

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

.posts-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    -moz-column-gap: 14px;
    column-gap: 1em;
    position: absolute;
    bottom: 2em;
    max-width: 95%;
    margin: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.post {
    background: rgba(14, 13, 14, 0.8);
    opacity: 0.3;
    color: #fff;
    position: relative;
    padding: 16px 20px;
    transition: opacity 0.2s linear;
    border-radius: 5em 5em 5em 5em;
}

.post__header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
}

.post__tag {
    color: var(--logo-color);
    font-weight: 600;
    font-size: 1.5em;
}

.post__title {
    display: none;
    font-weight: 400;
    font-size: 0.8em;
    line-height: 1.5;
}

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

.post--disabled {
    pointer-events: none;
}

.post:hover {
    cursor: pointer;
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .main-post__title {
        font-size: 2em;
    }
}

@media screen and (min-width: 1024px) {
    .hide-on-mobile {
        display: grid;
        z-index: 2;
        padding-left: 2em;
    }

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

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

    .posts-wrapper {
        left: 50%;
        transform: translatex(-50%);
        max-width: 70%;
    }
}

@media screen and (max-width: 60em) {
    .mobile-menu {
        left: 1rem;
        top: 2rem;
        color: var(--logo-color);
    }

        .hide-on-mobile {
        /* display: none; */
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1em;
    }
}

@media screen and (max-width: 40em) {

    .mobile-menu {
        font-size: 3rem;
        top: 1rem;
    }

    .main-post.main-post--active .main-post__tag-wrapper {
        width: 80%;
    }

    .main-post__tag {
        font-size: 1.5em;
    }

    .main-post__title {
        font-size: 1.25em;
    }

    .post__title {
        /* display: none; */
    }

    .post__tag {
        font-size: 1em;
    }
}