#diaryLayout{
display:flex;
gap:30px;
}


/* YEAR NAV */

#yearNav{
width:110px;
position:sticky;
top:20px;
height:fit-content;
}

#yearNav a{
display:block;
padding:6px;
margin-bottom:5px;
background:#5B6D61;
color:white;
text-decoration:none;
border-radius:4px;
font-size:14px;
}

#yearNav a:hover{
background:#3A3A3A;
}


/* TIMELINE */

#timeline{
max-width:700px;
width:100%;
border-left:3px solid #bbb;
padding-left:25px;
}


/* YEAR HEADER */

.year-header{
font-size:28px;
font-weight:bold;
margin:40px 0 20px;
}


/* ENTRY */

.timeline-item{
background:white;
padding:15px;
margin-bottom:35px;
border-radius:8px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
position:relative;
}

.timeline-item::before{
content:"";
width:14px;
height:14px;
background:#5B6D61;
border-radius:50%;
position:absolute;
left:-33px;
top:20px;
}

.timeline-date{
font-weight:bold;
margin-bottom:10px;
}

.timeline-image{
width:100%;
border-radius:6px;
cursor:pointer;
transition:0.25s;
}

.timeline-image:hover{
transform:scale(1.03);
}

.timeline-text{
margin-top:10px;
}


/* IMAGE MODAL */

#imageModal{
display:none;
position:fixed;
z-index:1000;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.85);
justify-content:center;
align-items:center;
}

#modalImage{
max-width:90%;
max-height:90%;
}

#closeModal{
position:absolute;
top:30px;
right:40px;
font-size:40px;
color:white;
cursor:pointer;
}