
.page-ctn {
    margin-bottom: 2rem;
}

.culture-back{
    margin-top: 5rem;
}

.banner{
    padding-top: 6.75rem;
    position: relative;
    z-index: 240;
    background-color: white;
}

.banner::after{
    content: "";
    opacity: 0;
    transition: .6s;
    position: absolute;
    width: 100%;
    height: 3rem;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .06) 75%, transparent);
    pointer-events: none;
}

.scrolled .banner::after{
    opacity: 1;
}

.banner-box{
    display: flex;
    flex-direction: column;
    writing-mode: tb-rl;
    writing-mode: vertical-rl;
    position: absolute;
    top: 4.375rem;
    right: 10rem;
}

.banner-box h1{
    font-size: 5rem;
    color: #333;
    font-weight: 100;
    letter-spacing: .125rem;
    margin-left: .5rem;
}

.banner-box .banner-text{
    color: #4d4d4d;
    font-size: 1rem;
    letter-spacing: .375rem;
    line-height: 1.875em;
    font-family: Source Han Sans CN, sans-serif;
}

.history-ctn {
    padding: 8.5625rem 0;
    position: absolute;
    width: 100%;
    left: 0;
    transform: translateZ(0);
}

.history-list {
    position: relative;
    width: 75rem;
    margin: 0 auto;
    /* padding-top: 6rem; */
    padding-top: 14rem;
}

.history-ctn .line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.history {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 8.75rem;

    position: relative;
    opacity: .33;
    transition: .5s;
}

.history>*{
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.history:last-child::after{
    background: linear-gradient(to bottom, #B7B7B7, transparent 50%) transparent;
}

.history.active{
    opacity: 1;
}

.history .half {
    width: calc(50% - 3.875rem);
}

.history.ming .half {
    width: calc(50% - 3.875rem);
}

.history .half img {
    margin-top: 0;
}

.history .ming img {
    display: inline-block;
    margin-top: 0rem;
}

@media (max-width: 1440px) {
    .history .half img{
        width: 50%;
    }

    .banner-box{
        top: 2.75rem;
    }

    .banner-box h1{
        font-size: 4rem;
    }

    .banner-box .banner-text{
        letter-spacing: .15rem;
        font-size: .875rem;
    }
}

.history-ctn .dynasty-title {
    font-size: 3.75rem;
    color: #8b634b;
    line-height: 1.5em;
    font-weight: 300;
    position: relative;
}

.history-ctn .dynasty-title::before{
    content: "";
    position: absolute;
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    top: 0;
    bottom: 0;
    margin: auto;
    left: calc(-3.875rem - 0.4rem);
    background: #8b634b;
}

.history:nth-child(2n){
    flex-direction: row-reverse;
}

.history:nth-child(2n)>*:last-child{margin-left: 0;text-align: right}
.history:nth-child(2n)>*:first-child{margin-right: 0;}
.history:nth-child(2n+1)>*:first-child{margin-left: 0; text-align: right;}
.history:nth-child(2n+1)>*:last-child{margin-right: 0;}


.history:nth-child(2n) .dynasty-title::before{
    right: calc(-3.875rem - 0.4rem);
    left: auto;
}

.history::after{
    content: "";
    position: absolute;
    width: 1px;
    height: calc(100% - 3.5rem);
    top: 4.5rem;
    left: 0;
    right: 0;
    margin: auto;
    background: #B7B7B7;
}

.history-ctn p {
    font-size: 1rem;
    line-height: calc(28em / 16);
    color: #4d4d4d;
    margin-top: .75em;
    letter-spacing: .1em;
}

.site-footer{
    position: fixed;
    left: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

body.arrived-bottom .site-footer{
    opacity: 1;
    visibility: visible;
}

@media (max-width: 750px) {

    .history-list{
        width: 100%;
        padding-left: calc(64rem / 24);
        padding-right: calc(64rem / 24);
    }

    .history{
        display: block;
        width: 100%;
        position: relative;
        opacity: 1;
        padding-bottom: 5rem;
    }

    .history .half{
        width: 100%;
    }

    .history.ming{
        margin-top: calc(96rem / 24);
    }

    .history.ming .half{
        width: auto;
    }

    .history .half:first-child{
        position: absolute;
        width: 100%;
        bottom: calc(100% - 4.6875rem * 2);
        left: 0;
        height: calc(4.6875rem * 2);
    }

    .history .half:first-child img{
        max-width: calc(300rem / 24);
        position: absolute;
        right: 0;
        bottom: 0;
        margin: auto;
    }
    .history:nth-child(2n+1)>*:last-child,
    .history:nth-child(2n)>*:last-child{
        text-align: justify;
    }

    .history .dynasty-title{
        writing-mode: vertical-lr;
        line-height: .875em;
        width: 100%;
        letter-spacing: .125em;
        font-size: calc(100rem / 24);
    }

    .history:nth-child(2n)>*:last-child .dynasty-title{
        writing-mode: vertical-rl;
        writing-mode: tb-rl;
    }

    .history:nth-child(2n)>.half:first-child img{
        right: auto;
        left: 0;
    }

    .history-ctn .dynasty-title::before{
        display: none;
    }

    .history::after{
        display: none;
    }

    .history:last-of-type{
        padding-bottom: 0;
    }

    .history-ctn{
        padding-bottom: 7.5rem;
    }
    .history-list {
        padding-top: 10vh;
    }
}



