.news-controls {
    display: none;
}

#issues li .news-photo {
    border-radius: 12px;
    object-fit: cover;
}

@media screen and (max-width: 1023px) {
    #issues li .news-photo {
        display: block;
        float: none;
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
        margin: 0 0 12px;
    }
}

@media screen and (min-width: 1024px) {
    .n-sec h2 {
        margin: 0;
    }

    #timeline {
        --news-gap: 24px;
        --news-min-card: 640px;
        --news-gutter: clamp(20px, 3vw, 48px);
        height: auto;
        margin: 0 0 32px !important;
        overflow: visible;
    }

    #timeline .news-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px var(--news-gutter);
        background: #333;
    }

    #timeline .dati {
        min-width: 0;
        height: auto;
        margin: 0;
    }

    #timeline #dates {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        width: auto !important;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    #timeline #dates li {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
    }

    #timeline #dates a {
        display: block;
        padding: 9px 12px;
        border-radius: 6px;
        color: #fff;
        font: 16px/1.25 Arial, sans-serif !important;
        text-decoration: none;
    }

    #timeline #dates a:hover,
    #timeline #dates .is-showing {
        background: #b31624;
    }

    #timeline .news-controls {
        display: flex;
        flex: none;
        gap: 8px;
    }

    .news-controls button {
        display: grid;
        place-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #999;
        border-radius: 6px;
        background: transparent;
        color: #fff;
        font: 25px/1 Arial, sans-serif;
        cursor: pointer;
    }

    .news-controls button:hover:not(:disabled) {
        background: #b31624;
    }

    .news-controls button:disabled {
        opacity: .4;
        cursor: default;
    }

    #timeline a:focus-visible,
    #timeline button:focus-visible,
    #timeline #issues:focus-visible {
        outline: 2px solid #276ca5;
        outline-offset: 2px;
    }

    #timeline .news-toolbar :focus-visible {
        outline-color: #fff;
    }

    .news-viewport {
        margin: 0 var(--news-gutter);
        padding-top: 20px;
    }

    #timeline #issues {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - (var(--news-columns, 1) - 1) * var(--news-gap)) / var(--news-columns, 1));
        gap: var(--news-gap);
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: auto hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
    }

    #timeline #issues > li {
        display: grid;
        grid-template-columns: min(33%, 232px) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        align-content: start;
        column-gap: 20px;
        box-sizing: border-box;
        float: none;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 20px;
        border: 1px solid #d8e1eb;
        border-radius: 12px;
        background: #fff;
        scroll-snap-align: start;
    }

    #timeline #issues > li > img {
        grid-row: 1 / span 3;
        align-self: start;
        float: none;
        width: 100%;
        max-width: 232px;
        height: auto;
        aspect-ratio: 1;
        margin: 0;
        object-fit: contain;
        transform: none;
        transition: none;
    }

    #timeline #issues > li > .news-photo {
        object-fit: cover;
    }

    #timeline #issues > li > :is(h3, p, a) {
        grid-column: 2;
    }

    #timeline #issues h3 {
        margin: 0 0 10px;
        color: #182438;
        font: bold 21px/1.25 Arial, sans-serif;
    }

    #timeline #issues p {
        width: auto;
        max-width: 65ch;
        margin: 0;
        color: #354454;
        font: 16px/1.5 Arial, sans-serif;
        text-align: left;
    }

    #timeline .portal-news-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: start;
        justify-self: start;
        box-sizing: border-box;
        float: none;
        width: auto;
        height: auto;
        min-height: 44px;
        margin: 12px 0 0;
        padding: 8px 16px;
        border: 0;
        border-radius: 8px;
        background: #b31624;
        box-shadow: none;
        color: #fff;
        font: bold 16px/1.3 Arial, sans-serif;
        text-shadow: none;
    }

    #timeline .portal-news-link:hover {
        background: #90121d;
    }
}
