figcaption {
  font-size: 13px;
  font-style: italic;
  margin: 3px 0;

  &.center-text {
    text-align: center;
  }
}

.image {
  max-width: 1440px;
  margin: 0 auto 24px auto;
  text-align: center;

  img {
    display: block;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    background-image: url("./images/cover-blur.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
}

.before-after {
  display: block;
  margin: 48px auto;
  max-width: 3072px;
  text-align: left;

  .aspect-23 img {
    aspect-ratio: 2 / 3;
  }

  .limit-height img {
    @media screen and (min-width: 1024px) {
      max-height: 500px;
    }

    @media screen and (min-width: 1440px) {
      max-height: 768px;
    }

    @media screen and (min-width: 2048px) {
      max-height: 1024px;
    }
  }

  img {
    display: block;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    background-image: url("./images/cover-blur.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }

  .before {
    margin: 0 0 24px 0;
  }

  @media screen and (min-width: 1024px) {
    display: flex;
    align-items: center;
    justify-content: center;

    .before,
    .after {
      flex: 1 0 0;
    }

    .before {
      margin: 0 4px 0 0;
    }

    .after {
      margin: 0 0 0 4px;
    }
  }
}
