.wp-timeline-category-filter {
  width: 100%;
  display: inline-block;
  margin-top: 60px;
  text-align: center;
}
#wp-timeline-category-filter {
  margin: 0 auto;
}
.timeline-month {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  margin: 50px auto;
  color: #fff;
  position: relative;
  background: var(--nv-primary-accent);
  width: fit-content;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  z-index: 1;
  border: 3px solid #fff;
}


/* Basic layout */
#wp-timeline-wrapper { max-width: 1100px; margin: 0 auto 100px; padding: 40px 20px; }
#wp-timeline-list { position: relative; padding: 20px 0; }

/* center vertical line */
#wp-timeline-list:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e2e2e2;
    transform: translateX(-50%);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    z-index: 1;
}

/* active colored line state */
#wp-timeline-list.active-line:before {
    background: var(--nv-primary-accent);
    box-shadow: 0 0 18px rgba(75,133,180,0.12);
}

/* item base */
.timeline-item { position: relative; width: 100%; display: block; margin: 36px 0; z-index: 2; }
/*.timeline-item:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #484E28;
    border: 3px solid #fff;
    transform: translate(-50%, 0);
    transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 3;
} */

.sml_date {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 3;
  text-align: center;
  line-height: 1;
  color: #fff;
  font-weight: 600;
  align-content: center;
  font-size: 1.6rem;
  transition: all 0.6s cubic-bezier(.2,.9,.3,1);
  transition-delay: 0.05s;
}
.sml_date_m {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

/* active bullet */
.timeline-item.active:before {
    background: #AB3A2E;
    transform: translate(-50%, -4px) scale(1.12);
}

/* content blocks */
.timeline-item-date { display: block; font-size: 0.9rem; color: #000; margin-bottom: 8px; }

.timeline-item-content {
  width: 46%;
  padding: 0;
  background: #F5F5F5;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
}
.timelinebox {
  width: 100%;
  max-width: 70%;
  position: relative;
  padding: 15px;
}
.timeline-item-title { margin: 0 0 8px 0; font-size: 1.4rem; }
.timeline-item-excerpt { margin: 0; color: #333; }
.timeline-readmore {
  position: relative;
  bottom: 0;
}
.timeline-item-image {
  width: 100%;
  max-width: 150px;
  display: block;
  float: left;
  height: 150px;
  background-position: center;
  background-size: cover;
}
.timeline-item-image .attachment-thumbnail.size-thumbnail {
  vertical-align: middle;
}

/* Slide-in base state */
#wp-timeline-list > .timeline-item .timeline-item-content {
    opacity: 0;
    transition: all 0.6s cubic-bezier(.2,.9,.3,1);
}

/* Slide-in positions */
#wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content {
    transform: translateX(-40px);
}
#wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content {
    transform: translateX(40px);
}

/* Active: slide in */
#wp-timeline-list > .timeline-item.active .timeline-item-content {
    opacity: 1;
    transform: translateX(0);
    /* Transition delay is set via JS for stagger */
}


/* --- Timeline Lightbox Styles --- */
.timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Optional: blurs the background slightly */
}

.timeline-modal-box {
    background: #fff;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: timelineModalFadeIn 0.3s ease;
}

.timeline-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-modal-close:hover {
    background: #444;
}

/* Internal Layout of the injected content */
.lightbox-header-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.lightbox-inner-content {
    padding: 30px;
}

.lightbox-inner-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.lightbox-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.event_description {
  color: var(--nv-text-color);
}

@keyframes timelineModalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}




/* Place content to left/right by using padding on wrapper */
@media (min-width: 820px) {
    .timeline-item { display: block; }
    #wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content { margin-right: 54%; }
    #wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content { margin-left: 54%; }
}



/* small responsiveness */
@media (max-width: 819px) {
    #wp-timeline-list:before { left: 18px; transform: none; }
    .timeline-item:before { left: 18px; transform: none; }
    #wp-timeline-list > .timeline-item .timeline-item-content { width: calc(100% - 56px); margin-left: 40px !important; text-align: left !important; }
    #wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content, #wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content { position: relative; left: 4%; }
    .sml_date {
  left: 20px;
}
	.timeline-month {
  margin: 50px 0 50px -10px;
}
}

/* load more */
#wp-timeline-load-more-wrap { text-align: center; margin-top: 18px; }
#wp-timeline-load-more {
  padding: 10px 18px;
  border: none;
  background: var(--nv-light-bg);
  color: #000;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
  margin: 0 auto;
  font-weight: 600;
}
#wp-timeline-load-more:hover { background: var(--nv-primary-accent); }
#wp-timeline-load-more[disabled] { opacity: 0.7; cursor: default; }

/* empty */
.timeline-empty { text-align: center; color: #888; }


