/* -------------------------------------------
    Timeline Horizontal
---------------------------------------------- */

@import '../../../assets/sass/config';
@import '../../../assets/sass/direction';
@import '../../../assets/sass/mixins';

.timeline-horizontal {
    padding-bottom: 3rem; 
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    &::-webkit-scrollbar {
        height: 4px;
        width: 4px;
        background-color: rgba(#000, .1);
        border-radius: 5px;
    }
    &::-webkit-scrollbar-thumb {
        background: rgba(#000, .3);
        border-radius: 5px;
        cursor: pointer;
    }

    .timeline-line {
        top: 50%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: calc(100% - var(--alpha-gap) * 2);
        flex: 0 0 100%;
        height: 2px;
        transform: none;
        margin: 0 auto;
        padding: 0;
    }
    .timeline-point-wrap {
        position: relative;

        > img {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translate(-50%);
        }
    }
    .timeline-point {
        position: relative;
        margin-left: auto;
        margin-right: auto;
    }
    .timeline-item {
        flex-wrap: nowrap;
    }
    .timeline-item-top {
        align-items: flex-end;
    }
    .timeline-item-bottom {
        align-items: flex-start;
    }
    &.timeline-h-align-center .timeline-item .timeline-meta-wrap,
    .timeline-content {
        text-align: center;
    }
    &.timeline .timeline-item {
        flex-direction: row;
    }

    &.timeline .row {
        width: 100%;
        margin: 0;
        
        > * {
            padding: 0 var(--alpha-gap);
        }
    }
}