/*
* Global button styling
*/
/*
* MEDIA QUERIES
* Breakpoints for responsive sites
*/
/*
* Breakpoint debugging
*/
/*
* SASS Parent append
* Useful if you want to add an append to the parent without writing it out again
* Usage: @include parent-append(":hover")
* Source: https://codepen.io/imkremen/pen/RMVBvq
*/
/*
* Skew
* Useful mixing to create skewed edges
* Usage: @include angle-edge(bottomright, 3deg, topleft, 3deg, #fff);
* Source: http://www.hongkiat.com/blog/skewed-edges-css/
*/
/* block : History */
.our-history-pin {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.block-history {
  overflow: hidden;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: var(--wp--preset--font-size--small);
  --line-offset: 130px;
  --marker-size: 1rem;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gap-multiplier: 250px;
  --block-width: 650px;
  --block-height: 350px;
  --line-width: calc(var(--block-width) - var(--gap-multiplier));
}
@media (max-width: 1024px) {
  .block-history {
    --block-height: 300px;
    font-size: var(--wp--preset--font-size--x-small);
  }
}
@media (max-width: 782px) {
  .block-history {
    --line-offset: 100px;
    --gap-multiplier: 270px;
    --block-height: 300px;
  }
}
@media (max-width: 500px) {
  .block-history {
    --block-width: 300px;
    --line-offset: 100px;
    --gap-multiplier: -50px;
    --block-height: 500px;
  }
}
.block-history .timeline-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  position: relative;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  grid-gap: 0;
  margin: auto;
  max-width: var(--wp--style--global--wide-size);
  padding: var(--wp--preset--spacing--normal) 0;
  will-change: translate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.block-history .year-block {
  position: relative;
  padding-top: var(--wp--preset--spacing--medium);
  width: var(--block-width);
  min-width: var(--block-width);
  height: var(--block-height);
  -webkit-transform-origin: left center;
          transform-origin: left center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (min-width: 501px) {
  .block-history .year-block {
    margin-top: var(--block-height);
  }
}
.block-history .year-block::before {
  content: "";
  width: var(--line-width);
  height: 2px;
  border-top: 1px solid var(--wp--preset--color--light-green);
  position: absolute;
  top: 0;
  left: var(--line-offset);
}
.block-history .year-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--line-offset);
  width: var(--marker-size);
  height: var(--marker-size);
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--wp--preset--color--green);
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}
.block-history .year-block__inner {
  position: relative;
  height: 100%;
  -webkit-filter: drop-shadow(0 0 10px var(--shadow-color));
          filter: drop-shadow(0 0 10px var(--shadow-color));
  background: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--wp--preset--spacing--small);
  padding: var(--wp--preset--spacing--small);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  opacity: 0;
  -webkit-transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}
.block-history .year-block__inner::after {
  content: "";
  position: absolute;
  left: calc(var(--line-offset) - 5px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  top: -10px;
  bottom: auto;
}
.block-history .year-block__inner img {
  max-width: 50%;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 500px) {
  .block-history .year-block__inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
  }
  .block-history .year-block__inner h2 {
    font-size: var(--wp--preset--font-size--title);
  }
  .block-history .year-block__inner img {
    max-width: 100%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
  }
}
.block-history .year-block__content {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: #fff;
}
@media (min-width: 501px) {
  .block-history .year-block__content {
    width: 50%;
  }
}
.block-history .year-block__content p {
  font-size: inherit;
}
.block-history .year-block-active .year-block__inner, .block-history .year-block:first-child .year-block__inner {
  opacity: 1;
  -webkit-transform: translateY(0%) !important;
          transform: translateY(0%) !important;
}
.block-history .year-block .year-line {
  position: absolute;
  top: 0;
  left: var(--line-offset);
  width: var(--line-width);
  height: 1px;
  background: var(--wp--preset--color--green);
  -webkit-transform-origin: left center;
          transform-origin: left center;
}
.block-history .year-block .year {
  position: absolute;
  top: var(--wp--preset--spacing--normal);
  left: var(--wp--preset--spacing--normal);
  font-weight: 500;
  font-family: var(--wp--preset--font-family--secondary);
  color: #fff;
  display: block;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 50%;
}
@media (min-width: 783px) {
  .block-history .year-block .year {
    margin: 0 auto;
  }
}
@media (min-width: 501px) {
  .block-history .year-block:nth-of-type(odd) {
    padding-top: 0;
    padding-bottom: var(--wp--preset--spacing--medium);
    margin-top: calc(var(--block-height) * -1);
  }
  .block-history .year-block:nth-of-type(odd)::before {
    top: auto;
    bottom: -2px;
    left: var(--line-offset);
  }
  .block-history .year-block:nth-of-type(odd)::after {
    top: auto;
    bottom: 0;
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
  }
  .block-history .year-block:nth-of-type(odd) .year-line {
    top: auto;
    bottom: -1px;
  }
  .block-history .year-block:nth-of-type(odd) .year-block__inner {
    -webkit-transform: translateY(-10%);
            transform: translateY(-10%);
  }
  .block-history .year-block:nth-of-type(odd) .year-block__inner::after {
    top: auto;
    bottom: -10px;
  }
}
.block-history .year-block:nth-of-type(odd):not(:first-child) {
  margin-left: calc(var(--gap-multiplier) * -1);
}
.block-history .year-block:nth-of-type(even) {
  margin-left: calc(var(--gap-multiplier) * -1);
}
.block-history .year-block:nth-of-type(even) .year-block__inner {
  -webkit-transform: translateY(10%);
          transform: translateY(10%);
}
.block-history .year-block:nth-of-type(even) .year-block__inner::after {
  top: -10px;
  bottom: auto;
}
.block-history .year-block:last-child::before {
  content: none;
}
.block-history .year-block:last-child .year-line {
  display: none;
}