.tm-preview {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.tm-preview__inner {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 32px;
}

.tm-preview--layout-right .tm-preview__inner {
    flex-direction: row-reverse;
}

.tm-preview--layout-one-column-image-first .tm-preview__inner,
.tm-preview--layout-one-column-text-first .tm-preview__inner {
    flex-direction: column;
}

.tm-preview__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-right: 16px;
}

.tm-preview__title {
    margin: 0 0 10px;
    color: #003064;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.tm-preview__subheader {
    margin: 0 0 10px;
    color: #003064;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.tm-preview__body {
    margin: 0 0 14px;
    color: #495057;
    font-size: 12px;
    line-height: 1.65;
    max-height: 16.5em;
    overflow: hidden;
}

.tm-preview__body > :first-child {
    margin-top: 0;
}

.tm-preview__body > :last-child {
    margin-bottom: 0;
}

.tm-preview__body p,
.tm-preview__body ul,
.tm-preview__body ol {
    margin: 0 0 0.6em;
}

.tm-preview__body ul,
.tm-preview__body ol {
    padding-left: 1.2em;
}

.tm-preview__body li {
    margin: 0.2em 0;
}

.tm-preview__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    background: #003064;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1rem;
}

.tm-preview__media {
    width: 50%;
    min-width: 180px;
    background: #f4f7fb;
    padding: 12px;
    display: flex;
    align-items: stretch;
}

.tm-preview--layout-one-column-image-first .tm-preview__media,
.tm-preview--layout-one-column-text-first .tm-preview__media {
    width: 100%;
    min-width: 0;
}

.tm-preview--no-media .tm-preview__media {
    display: none;
}

.tm-preview--no-media .tm-preview__text {
    flex: 1 1 100%;
}

.tm-preview__media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.tm-preview__media-item {
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.tm-preview__media-item--offset {
    transform: none;
}

.tm-preview__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tm-preview__layout-note {
    display: block;
    margin-top: 8px;
    color: #6f7c8f;
    font-size: 10px;
}

@media (max-width: 575.98px) {
    .tm-preview__inner {
        flex-direction: column-reverse;
        gap: 12px;
        padding: 16px;
    }

    .tm-preview--layout-right .tm-preview__inner {
        flex-direction: column;
    }

    .tm-preview__text {
        padding-right: 0;
        padding-top: 2rem;
        margin-bottom: 32px;
    }

    .tm-preview__media {
        width: 100%;
        min-width: 0;
        padding: 10px;
    }

    .tm-preview__title {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .tm-preview--ratio-25-75 .tm-preview__text {
        flex: 0 0 25%;
    }

    .tm-preview--ratio-25-75 .tm-preview__media {
        flex: 0 0 75%;
        width: auto;
    }

    .tm-preview--ratio-75-25 .tm-preview__text {
        flex: 0 0 75%;
    }

    .tm-preview--ratio-75-25 .tm-preview__media {
        flex: 0 0 25%;
        width: auto;
    }

    .tm-preview--ratio-33-67 .tm-preview__text {
        flex: 0 0 33.3333%;
    }

    .tm-preview--ratio-33-67 .tm-preview__media {
        flex: 0 0 66.6667%;
        width: auto;
    }

    .tm-preview--ratio-67-33 .tm-preview__text {
        flex: 0 0 66.6667%;
    }

    .tm-preview--ratio-67-33 .tm-preview__media {
        flex: 0 0 33.3333%;
        width: auto;
    }
}

@media (min-width: 1400px) {
    .tm-preview {
        max-width: 1200px;
    }

    .tm-preview__inner {
        padding: 24px;
    }

    .tm-preview__media {
        max-width: 700px;
    }
}
