.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 50px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3498db;
}

.timeline-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #03719c5b;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 20px;
  margin-top: 5px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.timeline-dot.active-dot {
  background: #03719c;
  transform: scale(1.3);
}

.timeline-content {
  flex: 1;
}

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

.timeline-panel {
  background: #ffffff44;
  padding: 15px;
  border-radius: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  opacity: 0;
}

.timeline-panel.open {
  max-height: none;
  padding: 15px;
  opacity: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.event-block {
  margin-bottom: 15px;
}

.event-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-images {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
}
.event-images img {
  height: 200px;
  width: auto;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.event-images img:hover {
  transform: scale(1.05);
}

.event-description-container {
  flex: 1;
  min-width: 150px;
}

.event-description {
  font-size: 0.95em;
}

.event-description p {
  font-size: inherit;
  margin: 0;
}

.event-notes {
  font-size: 0.85em; 
}

.event-notes p {
  font-size: inherit;
  margin: 0;
}

.event-separator {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .event-flex {
    flex-direction: column;
  }

  .event-images {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
  }

  .event-images img {
    max-width: 100px;
    margin-bottom: 0;
  }
}