.overview-history, .overview-history * {
  box-sizing: border-box;
}

.overview-history {
  background: #f2f2f2;
  min-height: 1112px;
  padding: 110px 0 182px;
  overflow: hidden;
}

.overview-history #history-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: min(1134px, 100% - 96px);
  min-height: 64px;
  padding: 0;
  margin: 0 auto 104px;
  text-align: center;
  font-family: var(--font);
  font-size: 48px;
  font-weight: 900;
  line-height: 64px;
  letter-spacing: 0;
}

.overview-history__stage {
  height: 405px;
  position: relative;
}

.overview-history__slide {
  width: 639px;
  margin: auto;
  display: flex;
  gap: 32px;
  align-items: center;
  transform: translateX(-87px);
}

.overview-history__year {
  width: 250px;
  flex: none;
  color: #f62837;
  font-size: 80px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
}

.overview-history__year-end {
  display: block;
  white-space: nowrap;
}

.overview-history__slide--early img {
  display: block;
  width: 357px;
  height: 405px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.overview-history__slide > img {
  display: block;
  width: 357px;
  height: 405px;
  max-width: none;
  object-fit: cover;
  object-position: 65.8% center;
}

.overview-history__neighbor {
  position: absolute;
  top: 0;
  opacity: 0.2;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 405px;
}

.overview-history__neighbor img {
  display: block;
  width: 357px;
  height: 405px;
  object-fit: cover;
}

.overview-history__neighbor--previous {
  right: calc(50% + 547px);
}

.overview-history__neighbor--previous img {
  object-position: center 85%;
}

.overview-history__neighbor--next {
  left: calc(50% + 372px);
}

.overview-history__neighbor--next span {
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  width: 243px;
  flex: none;
  letter-spacing: -3px;
}

.overview-history__details {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1134px, 100% - 96px);
  min-height: 63px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  margin: 89px auto 48px;
  padding: 0;
  font-size: 14px;
  line-height: 23px;
  color: #1d1d1d;
}

.overview-history .overview-history__details p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 20px;
}

.overview-history__details strong {
  font-weight: 700;
}

.overview-history__copy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  width: 100%;
}

.overview-history__copy p {
  flex: 1;
  min-width: 0;
}

.overview-history__copy p > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.overview-history__controls {
  width: min(1054px, 100% - 128px);
  margin: auto;
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
}

.overview-history__controls::before {
  content: "";
  position: absolute;
  left: 56px;
  right: 56px;
  height: 1px;
  background: #bbb;
  bottom: 3px;
}

.overview-history__controls button {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  background: #f2f2f2;
  color: #8e8e8e;
  font: 400 20px/32px var(--font);
  cursor: pointer;
  min-width: 111px;
  min-height: 44px;
}

.overview-history__controls button span {
  display: block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: 8px auto 0;
}

.overview-history__controls button[aria-pressed=true] {
  color: #1d1d1d;
  font-weight: 700;
}

.overview-history__controls button:focus-visible {
  outline-offset: -3px;
}

.overview-history__slide > img {
  object-position: 65.8% center;
}

.overview-history #history-title {
  color: #0f2751;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .overview-history__slide {
    transform: none;
  }
  .overview-history__neighbor {
    display: none;
  }
}
@media (max-width: 700px) {
  .overview-history {
    min-height: 0;
    padding: 56px 0 64px;
  }
  .overview-history #history-title {
    width: calc(100% - 48px);
    min-height: 0;
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 40px;
  }
  .overview-history__stage {
    height: auto;
  }
  .overview-history__slide {
    width: calc(100% - 48px);
    flex-direction: column;
    gap: 24px;
  }
  .overview-history__year {
    font-size: 48px;
    width: auto;
    text-align: center;
    letter-spacing: -2px;
  }
  .overview-history__slide > img {
    width: min(100%, 357px);
    height: 320px;
  }
  .overview-history__slide--early img {
    width: min(100%, 357px);
    height: 320px;
    max-width: 100%;
  }
  .overview-history__copy {
    flex-direction: column;
  }
  .overview-history .overview-history__copy p + p {
    margin-top: 0;
    padding-top: 0;
  }
  .overview-history__details {
    width: calc(100% - 40px);
    margin: 32px auto 28px;
    font-size: 14px;
    line-height: 1.5;
  }
  .overview-history__controls {
    width: calc(100% - 32px);
    gap: 4px;
  }
  .overview-history__controls button {
    font-size: 11px;
    line-height: 18px;
    min-width: 56px;
    flex: 1 0 56px;
    padding-top: 6px;
  }
  .overview-history__controls::before {
    left: 24px;
    right: 24px;
  }
}
