/* History timeline horizontal scroll */
.nv-history-timeline {
  --nv-history-bg: #4b6653;
  --nv-history-bg-dark: #4b6653;
  --nv-history-card-bg: #f0ebe1;
  --nv-history-card-text: #4b6653;
  --nv-history-accent: #f0ebe1;
  --nv-history-accent-fade: rgba(240, 235, 225, 0.55);
  --nv-history-gap: clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, var(--nv-history-bg) 0%, var(--nv-history-bg-dark) 100%);
  color: var(--nv-history-accent);
  padding: clamp(48px, 10vw, 112px) 0;
  overflow: hidden;
}

.nv-history-shell {
  /*width: min(94vw, 1380px);*/
  /*margin: 0 auto;*/
  display: flex;
  gap: var(--nv-history-gap);
  padding: 0 clamp(16px, 4vw, 72px);
}

.nv-history-rail {
  flex: 0 0 clamp(60px, 10vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  position: relative;
}

.nv-history-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--nv-history-accent);
  font-size: clamp(18px, 1.5vw, 22px);
  text-align: center;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.nv-history-rail-nav {
  display: grid;
  gap: 12px;
}

.nv-history-left-arrow-container{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 30px;
}

.nv-history-right-arrow-container{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 30px;
  height: 100%;
  z-index: 2;
}

.nv-history-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--nv-history-accent);
  background: transparent;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.nv-history-arrow:hover,
.nv-history-arrow:focus-visible {
  border-color: var(--nv-history-accent);
  background: rgba(240, 235, 225, 0.1);
}

.nv-history-arrow--prev:hover,
.nv-history-arrow--prev:focus-visible
{
    transform: translateY(-2px);
}

.nv-history-arrow--next{
  transform: rotate(180deg);
}

.nv-history-arrow--next:hover,
.nv-history-arrow--next:focus-visible
{
    transform: translateY(-2px) rotate(180deg);
}


.nv-history-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2.5vw, 32px);
  position: relative;
}

.nv-history-track {
  position: relative;
  display: flex;
  gap: var(--nv-history-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.nv-history-track::-webkit-scrollbar {
  display: none;
}

.nv-history-slide {
  flex: 0 0 clamp(70vw, 75vw, 80vw);
  width: clamp(70vw, 75vw, 80vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  max-height: 70vh;
  /*gap: clamp(24px, 4vw, 48px);*/
  /*align-items: center;*/
}

.nv-history-media {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.nv-history-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-history-card {
  background: var(--nv-history-card-bg);
  color: var(--nv-history-card-text);
  /*padding: clamp(32px, 6vw, 70px);*/
  padding: 50px;
}

.nv-history-year {
  font-family: 'Harlow Duo Serif', 'Playfair Display', Georgia, serif;
  font-size: clamp(50px, 9vw, 112px);
  line-height: 1;
  color: var(--nv-history-card-text);
  margin: 0 0 clamp(12px, 2vw, 24px);
  margin-bottom: 0!important;
}

.nv-history-title {
  font-family: 'The Seasons', 'Cormorant Garamond', Georgia, serif!important;
  font-size: clamp(26px, 4vw, 40px)!important;
  margin: 0 0 clamp(12px, 2vw, 24px);
  color: #4b6653!important;
  font-weight: 0!important;
}

.nv-history-subtitle {
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(12px, 1.4vw, 14px);
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  color: rgba(47, 59, 50, 0.7);
}

.nv-history-copy {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
}

.nv-history-copy p {
  margin: 0 0 1.1em;
}

.nv-history-copy p:last-child {
  margin-bottom: 0;
}

.nv-history-progress {
  --nv-history-dot-size: 14px;
  --nv-history-dot-gap: clamp(10px, 1.8vw, 14px);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(var(--nv-history-dot-size) + var(--nv-history-dot-gap)) 0 0;
  padding-right: 5px;
}

.nv-history-progress-item {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--nv-history-dot-gap);
  pointer-events: none;
  color: #1f1f1f80;
  font-family: 'The Seasons', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

.nv-history-progress-item-track {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.nv-history-progress-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background:   #1f1f1f80;
  transition: background 0.35s ease;
}

.nv-history-progress-item.is-left-on .nv-history-progress-line--left,
.nv-history-progress-item.is-right-on .nv-history-progress-line--right {
  background: var(--nv-history-accent);
}

.nv-history-progress-dot {
  width: var(--nv-history-dot-size);
  height: var(--nv-history-dot-size);
  border-radius: 999px;
  background: #1f1f1f80;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nv-history-progress-year {
  font-family: 'Harlow Duo Serif', 'Playfair Display', Georgia, serif;
  color: inherit;
  transition: color 0.3s ease;
  text-align: center;
}

.nv-history-progress-item.is-complete {
  color: var(--nv-history-accent);
}

.nv-history-progress-item.is-complete .nv-history-progress-dot {
  background: var(--nv-history-accent);
  border-color: var(--nv-history-accent);
}

.nv-history-progress-item.is-active .nv-history-progress-dot {
  transform: scale(1.12);
}

.nv-history-progress-item.is-active .nv-history-progress-year {
  color: var(--nv-history-accent);
}
/* Tablet tweaks */
@media (max-width: 1024px) {
  .nv-history-shell {
    width: min(96vw, 1100px);
    flex-direction: column;
    align-items: stretch;
  }

  .nv-history-rail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .nv-history-rail-label {
    writing-mode: initial;
    transform: none;
    letter-spacing: 0.3em;
    font-size: 12px;
  }

  .nv-history-rail-nav {
    position: static;
    display: flex;
    gap: 18px;
  }

  .nv-history-track {
    padding-bottom: clamp(16px, 5vw, 40px);
  }

  .nv-history-slide {
    flex-basis: 100%;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .nv-history-card {
    padding: clamp(24px, 8vw, 48px);
  }

  .nv-history-progress {
    --nv-history-dot-size: 12px;
    --nv-history-dot-gap: clamp(10px, 2.6vw, 16px);
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 28px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nv-history-timeline {
    padding: clamp(40px, 14vw, 72px) 0;
  }

  .nv-history-shell {
    padding-inline: clamp(16px, 6vw, 30px);
  }

  .nv-history-card {
    padding: clamp(22px, 7vw, 38px);
  }

  .nv-history-year {
    font-size: clamp(42px, 16vw, 72px);
  }

  .nv-history-progress {
    --nv-history-dot-size: 11px;
    --nv-history-dot-gap: clamp(8px, 4vw, 14px);
    gap: 24px;
  }

  .nv-history-progress-item {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .nv-history-progress-dot {
    width: 11px;
    height: 11px;
  }
}

