/* LAYOUT */
.cb-teaser-masonry h2 {
  font-family: "Neo Sans Std";
  font-size: 2.25rem;
}

.cb-teaser-masonry {
  position: relative;
}

.cb-teaser-masonry svg g {
  stroke: var(--deco-color);
}

.cb-teaser-masonry > a {
  position: absolute;
  right: 2rem;
  top: 1rem;
}

.cb-teaser-masonry .cb-block-teaser-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 450px;
  align-items: center;
  width: 50%;
  margin-left: -3rem;
  margin-top: 3rem;
}

@media only screen and (min-width: 1441px) {
  .cb-teaser-masonry .cb-block-teaser-wrapper {
    width: 50%;
    margin-left: 0;
  }
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid {
  position: relative;
  width: 305px;
  transition: all ease 0.4s;
  margin: 10px;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:nth-of-type(n + 2),
.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:nth-of-type(n + 5) {
  height: 191px;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:nth-of-type(3n + 1) {
  height: 321px;
  margin-top: 3.5rem;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid span {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(216, 216, 216, 0.75);
  border-radius: 0 0 15px 15px;
  padding: 1em;
  font-family: "Neo Sans Std";
  font-size: 1.125rem;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  transition: all ease 0.4s;
  height: 80px;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:hover span {
  border-radius: 15px;
  height: 100%;
  font-size: 1.75rem;
  padding: 2rem;
  align-items: flex-start;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid a {
  transition: opacity ease-in-out 0.5s;
  opacity: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  top: 80%;
  left: 2rem;
}

.cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:hover a {
  height: auto;
  opacity: 1;
  overflow: visible;
}

.cb-teaser-masonry
  .cb-block-teaser-wrapper
  .cb-block-grid
  .cb-button-arrow:hover {
  color: var(--light-blue);
}

.cb-teaser-masonry
  .cb-block-teaser-wrapper
  .cb-block-grid
  .cb-button-arrow:after {
  background-color: var(--white);
  background-image: var(--arrow-blue);
}

.cb-teaser-masonry
  .cb-block-teaser-wrapper
  .cb-block-grid
  .cb-button-arrow:hover {
  color: var(--light-blue);
}

.cb-teaser-masonry
  .cb-block-teaser-wrapper
  .cb-block-grid
  .cb-button-arrow:hover:after {
  width: 100%;
  transition: all ease 0.5s;
  color: var(--light-blue);
  background: var(--arrow-line-blue) 20px 48.5% / 14px no-repeat,
    var(--arrow-blue) 25px 49% / 10px no-repeat;
  background-color: var(--white);
}

.cb-teaser-masonry > .cb-button-arrow:hover:after {
  width: 100%;
  transition: all ease 0.5s;
  color: var(--white);
  background: var(--arrow-line-white) 7% 48.5% / 14px no-repeat,
    var(--arrow-white) 9% 49% / 10px no-repeat;
  background-color: var(--light-blue);
}

@media only screen and (max-width: 1024px) {
  .cb-teaser-masonry .cb-block-teaser-wrapper {
    width: 100%;
    overflow: scroll;
  }
}

/* MOBILE */
@media only screen and (max-width: 768px) {
  .cb-teaser-masonry > a {
    left: 0;
    top: 4rem;
  }
  .cb-teaser-masonry h2 {
    font-size: 1.375rem;
  }
  .cb-teaser-masonry .cb-block-teaser-wrapper {
    max-height: 100%;
    width: 100%;
    margin-left: 0;
  }
  .cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid {
    width: 100%;
    margin: 1rem 0;
    height: 230px !important;
  }
  .cb-teaser-masonry .cb-block-teaser-wrapper .cb-block-grid:hover span {
    font-size: 1.375rem;
  }
  .cb-teaser-masonry
    .cb-block-teaser-wrapper
    .cb-block-grid:nth-of-type(3n + 1) {
    margin-top: 1em;
  }
}
