/* Override container padding to match other sections */
.fullwidth-teaser-container {
  padding: 0 8% !important;
}

@media (min-width: 1500px) {
  .fullwidth-teaser-container {
    padding: 0 7.5rem !important;
  }
}

/* Base settings for all fullwidth-teaser layouts */
.fullwidth-teaser-holder {
  width: 100%;
  margin-top: var(--spaces-xl);
}

.fullwidth-teaser-holder.big-title {
  display: grid;
  align-content: center;
  padding: 40px 40px 0 20px;
  position: relative;
  background-color: #6bbbc6;
  color: white;
  border-radius: 12px;
}

.fullwidth-teaser-holder.big-title .background {
  padding: 0 var(--spaces-m) var(--spaces-m) var(--spaces-m);
  background-repeat: no-repeat;
  background-position: center right;
  display: grid;
  align-content: center;
}

.fullwidth-teaser-holder.big-title .image-content {
  max-width: 50%;
  font-size: var(--font-size-smaler);
  line-height: var(--line-height-smaler);
  margin-bottom: var(--spaces-m);
}

.fullwidth-teaser-holder.big-title .wp-block-button__link {
  color: white;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 6px;
}

.fullwidth-teaser-holder.big-title .wp-block-button__link:hover {
  color: #6bbbc6;
  background-color: #ffffff;
}

.fullwidth-teaser-holder.big-title h2 {
  font-weight: var(--font-weight-regular);
}

.fullwidth-teaser-holder.small-title .image-content {
  position: absolute;
  bottom: var(--spaces-l);
  color: white;
  padding: 0 5%;
  max-width: 65%;
}

.fullwidth-teaser-holder.small-title .hover-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
  bottom: 0;
}

.fullwidth-teaser-holder.small-title .hover-effect:hover {
  bottom: 10px;
  transition: all 0.5s ease;
}

.fullwidth-teaser-holder .image-content p {
  margin-bottom: 0;
}

.fullwidth-teaser-holder.small-title .background:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - 10px);
  background: transparent linear-gradient(180deg, #00000000 0%, #000000a6 100%)
    0% 0% no-repeat padding-box;
  border-radius: 12px 12px 35px 12px;
}

.fullwidth-teaser-holder .image-content h2 {
  margin-left: 0;
  margin-right: 0;
}

.fullwidth-teaser-holder .image-content p + h2 {
  margin-top: 5px;
}

.fullwidth-teaser-holder .background img {
  border-radius: 12px 12px 35px 12px;
}



.fullwidth-teaser-holder.small-title .wp-block-buttons {
  position: absolute;
  right: 5%;
  bottom: var(--spaces-l);
}
.fullwidth-teaser-holder.small-title p {
  font-weight: var(--font-weight-bold);
}

.fullwidth-teaser-holder.small-title h2 {
  font-weight: var(--font-weight-regular);
}

.cta-logo {
  width: 120px;
  margin-left: 20px !important;
  padding-left: 10px;
}

.fullwidth-teaser-holder .cta-logo img {
  border-radius: 0;
}


/*mobile first*/
.fullwidth-teaser-holder.big-title .image-content {
  max-width: 100%;
  padding-top: 70%;
}

.fullwidth-teaser-holder.big-title .background {
  background-position: top center;
  background-size: calc(100% - 80px);
}
.cta-logo {
  width: 66px;
  padding-left: 0;
  float: right;
  margin-top: -14px !important;
}


.fullwidth-teaser-holder p {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.entry-content .fullwidth-teaser-holder .wp-block-buttons,
.entry-content .fullwidth-teaser-holder .cta-logo {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 520px) {
  .fullwidth-teaser-holder.big-title .background {
      background-position: 40px 0;
      background-size: 70%;
  }
}
@media (min-width: 750px) {
  .fullwidth-teaser-holder.big-title .background {
      background-position: right 20px;
      background-size: calc(50% - 70px);
      padding: 0 var(--spaces-s) 20px var(--spaces-s);
  }
  
  .fullwidth-teaser-holder.big-title .image-content {
      max-width: 50%;
      padding-top: 5px;
  }
}

@media (min-width: 1100px) {
  .fullwidth-teaser-holder.big-title .background {
    background-size: auto 85%;
    background-position: right top;
  }
}

@media (max-width: 699px) {
  .container.fullwidth-teaser-container {
    padding: 0 !important;
    margin: 20px auto;
    max-width: calc(100% - 40px);
  }
  
  .fullwidth-teaser-holder.big-title {
    padding: 20px 0;
  }
  
  .fullwidth-teaser-holder.big-title .wp-block-button {
    padding: 0;
  }
  
  
  .fullwidth-teaser-holder.big-title .is-layout-flex {
      align-items: baseline;
  }
  
  .fullwidth-teaser-holder.big-title .wp-block-button a.wp-block-button__link {
      margin-bottom: 0 !important;
  }
 
}