.wp-block-image {
  img {
    width: 100%;
  }

  figcaption {
    color: $brand-primary;
    //font-family: $brand-font-bold;

    @include breakpoint(large down) {
      a {
        font-size: 1rem;
      }
    }

    a:hover {
      color: $brand-secondary;
    }
  }

  &.amds-has-overlay {
    position: relative;

    figcaption {
      position: absolute;

      top: 0px;
      left: 0;
      height: 100%;
      width: 100%;

      margin: 0;
      padding: $global-padding*2;

      color: $brand-white;
      font-size: 22px;
      line-height: 1.25rem;
      //mix-blend-mode: color-burn;

      b, strong {
        padding-bottom: $global-padding/2;

        font-family: $brand-font-bold;
        font-size: 1.5rem;
        text-transform: uppercase;

        line-height: 1.2;

        display: block;
      }

      a {
        display: inline-block;
        font-family: $brand-font-regular;
        font-size: $small-font-size;
        margin-top: $global-padding;
        padding: 0 $global-padding;

        border: 1px solid $brand-white;
        color: $brand-white;
        line-height: 1.25rem;
      }

      @include breakpoint(large down) {
        font-size: 18px;

        b, strong {
          font-size: 1rem;
        }

        span {
          display: none;
        }

        a {
          position: absolute;
          bottom: $global-padding*2;
        }
      }

      @include breakpoint(small down) {
        padding: $global-padding;

        b, strong {
          font-size: 22px;
        }

        a {
          bottom: $global-padding;
        }
      }

      @media only screen and (max-width: 350px) {
        b, strong {
          font-size: 20px;
        }
      }
    }

    &.secondary {
      figcaption {
        background: transparentize($brand-secondary, .2);
      }
    }

    &.primary {
      figcaption {
        background: transparentize($brand-primary, .2);
      }
    }
  }

  &.meg-has-overlay {
    position: relative;
    margin-bottom: 100px;

    figcaption {
      position: absolute;

      top: 0;
      left: 10vw;
      height: 100%;
      width: 50%;

      margin: 0;
      padding: 150px 0;

      font-size: 1.5rem;
      line-height: 1.2;
      color: $brand-primary;

      b, strong {
        font-family: $brand-font-bold;
      }

      em {
        display: inline-block;
        margin-top: $global-padding;

        font-style: normal;
        font-family: $brand-font-bold;
        font-size: 3rem;
      }

      @include breakpoint(large down) {
        padding: 110px 0;
        font-size: 1rem;
        line-height: 1.3;
      }
    }

    &.meg-contact {
      figcaption {
        strong:hover {
          color: $brand-secondary;
        }
      }

      @include breakpoint(small down) {
        figcaption {
          padding: 40px 0;
          font-size: 18px;
          width: 85%;

          a {
            font-size: 18px;
          }
        }
      }
    }

    &.meg-job-contact {
      figcaption {
        @include breakpoint(small down) {
          font-size: 18px;
          position: relative;
          padding: 0 0 40px 0;
          top: 40px;
          width: 80%;
        }
      }
    }

    &.impression-overlay {
      figcaption {
        font-size: 24px;
        top: 25%;
        left: unset;
        right: $container-padding/2;
        width: 25%;

        b, strong {
          display: block;
          font-size: 1.5rem;
        }

        a {
          display: inline-block;
          font-size: 16px;
          font-weight: 600;
          margin-top: 30px;
          padding: 0 20px;
          border: 2px solid;
          line-height: 1.25rem;
        }

        @include breakpoint(large down) {
          font-size: 18px;
          top: 0;

          b, strong {
            font-size: 1rem;
          }
        }

        @include breakpoint(small down) {
          position: relative;
          padding: 0 10vw;
          right: unset;
          text-align: center;
          top: 40px;
          width: 100%;
        }
      }
    }
  }

  &.meg-scrollpoint {
    margin-bottom: 0;

    position: relative;
    top: -$global-padding*6;
    left: 0;

    opacity: 1;
    z-index: 1;

    img {
      border-radius: 20px;
      filter: blur(0);
      transition: filter 0.5s ease-in;
    }

    img:hover {
      cursor: pointer;
      filter: blur(9px);
      transition: filter 0.5s ease-in;
    }

    @include breakpoint(small down) {
      top: -$global-padding*7;

      img {
        width: 40px;
        height: 40px;
      }
    }
  }
}

.wp-column-social {
  .wp-block-image {
    margin-bottom: 0;
  }
}