.nxt-news-element {
    --title-color: var(--text-color--dark);
    --card-background: #1C1C1C;
    --articles-articles-gal-gallery-gap-y: 40px;
    --articles-articles-gal-gallery-gap-x: 40px;

    --grid-template: 1fr 1fr 1fr;

    --content-wrapper-padding: 20px;
    --content-gap: 16px;
    --text-color: #FFFFFF;
    --hover-bg: var(--bg-red);
}


@media (max-width: 1024px) {
    .nxt-news-element {
        --articles-articles-gal-gallery-gap-y: 20px;
        --articles-articles-gal-gallery-gap-x: 20px;
    }
}

@media (max-width: 768px) {
    .nxt-news-element {
        --articles-articles-gal-gallery-gap-y: 40px;
        --articles-articles-gal-gallery-gap-x: 10px;
        --grid-template: 1fr 1fr;
        --hover-bg: transparent;
    }
}

@media (min-width: 550px) {
    .nxt-news-element .items .item:hover .content-wrapper,
    .nxt-news-element .items .item:focus .content-wrapper
    {
        background-color: var(--hover-bg);
        --title-color: #ffffff !important;
        --text-color: #ffffff !important;
        transition-duration:0.2s;
        transition-property: color, background-color, border-color;
        transition-timing-function:linear;
    }
}

@media (max-width: 550px) {
    .nxt-news-element {
        --articles-articles-gal-gallery-gap-y: 40px;
        --articles-articles-gal-gallery-gap-x: 20px;
        --grid-template: 1fr;
        --content-wrapper-padding: 10px;
    }
}

.nxt-news-element.scheme-dark {    
    --card-background: #ffffff;
    --text-color: #383838;
    --title-color: #ffffff;
}

.fusion_module_block_preview .nxt-news-element.scheme-dark {
    background-color: #1c1c1c;
}

.nxt-news-element .title {
    font-size: var(--h3-font-size) !important;
	line-height: var(--h3-font-line-height) !important;
    color: var(--title-color);
    margin-top: 0;
}

.nxt-news-element .items {
    display: grid;
    grid-template-columns: var(--grid-template);
    gap: var(--articles-articles-gal-gallery-gap-y) var(--articles-articles-gal-gallery-gap-x);
    flex-wrap: wrap;
}

.nxt-news-element .items .item {
    background-color: var(--card-background);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.nxt-news-element .items .item.hidden {
    display: none;
}

.nxt-news-element .items .item .item-image
{
    aspect-ratio: 308.00/115.50;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
}

.nxt-news-element.image-spacing-yes .items .item .item-image {
    aspect-ratio: 373.33/140.00;
    object-fit: contain;
    overflow: hidden;
    width: calc(100% - 72px);
    margin: 36px;
}

.nxt-news-element .items .item .content-wrapper
{
    padding: var(--content-wrapper-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}



.nxt-news-element .items .item .content-wrapper .date
{
    font-size: var(--awb-font-size, 16px);
    font-weight: 800;
    line-height: var(--awb-line-height, 24px);
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-color);
}

.nxt-news-element .items .item .content-wrapper .dots
{
    text-align: center;
    margin-top: var(--content-gap);
    height: 8px;
}

.nxt-news-element .items .item .content-wrapper .title
{
    text-align: center;
    margin-top: var(--content-gap);
    color: var(--text-color);
}

.nxt-news-element .items .item .content-wrapper .anchor
{
    text-align: center;
    margin-top: var(--content-gap);
    margin-bottom: 0;
    color: var(--text-color);
}

.nxt-news-element .items .item .content-wrapper .link-title {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-items: center;
    padding-top: var(--content-gap);
    color: var(--text-color);
}

.nxt-news-element .items .item .content-wrapper .link-title p {
    font-size: var(--awb-font-size-small);
    margin-bottom: 0;
    font-family: Roboto;
}

.nxt-news-element .items .item .content-wrapper .link-title svg {
    width: 16px;
    height: 16px;
}

.nxt-news-element .button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}