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

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

.timeline-horizontal {
    width: calc(100% + 2 * var(--alpha-gap));
    margin-left: calc(-1 * var(--alpha-gap));
    margin-right: calc(-1 * var(--alpha-gap));
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    &::-webkit-scrollbar {
        height: 7px;
        width: 4px;
        background-color: rgba(#000, .1);
        border-radius: var(--alpha-border-radius-form);
    }
    &::-webkit-scrollbar-thumb {
        background-color: rgba(#000, .3);
        border-radius: var(--alpha-border-radius-form);
        cursor: pointer;
    }

    .timeline-line {
        top: 50%;
        #{$left}: var(--alpha-gap);
        flex: 0 0 100%;
        height: 2px;
        transform: translateY(-50%);
        margin: 0 auto;
        padding: 0;
    }
    .timeline-point-wrap {
        position: relative;

        > img {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translate(-50%);
        }
    }
    .active .timeline-point {
        background-color: var(--alpha-primary-color);
        color: var(--alpha-white-color);
    }
    .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);
        }
    }
    .timeline-content {
        box-shadow: none;
    }
    &.timeline-with-shadow .timeline-content-inner {
        padding: 3rem;
        box-shadow: 0 0 var(--alpha-gap) rgb(0 0 0 / 7%);
    }
}