.tr-program-events {
    --tr-event-card-width: 174px;
    position: relative;
    width: 100%;
    color: #fff;
}

.tr-program-events::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 1px;
    right: 0;
    bottom: 1px;
    width: 42px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .72));
    opacity: 1;
    transition: opacity .2s ease;
}

.tr-program-events.is-at-end::after {
    opacity: 0;
}

.tr-program-events__track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.tr-program-events__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.tr-program-events__track::-webkit-scrollbar {
    display: none;
}

.tr-program-events__track:focus-visible {
    outline: 3px solid #1688f8;
    outline-offset: 3px;
}

.tr-program-events__card {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 var(--tr-event-card-width);
    min-width: var(--tr-event-card-width);
    padding: 13px 30px 17px;
    border-color: rgba(255, 255, 255, .2);
    border-style: solid;
    border-width: 1px 0;
    scroll-snap-align: start;
}

.tr-program-events__card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 0;
    width: 1px;
    height: calc(100% - 36px);
    background: rgba(255, 255, 255, .2);
}

.tr-program-events__card:first-child {
    padding-left: 16px;
    border-left-width: 1px;
}

.tr-program-events__card:last-child {
    border-right-width: 1px;
}

.tr-program-events__card:last-child::after {
    display: none;
}

.tr-program-events__card:only-child {
    flex-basis: calc(33.33% - 10px);
    min-width: calc(33.33% - 10px);
}

.tr-program-events__card time,
.tr-program-events__date,
.tr-program-events__time {
    display: block;
}

.tr-program-events__date {
    color: inherit;
    font-family:"Druk Text Wide Web";
    font-size: 36px;
    font-style: italic;
    font-weight:700;
    line-height: 1.2;
}

.tr-program-events__time,
.tr-program-events__description,
.tr-program-events__cancelled {
    color: inherit;
    font-family: "Graphik Web", Arial, sans-serif;
}

.tr-program-events__time {
    margin-top: 0;
    font-family:"Druk Text Wide Web";
    font-size: 20px;
    font-weight:700;
    line-height: 24px;
    white-space: nowrap;
}

.tr-program-events__description {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 16px;
}

.tr-program-events__cancelled {
    display: inline-block;
    margin-top: 8px;
    color: #ff3219;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
}

.tr-program-events__card.is-cancelled time {
    opacity: .62;
    text-decoration: line-through;
}

.tr-program-events__info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.tr-program-events__info li {
    position: relative;
    margin: 0;
}

.tr-program-events__info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-family: "Graphik Web", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.tr-program-events__info-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tr-program-events__info-button:focus-visible {
    outline: 3px solid #1688f8;
    outline-offset: 2px;
}

.tr-program-events__tooltip {
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: 240px;
    padding: 10px 12px;
    background: #fff;
    color: #000;
    font-family: "Graphik Web", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.tr-program-events__tooltip[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .tr-program-events {
        --tr-event-card-width: 135px;
    }

    .tr-program-events__card {
        padding: 13px 16px 17px;
    }

    .tr-program-events__date {
        font-size: 32px;
    }

    .tr-program-events__time,
    .tr-program-events__description {
        font-size: 14px;
    }

    .tr-program-events__time {
        line-height: 18px;
    }

    .tr-program-events__description {
        font-size: 12px;
        line-height: 16px;
    }

    .tr-program-events__info {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-program-events::after {
        transition: none;
    }

    .tr-program-events__track {
        scroll-behavior: auto;
    }
}
