.det-timeline,
.det-timeline * {
    box-sizing: border-box;
}

.det-timeline {
    --det-red: #e42711;
    --det-gallery-height: 375px;
    --det-active-width: 378px;
    --det-inactive-width: 134px;
    --det-inactive-height: 305px;
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #111;
    font-family: "DIN Next LT Pro", "DIN Next", Arial, sans-serif;
    isolation: isolate;
}

.det-years-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 12px;
}

.det-years-viewport::-webkit-scrollbar,
.det-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.det-years-track {
    --det-progress: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--det-count, 7), minmax(70px, 1fr));
    min-width: 100%;
    padding: 0 0 4px;
}

.det-years-line,
.det-years-progress {
    position: absolute;
    left: var(--det-line-left, calc(50% / var(--det-count, 7)));
    top: 33px;
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
}

.det-years-line {
    right: calc(50% / var(--det-count, 7));
    background: #d9d9d9;
}

.det-years-progress {
    width: var(--det-progress);
    max-width: calc(100% - (100% / var(--det-count, 7)));
    background: var(--det-red);
    transition: width .35s ease;
}

.det-year-button {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 0 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border: 0;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.det-year-button:hover,
.det-year-button:focus,
.det-year-button:active {
    background: transparent !important;
    color: inherit;
}

.det-year-label {
    display: block;
    color: #c7c7c7;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color .25s ease, transform .25s ease;
}

.det-year-button.is-active .det-year-label {
    color: #111;
    transform: translateY(-1px);
}

.det-year-dot {
    position: relative;
    width: 9px;
    height: 9px;
    display: block;
    flex: 0 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #bdbdbd;
    box-shadow: 0 0 0 1px rgba(0,0,0,.03);
    transition: transform .25s ease, background-color .25s ease;
}

.det-year-button.is-active .det-year-dot {
    width: 12px;
    height: 12px;
    background: #ff3b17;
    transform: translateY(-1px);
}

.det-year-button.is-active .det-year-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid #ff3b17;
    border-radius: 50%;
    opacity: .55;
}

.det-content {
    width: 100%;
    margin: 8px auto 24px;
    min-height: 55px;
}

.det-content-panel {
    animation: detFade .32s ease both;
}

.det-content-panel[hidden] {
    display: none !important;
}

.det-content-title {
    margin: 0 0 9px;
    color: #111;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.12;
}

.det-content-description {
    margin: 0;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.28;
}

.det-gallery {
    position: relative;
    width: 100%;
}

.det-gallery-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.det-gallery-track {
    display: flex;
    align-items: flex-end;
    width: max-content;
    min-width: 100%;
    gap: 3px;
}

.det-card {
    position: relative;
    flex: 0 0 var(--det-inactive-width);
    width: var(--det-inactive-width);
    min-width: var(--det-inactive-width);
    height: var(--det-inactive-height);
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: #ececec;
    cursor: pointer;
    transition: flex-grow .42s cubic-bezier(.2,.75,.2,1), transform .25s ease, opacity .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.det-card:hover,
.det-card:focus,
.det-card:active {
    outline: none;
    background: #ececec;
}

.det-card.is-active {
    flex: 0 0 var(--det-active-width);
    width: var(--det-active-width);
    min-width: var(--det-active-width);
    height: var(--det-gallery-height);
    cursor: default;
}

.det-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform .45s ease;
}

.det-card:not(.is-active):hover img {
    transform: scale(1.035);
}

.det-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,.48);
    opacity: 1;
    transition: opacity .32s ease;
    pointer-events: none;
}

.det-card.is-active::after {
    opacity: 0;
}

.det-navigation {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.det-arrow {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: #e6e6e6;
    color: #111;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.det-arrow:hover,
.det-arrow:focus {
    transform: translateY(-1px);
}

.det-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.det-arrow svg {
    width: 13px;
    height: 13px;
}

@keyframes detFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .det-timeline {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }


    .det-years-viewport {
        padding: 0 0 12px;
        scroll-behavior: smooth;
    }

    .det-years-track {
        display: flex;
        width: max-content;
        min-width: max-content;
        padding: 0 18px 4px;
    }

    .det-years-line,
    .det-years-progress {
        left: var(--det-line-left, 60px);
        top: 34px;
    }

    .det-years-line {
        right: 60px;
    }

    .det-year-button {
        width: 110px;
        min-width: 110px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .det-year-label {
        font-size: 20px;
    }

    .det-content {
        width: auto;
        max-width: none !important;
        min-height: 73px;
        margin: 4px 28px 24px;
    }

    .det-content-title {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .det-content-description {
        max-width: 310px;
        font-size: 11px;
        line-height: 1.25;
    }

    .det-gallery-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 0 0 17px;
        scroll-padding-left: 17px;
    }

    .det-gallery-track {
        width: max-content;
        min-width: max-content;
        padding-right: 17px;
    }

    .det-card,
    .det-card.is-active {
        flex: 0 0 var(--det-inactive-width);
        width: var(--det-inactive-width);
        min-width: var(--det-inactive-width);
        height: var(--det-inactive-height);
        border-radius: 8px;
    }

    .det-card.is-active {
        flex-basis: min(var(--det-active-width), calc(100vw - 56px));
        width: min(var(--det-active-width), calc(100vw - 56px));
        min-width: min(var(--det-active-width), calc(100vw - 56px));
    }

    .det-navigation {
        display: flex;
    }
}

@media (max-width: 380px) {
    .det-year-button {
        width: 94px;
        min-width: 94px;
    }

    .det-year-label {
        font-size: 18px;
    }

    .det-content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .det-card.is-active {
        flex-basis: min(var(--det-active-width), calc(100vw - 54px));
        width: min(var(--det-active-width), calc(100vw - 54px));
        min-width: min(var(--det-active-width), calc(100vw - 54px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .det-timeline *,
    .det-timeline *::before,
    .det-timeline *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
