/* BLOCK HISTORY */
.wp-block-history {
  margin-bottom: 9vw;

  @media only screen and (min-width: 768px) {
    margin-bottom: 4.4rem;
  }
}

.history-margin {
  @media only screen and (min-width: 1024px) {
    margin-left: -14rem;
    margin-right: -6rem;
  }

  @media only screen and (min-width: 1280px) {
    margin-left: -10rem;
    margin-right: -10rem;
  }
}

.history-title {
  color: #000;
}

.history-subtitle {
  text-transform: uppercase;
}

.history-tl {
  padding-top: 2rem;

  @media only screen and (min-width: 1280px) {
    padding-top: 3.5rem;
  }
}

.history-tl-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 3rem;

  @media only screen and (min-width: 1280px) {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
}

.history-tl-date {
  font-size: 1rem;
  font-weight: 800;

  @media only screen and (min-width: 1280px) {
    font-size: 1.25rem;
  }
}

.history-tl-line {
  width: 100%;
  height: 1px;
  background-color: rgb(213, 213, 213);
  position: relative;
}

.history-tl-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media only screen and (max-width: 768px) {
  .history-tl-arrows {
    margin-top: 35px;
  }
}

.history-tl-arrow {
  align-items: center;
  background: #000;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.history-tl-arrow.disabled {
  cursor: default;
  opacity: 0.3;
  pointer-events: none;
}

.history-year-months {
  margin-top: 1rem;
}

.history-year-months-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.history-year-months-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-year-month {
  min-width: auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  padding: 0;
  background-color: transparent !important;
  min-height: inherit !important;
  color: #a82237 !important;
  text-decoration: underline !important;
}

.history-year-month:before {
  display: none !important;
}

.history-tl-bullet {
  z-index: 1;
  position: absolute;
  top: 50%;
  border: 0;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: #d5d5d5;
  transition: box-shadow 0.25s, background-color 0.25s;
  cursor: pointer;

  @media only screen and (min-width: 1280px) {
    height: 0.5rem;
    width: 0.5rem;
  }
}

.history-tl-bullet-date {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -0.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  color: #000;
  pointer-events: none;
}

.history-tl-bullet-month {
  font-size: 11px;
  margin-bottom: 3px;
  line-height: 1.1;
  font-weight: 500;
}

.history-tl-bullet-count {
  font-size: 11px;
  margin-bottom: 3px;
  line-height: 1.1;
  font-weight: 700;
}

.history-tl-bullet-year {
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
}

@media only screen and (max-width: 768px) {
  .history-tl-bullet-date {
    transform: translate(-50%, -0.4rem);
  }

  .history-tl-line .history-tl-bullet:nth-child(even) .history-tl-bullet-date {
    top: 100%;
    bottom: auto;
    transform: translate(-50%, 0.4rem);
  }
}

.history-tl-bullet.is-active,
.history-tl-bullet:hover {
  background-color: #c7342e;
  box-shadow: 0 0 0 0.15rem rgba(199, 52, 46, 0.5);
}

.history-wrapper {
  margin-top: 1rem;
  overflow: hidden;

  @media only screen and (min-width: 1024px) {
    margin-top: 3rem;
  }

  @media only screen and (min-width: 1280px) {
    display: flex;
  }
}

.history-events-wrapper {
  padding-top: 75px;
  overflow: hidden;

  @media only screen and (min-width: 1280px) {
    width: 60%;
    padding-top: 0;
  }
}

.history-events {
  position: relative;
  height: 400px;
  display: flex;
  align-items: start;
  gap: 20px;
  transition: 0.5s transform ease-in-out;

  @media only screen and (min-width: 1024px) {
    height: 500px;
  }
}

.history-event {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;

  @media only screen and (min-width: 1280px) {
    height: calc(100% - 75px);
  }
}

.history-event-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  z-index: -1;
}

.history-event-content {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-height: 72%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  @media only screen and (min-width: 1280px) {
    width: calc(60% + 2rem);
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    max-height: 76%;
  }
}

.history-event-content-inner {
  overflow-y: auto;
  padding-right: 0.35rem;
}

.history-event-content-inner::-webkit-scrollbar {
  width: 6px;
}

.history-event-content-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.history-event-content-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.history-event-title,
.history-event-text {
  color: white;
}

.history-event-title {
  font-size: 1.5625rem;
  text-transform: none;
  font-weight: 800;
}

.history-event-text {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.history-event-more {
  margin: 0;
  display: inline-flex;
  position: absolute;
  bottom: -75px;
  right: 0;
}

.history-event-date {
  width: 105px;
  height: 105px;
  background-color: #a82237;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
  z-index: 1;

  @media only screen and (min-width: 1024px) {
    width: 120px;
    height: 120px;
    top: -60px;
    left: 48%;
  }

  @media only screen and (min-width: 1280px) {
    top: auto;
    bottom: -75px;
    transform: translateX(-150%);
  }
}

.history-event-date-month {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.history-event-date-year {
  font-size: 1.5375rem;
  font-weight: 800;
  line-height: 1;

  @media only screen and (min-width: 1024px) {
    font-size: 1.9375rem;
  }
}

.history-links {
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 10px;
  padding-right: 15px;

  @media only screen and (min-width: 768px) {
    display: flex;
  }

  @media only screen and (min-width: 1280px) {
    width: 40%;
    height: 500px;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #000 #efefef;
  }
}

.history-links::-webkit-scrollbar {
  width: 10px;
}

.history-links::-webkit-scrollbar-track {
  background: #efefef;
  border-radius: 999px;
}

.history-links::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 999px;
  border: 2px solid #efefef;
}

.history-links::-webkit-scrollbar-thumb:hover {
  background: #222;
}

.history-links::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.history-links::-webkit-scrollbar-button:start:decrement,
.history-links::-webkit-scrollbar-button:end:increment,
.history-links::-webkit-scrollbar-button:single-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.history-links::-webkit-scrollbar-corner {
  background: transparent;
}

.history-link {
  width: 200px;
  font-size: 1.1rem;

  @media only screen and (min-width: 1280px) {
    margin-left: auto;
  }
}

.history-link:last-of-type {
  @media only screen and (min-width: 1280px) {
    margin-bottom: 0;
  }
}

.history-link.is-active {
  background-color: #6d1624 !important;
}

.history-arrows {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;

  @media only screen and (min-width: 768px) {
    display: none;
  }

  .arrow {
    align-items: center;
    display: flex;
    height: 3.4375rem;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 2.8125rem;
    background: #000;
    color: white;
    padding: 4px 7px;
    z-index: 1;
  }

  .arrow.disabled {
    pointer-events: none;
    opacity: 0.3;
  }
}
