/* 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: 1rem;

  @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-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.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%;
  height: auto;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);

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

.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-date {
  width: 80px;
  height: 80px;
  background-color: #a82237;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5375rem;
  font-weight: 800;
  z-index: 1;

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

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

.history-links {
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 3rem;

  @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;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: auto;
  }
}

.history-links::-webkit-scrollbar {
  display: none;
}

.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;
  }
}
