/**
 * Partial: News archive — Text image
 *
 * Styles for parts/news/text-image.php. Uses the BEM root .text-image-news
 * so it can evolve independently of the original .text-image block CSS.
 *
 * Auto-enqueued from /assets/css/parts/ on the frontend and inside the
 * block editor — see nkt_get_part_stylesheets() in functions.php.
 */

/**
 * The CSS for the text image block
 *
 * @version 1.0.0
 */

.text-image-news {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.text-image-news__inner:hover .text-image-news__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.text-image-news__title {
    font-family: 'DM Serif Text', serif;
    font-size: 4rem;
    line-height: 64px;
    letter-spacing: 0%;
}

.text-image-news__content {
    max-width: 550px;
    width: 100%;
}

.text-image-news__description {
    font-size: 1.25rem;
    line-height: 32px;
    font-weight: 500;
    color: var(--wp--preset--color--br-blue-900);
}

.text-image-news__description p:last-of-type {
    margin-bottom: 0;
}

.text-image-news--top {
    align-items: flex-start;
}

.text-image-news--bottom {
    align-items: flex-end;
}

.text-image-news--center {
    align-items: center;
}

.text-image-news__image-container {
    width: 100%;
    max-width: 50%;
}

.text-image-news .text-image-news__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1/1;
}

.text-image-news__link {
    margin-top: 24px;
    display: block;
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 20px;
}

.text-image-news__tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.text-image-news__tag {
    padding-right: 16px;
    padding-left: 16px;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 36px;
    color: var(--wp--preset--color--br-blue-900);
}

.text-image-news__tag:first-child {
    padding-left: 0;
}

.text-image-news__tag:not(:last-child) {
    border-right: 2px solid var(--wp--preset--color--br-orange-900);
}

@media (max-width: 90rem) {
    .text-image-news__title {
        font-size: 3.5rem;
        line-height: 56px;
    }
}

@media (max-width: 64rem) {
    .text-image-news {
        gap: 40px;
    }

    .text-image-news__title {
        font-size: 2.5rem;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .text-image-news__description {
        font-size: 1.125rem;
        line-height: 28px;
    }

    .text-image-news__tag {
        font-size: 1rem;
        line-height: 24px;
    }
}

@media (max-width: 48rem) {
    .text-image-news {
        flex-direction: column;
        gap: 32px;
    }

    .text-image-news__content {
        max-width: 100%;
    }

    .text-image-news__title {
        font-size: 2.25rem;
        line-height: 36px;
    }

    .text-image-news__image-container {
        width: 100%;
        max-width: 100%;
    }

    .text-image-news__image {
        width: 100%;
    }

    .text-image-news__tag {
        font-size: 0.875rem;
        line-height: 24px;
    }
}