/* ----- Grey Container  ------------------------------------------- */

:root {
    --unsdg-padding: 1px;
    --bg-color: #FFECD5;
}

/* -----  Irregular grid helpers ------------------------------------------- */


.timeline-holder {
    
}
.tl-a {
    padding-top: 10px;
}
.timeline-each {
    position: relative;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    
}
.tl-left, .tl-mid, .tl-right {
    padding-bottom: 0px;
}
.tl-left, .tl-right {
    width:100%;
    z-index: 2;
}
.tl-mid {
    width:14%;
    z-index: 1;
    display: none;
}
.tl-mid-marker {
    position: absolute;
    overflow: visible;
    left: 50%;
    border-bottom: 1px dashed var(--color-purple-high);
    margin-top: 50%;
    transform: translateX(-10px);
    width: 200px;
    height: 10px;
    transition-delay: .2s;
}
.tl-mid-marker div {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    background: var(--color-purple-high);
}
.tl-mid-marker.mleft {
    transform: translateX(-100%);
    display: flex;
    flex-direction: row-reverse;
}

.minfo {
    text-align: center;
    letter-spacing: 0.2px;
    padding: 25px 20px 70px;
    transform: translateY(0%);
    position: relative;
    font-weight: 300;
    line-height: 150%;
    width: 100%;
}
.minfo div {
    margin-top: 10px;
}
.minfo strong {
    color: var(--color-brown-dark);
    font-family: var(--font-family-alt);
    font-weight: 500;
    font-size: 1.1em;
}
.timeline-each .frame-holder {
    position: relative;
    aspect-ratio: 16/11;
    text-align: center;
}
.timeline-each .frame-holder a {
    text-decoration: underline;
    color: var(--color-purple-high);
    display: inline;
}
.timeline-each .frame-holder i {
    display: inline-block;
    margin-left: 5px;
}
.timeline-each .frame-holder a:hover {
    color: var(--color-purple-high);
}
.timeline-each .frame-holder img {
    width: 100%; height: 90%;
    object-fit: cover;
}

.timeline-each .portrait .frame-holder {
    aspect-ratio: 16/11; 
    width: 100%;
}

.timeline-each .tl-left.portrait, .timeline-each .tl-right.portrait  {
    display: flex;
    justify-content: center;
}

.timeline-each .frame {
    position: absolute;
    width:94%; height: auto;
    aspect-ratio: 16/10.7;
    border: 1px solid var(--color-purple-high);
}
.timeline-each .portrait .frame {
    position: absolute;
    width:94%; height: auto;
    aspect-ratio: 16/10.7;
    border: 1px solid var(--color-purple-high);
}

.timeline-each .tl-left .frame {
    transform: translate(3%, -5%);
}
.timeline-each .tl-right .frame {
    transform: translate(3%, -5%);
}
.timeline-each .portrait .frame {
    transform: translate(3%, -5%);
}

.tl-mid .tl-mid-marker:nth-child(3)  {
    margin-top: 20%;
}
.tl-mid .tl-mid-marker:nth-child(2)  {
    margin-top: 150%;
}



.tl-a .tl-mid-marker.mtop  {
    margin-top:0;
    border: none;
}

.tl-a .tl-mid-marker.mtop  {
    margin-top:0;
    border: none;
}
.tl-a .tl-mid-marker:nth-child(3)  {
    margin-top: 200%;
}
.tl-a .tl-mid-marker:nth-child(4)  {
    margin-top: 90%;
}
.tl-a .tl-mid-marker:nth-child(2)  {
    margin-top: 0%;
}


@media all and (min-width: 540px) {
    .timeline-each {
        width: 80%;
    }
    .minfo {
        padding: 25px 20px 90px;
    }
}
@media all and (min-width: 768px) {
    .timeline-each {
        display: flex;
        width: 100%;
        flex-direction: row;
        overflow: visible;
    }
    .tl-left, .tl-right {
        width:42%;
        z-index: 2;
        overflow: visible;
    }
    .timeline-each .frame {
        width:100%; height: 100%;
    }
    .timeline-each .tl-left .frame {
        transform: translate(3.5%, -5%);
    }
    .timeline-each .tl-right .frame {
        transform: translate(-3.5%, -5%);
    }
    .timeline-each .portrait .frame {
        transform: translate(-4.75%, -3.75%);
    }
    
    .timeline-each .tl-left.portrait {
        display: flex;
        justify-content: flex-end;
        transform: translateY(-50px);
    }
    .timeline-each .tl-right.portrait {
        display: flex;
        justify-content: flex-start;
    }    
    .minfo {
        padding: 25px 20px;
        position: absolute;
        width: 100%;
    }
    
    .tl-mid-marker div {
        width: 12px !important;
        height: 12px !important;
    }
    .tl-mid-marker {
        transform: translateX(-6px);
        width: 100px;
        height: 6px;
    }
    .tl-mid-marker.mleft div {
       transform: translateX(6px);
    }
    .tl-a .tl-left, .tl-a .tl-right {
        padding-top: 10%;
    }
    .tl-left, .tl-mid, .tl-right {
        height: 100%;
        
    }
    .tl-mid {
        display: block;
        position: relative;
        height: auto;
    }
    .tl-mid-line {
        position: absolute;
        overflow: visible;
        width: 1px !important;
        height: 100%; 
        border-right: 1px dashed var(--color-purple-high);
        left: 50%;
    }

    .timeline-each .frame-holder {
        aspect-ratio: 16/11;
    }
    .timeline-each .frame-holder img {
        width: 100%; height: 85%;
    }

    .timeline-each .portrait .frame-holder {
        width: 75%;
        aspect-ratio: 5/5;
    }
    .timeline-each .portrait .frame {
        transform: translate(-4.75%, -3.75%);
    }

    .timeline-each .frame {
        width:100%; 
        height: 85%;
    }
    .timeline-each .portrait .frame {
        width: 100%;
        aspect-ratio: 5/4.25;
        height: auto;
    }

}

@media all and (min-width: 1400px) {
    
    .tl-mid .tl-mid-marker:nth-child(3)  {
        margin-top: 20%;
    }
    .tl-mid .tl-mid-marker:nth-child(2)  {
        margin-top: 120%;
    }
    
    .tl-a .tl-mid-marker.mtop  {
        margin-top:0;
        border: none;
    }
    .tl-a .tl-mid-marker:nth-child(3)  {
        margin-top: 130%;
    }
    .tl-a .tl-mid-marker:nth-child(2)  {
        margin-top: 0%;
    }

    .tl-left, .tl-right {
        width:40%;
    }
    .tl-mid {
        width:20%;
    }
    .tl-mid-marker {
        transform: translateX(-7px);
        width: 150px;
        height: 7px;
    }
    .tl-mid-marker div {
        width: 14px !important;
        height: 14px !important;
    }
    .tl-mid-marker.mleft div {
       transform: translateX(7px);
    }
    .tl-a .tl-left, .tl-a .tl-right {
        padding-top: 7%;
    }
    .tl-a .tl-mid-marker:nth-child(3)  {
        margin-top: 130%;
    }
    .tl-a .tl-mid-marker:nth-child(4)  {
        margin-top: 55%;
    }
    .tl-a .tl-mid-marker:nth-child(2)  {
        margin-top: 0%;
    }
    .timeline-each .portrait .frame-holder {
        width: 70%;
        aspect-ratio: 5/6.5;
    }
    .timeline-each .portrait .frame {
        width: 100%;
        aspect-ratio: 5/5.55;
    }
}

@media all and (min-width: 1600px) {
    .tl-mid-marker {
        transform: translateX(-8px);
        width: 180px;
        height: 8px;
    }
    .tl-mid-marker div {
        width: 16px !important;
        height: 16px !important;
    }
    .tl-mid-marker.mleft div {
       transform: translateX(8px);
    }

}


.cast {
    position: absolute;
    width: 100px;
    transition-delay: 0.3s;
    z-index: 9;
    transform: translate(40%,-75%);
}
.tl-c .cast {
    position: absolute;
    width: 80px;
    transition-delay: 0.3s;
    z-index: 9;
    transform: translate(300%,-75%);
}


@media all and (min-width: 768px) {
    :root {
        --each-padding: 150px;
        --top-padding: 70px;
    }
}
@media all and (min-width: 1200px) {
    :root {
        --each-padding: 150px;
        --top-padding: 90px;
    }
}
@media all and (min-width: 1600px) {
    :root {
        --each-padding: 170px;
        --top-padding: 100px;
    }
    .cast {
        width: 140px;
        transform: translate(60%,-75%);
    }
    .tl-c .cast {
        width: 150px;
        transform: translate(-50%,-75%);
    }
}

@media all and (min-width: 2100px) {
    :root {
        --each-padding: 200px;
        --top-padding: 100px;
    }
}

.timeline-each {
    padding-bottom: var(--each-padding); 
}
.tl-mid-line {
    height: calc(100% + var(--each-padding)); 
}
.tl-right .frame-holder {
    margin-top: var(--top-padding); 
}
.tl-f .tl-mid-marker.mlast  {
    margin-top:0% !important;
    position: absolute;
    bottom:calc(var(--each-padding)* -1);
    border: none;
}
