.page-container {
  max-width: 1200px;
}

.page-container-wide {
  max-width: 1500px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-pill {
  border: 0;
  background: transparent;
  color: black;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav-pill.active {
  background: black;
  color: white;
}

.board-grid {
  column-count: 4;
  column-gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1100px) {
  .board-grid {
    column-count: 3;
  }
}
@media (max-width: 760px) {
  .board-grid {
    column-count: 2;
  }
}
@media (max-width: 420px) {
  .board-grid {
    column-count: 1;
  }
}
.board-grid .card {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.board-grid.is-shuffling .card {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.board-grid .card {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.home-image-card {
  border: 0;
  padding: 0;
  overflow: hidden;
}

.home-image-card img {
  width: 100%;
  height: auto;
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e9e9ec;
  border-radius: 0.5rem;
  color: #b3b3ba;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

.image-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  min-width: max-content;
  padding: 4rem 1rem 2rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: calc(4rem + 1.4rem + 1rem + 9px);
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ced4da;
  z-index: 0;
}

.timeline-item {
  position: relative;
  flex: 0 0 260px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 1rem;
}

.timeline-marker-wrapper {
  position: relative;
  height: 18px;
  width: 18px;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.timeline-marker {
  width: 18px;
  height: 18px;
  background-color: #adb5bd;
  border-radius: 50%;
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  padding: 1rem;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.timeline-title {
  font-weight: 600;
  line-height: 1.4;
}

.timeline-hover {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-item:hover .timeline-hover {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}
