@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Noto+Serif+KR:wght@200..900&family=Noto+Serif+SC:wght@200..900&family=Noto+Serif+TC:wght@200..900&display=swap');

.update-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: auto;
}

.update-modal-content {
  background: #fff;
  padding: 0;
  border-radius: 0;
  max-width: 520px;
  width: 96vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 auto;
  overflow-y: auto;
}

.update-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  cursor: pointer;
  font-size: 2rem;
  color: #888;
  z-index: 10;
  background: none;
  border: none;
}

.update-modal-images {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  max-width: 90vw;
  max-height: 70vh;
  margin: 0 auto;
  padding: 24px 0 8px 0;
}

.update-modal-images img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 0;
  flex-shrink: 0;
}

.update-modal-info {
  width: 100%;
  padding: 12px 18px 18px 18px;
  text-align: left;
  font-size: 1rem;
  color: #222;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
}

#timeline-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

#timeline-gallery {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 0;
  box-sizing: border-box;
}

.timeline-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

.timeline-timestamp {
  flex: 0 0 10rem;
  width: 10rem;
  min-width: 10rem;
  max-width: 10rem;
  text-align: left;
  font-size: 1.1rem;
  color: #181818;
  padding-right: 12px;
  padding-top: 8px;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  white-space: pre-line;
  background: none;
  box-sizing: border-box;
  z-index: 10;
  position: relative;
  line-height: 1.2;
}

.timeline-date-label {
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #181818;
  margin-bottom: 4px;
  margin-top: 24px;
}

.timeline-images {
  flex: 1;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  padding-top: 8px;
  overscroll-behavior: contain;
  justify-content: flex-start;
  min-width: 0;
  box-sizing: border-box;
  margin-left: 8px;
}

/* Make scrollbar more visible */
.timeline-images::-webkit-scrollbar {
  height: 8px;
}
.timeline-images::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}
.timeline-images::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0;
}
.timeline-images::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.timeline-img {
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
  object-fit: contain;
  width: auto;
  height: 100px;
  max-width: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.timeline-img:hover {
  z-index: 5;
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.update-modal-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 0 8px 0;
}

.update-modal-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border-radius: 0;
  padding: 0 0 12px 0;
  width: 100%;
}

.update-modal-event img {
  max-width: 96vw;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.update-modal-event .event-info {
  width: 100%;
  max-width: 460px;
  text-align: center;
  font-size: 1rem;
  color: #333;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  margin-bottom: 4px;
  line-height: 1.4;
  padding: 0 16px;
}

.update-modal-event .event-info b {
  color: #1a1a1a;
  font-weight: 600;
}

.update-modal-event .event-info small {
  color: #666;
  font-size: 0.9rem;
}
.update-modal-event .event-supp {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.update-modal-event .event-supp img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.update-modal-event .event-supp img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
@media (max-width: 700px) {
  .timeline-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .timeline-timestamp {
    flex: none;
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding-bottom: 8px;
    padding-right: 0;
    white-space: nowrap;
  }
  
  .timeline-images {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .timeline-img {
    height: 80px;
    max-width: 80px;
  }
  
  .update-modal-content {
    max-width: 100vw;
    width: 98vw;
    border-radius: 0;
    padding: 0;
    max-height: 90vh;
  }
  .update-modal-images img {
    max-width: 98vw;
    max-height: 40vh;
  }
  .update-modal-info {
    padding: 8px 8px 12px 8px;
    font-size: 0.98rem;
  }
  .update-modal-timeline {
    max-width: 100vw;
    padding: 4px 0 2px 0;
  }
  .update-modal-event img {
    max-width: 100vw;
    max-height: 40vh;
  }
  .update-modal-event .event-info {
    font-size: 0.98rem;
  }
  .update-modal-event .event-supp img {
    max-width: 80px;
    max-height: 80px;
  }
}
