/* ARTICLE HERO */

.article-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    background-color: var(--clr-black);
}

.article-hero__picture,
.article-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.article-hero__image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.article-hero__content {
    position: absolute;
    bottom: 80px;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    text-align: center;
}

.article-hero__title {
    max-width: 1000px;
    font-size: 60px;
    line-height: 1.15;
}

.article-hero__description {
    max-width: 750px;
    margin-top: 32px;
}

/* HERO TEXT ANIMATION */

.article-hero__title,
.article-hero__description {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1000ms ease, transform 1000ms ease;
}

.article-hero__content.is-visible .article-hero__title,
.article-hero__content.is-visible .article-hero__description {
    opacity: 1;
    transform: translateY(0);
}

.article-hero__content.is-visible .article-hero__description {
    transition-delay: 250ms;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 991px) {
    .article-hero__content {
        bottom: 64px;
        padding: 0 16px;
    }

    .article-hero__title {
        font-size: 48px;
    }

    .article-hero__description {
        margin-top: 24px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .article-hero__content {
        bottom: 48px;
        padding: 0 12px;
    }

    .article-hero__title {
        font-size: 36px;
    }

    .article-hero__description {
        margin-top: 24px;
    }
}

/* MOBILE LANDSCAPE */

@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {
    .article-hero {
        min-height: 600px;
    }

    .article-hero__title {
        font-size: 36px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .article-hero__title,
    .article-hero__description {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ARTICLE CONTENT */

.article-content {
    width: calc(100% - 48px);
    max-width: 750px;
    margin: 0 auto;
    padding-top: 96px;
}

/* ARTICLE META */

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.article-meta__time {
    white-space: nowrap;
}

.article-meta__genres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-meta__genre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border: 1px solid var(--clr-white);
    border-radius: 16px;
    color: var(--clr-white);
    font-size: 14px;
}

/* TEXT BLOCKS */

.article-section {
    width: 100%;
}

.article-text-block h2 {
    max-width: 650px;
    font-size: 48px;
    line-height: 1.15;
}

.article-text-block p {
    max-width: 750px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.article-text-block:has(+ .article-image) p {
    margin-bottom: 0;
}

/* CINEMATIC IMAGES */

.article-image {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image--wide {
    position: relative;
    left: 50%;
    width: min(1200px, calc(100vw - 48px));
    aspect-ratio: 1200 / 675;
    margin: 60px 0;
    transform: translateX(-50%);
}

.article-image--standard {
    width: 100%;
    aspect-ratio: 750 / 500;
    margin: 60px 0;
}

.article-image--full {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 60px 0 0;
    border-radius: 0;
}

.article-section:last-child .article-text-block:last-child p {
    margin-bottom: 0;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 991px) {
    .article-content {
        width: calc(100% - 32px);
        padding: 64px 16px;
    }

    .article-meta {
        margin-bottom: 24px;
    }

    .article-text-block h2 {
        font-size: 36px;
    }

    .article-text-block p {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .article-image--wide {
        width: calc(100vw - 32px);
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .article-image--standard {
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .article-image--full {
        margin-top: 48px;
        margin-bottom: 0;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .article-content {
        width: calc(100% - 24px);
        padding-top: 48px;
    }

    .article-text-block h2 {
        font-size: 24px;
    }

    .article-text-block p {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .article-image--wide {
        width: calc(100vw - 24px);
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .article-image--standard {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .article-image--full {
        margin-top: 32px;
        margin-bottom: 0;
    }
}


/* RELATED POSTS */

.related-posts {
    background-color: var(--clr-black);
}

.related-posts__heading {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 40px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* RELATED POST CARDS */

.related-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clr-white);
    text-decoration: none;
}

.related-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 416 / 236;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 250ms ease;
}

.related-post-card__title {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1;
    transition: color 250ms ease;
}

.related-post-card__time {
    margin-top: 16px;
    font-size: 16px;
}

/* HOVER EFFECTS */

@media (hover: hover) {
    .related-post-card:hover .related-post-card__image {
        transform: scale(1.03);
    }

    .related-post-card:hover .related-post-card__title {
        color: var(--clr-red);
    }
}

/* TABLET */

@media (min-width: 768px) and (max-width: 991px) {
    .related-posts__heading {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-post-card__time {
        margin-top: 12px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .related-posts__heading {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .related-post-card__title {
        font-size: 20px;
    }

    .related-post-card__time {
        margin-top: 8px;
        font-size: 14px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .related-post-card__image,
    .related-post-card__title {
        transition: none;
    }
}