.custom-card {
  position: relative;
  display: flex;
  flex: 1;

  .custom-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .custom-card__overlay {
    position: absolute;
    height: 100%;
    width: 100%;

    .custom-card__text {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;

      height: 100%;
      width: 100%;
      padding: 1.25rem;

      .custom-card__title {
        font-size: 2.5rem;
        font-weight: bolder;
      }

      .custom-card__description {
        font-size: 1.75rem;
      }
    }

    .custom-card__text--justify_content_start {
      justify-content: baseline;
    }

    .custom-card__text--justify_content_center {
      justify-content: center;
    }

    .custom-card__text--justify_content_end {
      justify-content: end;
    }
  }

  .custom-card__overlay--white {
    background-color: rgba(255, 255, 255, 0.6);
  }

  .custom-card__overlay--black {
    background-color: rgba(0, 0, 0, 0.6);
  }
}
