.altron-press-carousel {
    margin: 0 0 50px;
}

.altron-press-carousel__heading {
    font-size: 25px;
    line-height: 32px;
    letter-spacing: 0;
    font-weight: 700;
    color: #1F4659;
    margin: 0 0 24px;
}

/* Viewport clips the track and fades the edges so cards enter and
   leave rather than being cut off mid-card. */
.altron-press-carousel__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.altron-press-carousel__track {
    display: flex;
    width: max-content;
    animation-name: altron-press-marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Each group is exactly half the track, so -50% loops with no seam.
   Spacing lives on the card margin, not a flex gap, to keep that exact. */
.altron-press-carousel__group {
    display: flex;
}

@keyframes altron-press-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Pause on hover and while a card has keyboard focus, so nothing
   slides away from someone mid-read or mid-tab. */
.altron-press-carousel:hover .altron-press-carousel__track,
.altron-press-carousel:focus-within .altron-press-carousel__track {
    animation-play-state: paused;
}

.altron-press-card {
    flex: 0 0 300px;
    width: 300px;
    margin-right: 30px;
    display: block;
    text-decoration: none;
}

.altron-press-card__tile {
    display: block;
    width: 100%;
    aspect-ratio: 760 / 500;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgb(31 70 89 / 8%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.altron-press-card:hover .altron-press-card__tile {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgb(31 70 89 / 16%);
}

.altron-press-card__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 700;
    text-transform: uppercase;
    color: #54B8DF;
}

.altron-press-card__date::before {
    content: "|";
    margin-right: 6px;
}

.altron-press-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
    font-weight: 700;
    color: #1F4659;
}

.altron-press-card__cue {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: #54B8DF;
    transition: color 0.3s ease;
}

.altron-press-card:hover .altron-press-card__cue {
    color: #1F4659;
}

.altron-press-card__ext {
    display: inline-block;
    margin-left: 2px;
}

.altron-press-card__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* No aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .altron-press-card__tile {
        height: 0;
        padding-bottom: 65.79%;
    }
}

/* Reduced motion: stop the marquee, hand control back to the user
   as a normal horizontal scroller. */
@media (prefers-reduced-motion: reduce) {
    .altron-press-carousel__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }
    .altron-press-carousel__track {
        animation: none;
        width: auto;
    }
    .altron-press-carousel__group[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 767px) {
    .altron-press-carousel__heading {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 18px;
    }
    .altron-press-carousel__viewport {
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
                mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
    }
    .altron-press-card {
        flex: 0 0 240px;
        width: 240px;
        margin-right: 20px;
    }
    .altron-press-card__title {
        font-size: 16px;
        line-height: 24px;
    }
}