/*

Structural CSS for the Timeline
Modify at your own risk!

by Wylie Hobbs
CSS version 1.1

 */
#timeline ul{
    width:100%;
    margin:0 auto;
    position:relative;
    display:inline-block;
    list-style: none;
    background:url('../img/ul-bg.png') center top repeat-y;
    padding: 0;
}
#timeline ul li{
    display: block;
    position: relative;
    width: 50%;
    clear:both;
}
#timeline ul li .timeline-text{
        width:65%;
        float:left;
        font-size:14px;
        line-height:17px;
        margin-left:2%;
    }
    #timeline ul li div{
        
    }

#timeline ul li:nth-child(even){
    float: right;
}
    #timeline ul li:nth-child(even) > div{
        display: block;
        float:left;
        background:url('../img/li-bg.png') left center no-repeat;
        margin-left:-10px;
        padding-left:30px;
    }
    #timeline .timeline-date{
        text-align: right;
        margin-bottom: 1%;
    }
    #timeline ul li:nth-child(even) > div .timeline-date{
        text-align: left;
    }

#timeline ul li:nth-child(odd){
    float: left;
    text-align: right;
}
    #timeline ul li:nth-child(odd) > div{
        display:block;
        float:right;
        background:url('../img/li-bg.png') right center no-repeat;
        margin-right:-10px;
        padding-right:30px;
    }

    #timeline ul li:nth-child(odd) > div .timeline-text{
        float:right;
        text-align: right;
        margin-right:2%;
        margin-left: 0;
    }
     
#timeline ul .timeline-image{
	width: 30%;
	height: auto;
	overflow-x: hidden;
}
	#timeline ul li:nth-child(odd) > div .timeline-image {
		float:right;
		margin:0 0 0 1%;
	}
	#timeline ul li:nth-child(even) > div .timeline-image {
		float:left;
		margin: 0 1% 0 0;
	}
/* Responsive: stack to single column on tablet/mobile (added for new site) */
@media (max-width: 768px){
    #timeline ul{ background-position: 14px top; }
    #timeline ul li,
    #timeline ul li:nth-child(odd),
    #timeline ul li:nth-child(even){ width:100%; float:none; clear:both; text-align:left; margin-bottom:32px; padding-bottom:8px; }
    #timeline ul li:nth-child(odd) > div,
    #timeline ul li:nth-child(even) > div{ float:none; text-align:left;
        background:url('../img/li-bg.png') left center no-repeat;
        margin:0 0 0 0; padding-left:34px; }
    #timeline ul li .timeline-text,
    #timeline ul li:nth-child(odd) > div .timeline-text,
    #timeline ul li:nth-child(even) > div .timeline-text{ float:none; width:auto; text-align:left; margin:0 0 6px 0; }
    #timeline .timeline-date,
    #timeline ul li:nth-child(odd) > div .timeline-date,
    #timeline ul li:nth-child(even) > div .timeline-date{ text-align:left; }
    #timeline ul .timeline-image{ width:55%; max-width:240px; height:auto; float:none; display:block; margin:0 0 10px 0; }
    #timeline ul li:nth-child(odd) > div .timeline-image,
    #timeline ul li:nth-child(even) > div .timeline-image{ float:none; margin:0 0 8px 0; }
}

/* image fills its container at correct aspect ratio */
#timeline .timeline-image img{ width:100%; height:auto; display:block; }
