.m-post-timeline-widget {
    --timeline-width: 200px;
    --gap: 40px;
    --col: 2;
}

.ptl-wrapper {
    position: relative;
    padding-left: var(--gap);
}
.ptl-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #e5e5e5;
}

.ptl-point {
    position: relative;
}
.ptl-point:not(:last-child) {
    padding-bottom: var(--gap);
}
.ptl-point::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(var(--gap) * -1);
    transform: translate(-50%, -50%);

    display: block;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background-color: #BD9B5C;
}

.ptl-point .timeline {
    display: flex;
    flex-direction: column;
    font-size: 40px;
    font-weight: bold; 
}
.ptl-point .timeline > span:first-child {
    opacity: .2;
    font-size: .9em;
}

.ptl-point .list {
    display: grid;
    grid-template-columns: repeat(var(--col), 1fr);
    gap: var(--gap);
    position: relative;
}

.ptl-item {
    position: relative;
    width: 100%;
}
.ptl-item a {
    z-index: 2;
}
.ptl-item a, .ptl-item .bg img, .ptl-item .bg::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ptl-item .bg {
    position: relative;
    width: 100%;
    padding-top: 50%;
    overflow: hidden;
}
.ptl-item .bg img {
    object-fit: cover;
    transition: .5s ease;
}
.ptl-item .bg.overlay::after {
    content: '';
    background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.ptl-item:hover .bg img {
    transform: scale(1.1);
}

.ptl-item .time {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: #252525;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.ptl-item .time::before {
    content: '';
    background-image: url('../images/ic-calendar.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 10px;
}
.ptl-item .tit {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
    margin: 0;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 20px;
    transition: .5s ease;
}
.ptl-item .tit span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.ptl-item:hover .tit {
    color: #BD9B5C;
}

/* RESPONSIVE */
@media only screen and (min-width: 1025px) {
    .m-post-timeline-widget {
        padding-left: var(--timeline-width);
    }
    .ptl-point .timeline {
        position: absolute;
        left: calc(var(--gap) * -1);
        top: 0;
        transform: translateX(-100%);
        text-align: right;
        width: var(--timeline-width);
        padding-right: var(--gap);
    }
}
@media only screen and (max-width: 1024px) {
    .m-post-timeline-widget {
        --gap: 30px;
    }
    .ptl-point .timeline {
        font-size: 24px;
        padding-bottom: var(--gap);
    }
    .ptl-item .tit {
        font-size: 16px;
    }
}
@media only screen and (max-width: 767px) {
    .m-post-timeline-widget {
        --gap: 20px;
        --col: 1;
    }
    .ptl-point .timeline {
        font-size: 20px;
    }
}