*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f7fa;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.header {
  flex-shrink: 0;
  padding: 0 2.5rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  gap: 2.5rem;
}

.gallery {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gallery-item {
  flex-shrink: 0;
  height: min(58vh, 680px);
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}

.gallery-item[data-super-hover-active] {
  opacity: 0.92;
}

.project-info {
  text-align: center;
  padding: 0 2.5rem;
  flex-shrink: 0;
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.project-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: #111;
  line-height: 1.5;
}

.years {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 0.5rem;
}

.year {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #b8bcc4;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.year:hover {
  color: #6b7280;
}

.year.active {
  color: #111;
  font-weight: 500;
}
