.yc-image {
  position: relative;
  display: inline-block;
  border-radius: var(--border-radius-small);
  .yc-image-img {
    vertical-align: middle;
    border-radius: inherit;
    border-style: none;
  }

  .yc-image-overlay {
    z-index: 11;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;

    .yc-image-error {
      width: 100%;
      height: 100%;
      background-color: var(--color-neutral-1);
      color: var(--color-neutral-4);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      .yc-image-error-icon {
        width: 60px;
        height: 60px;
        max-width: 100%;
        max-height: 100%;
      }
      .yc-image-error-alt {
        padding: 8px 16px;
        font-size: 12px;
        line-height: 1.6667;
      }
    }
    .yc-image-loader {
      height: 100%;
      width: 100%;
      background-color: rgba(255, 255, 255, 0.6);
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .yc-image-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;

    gap: 12px;
    .yc-image-footer-caption {
      flex: 1;
      .yc-image-footer-caption-title {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
      }
      .yc-image-footer-caption-description {
        font-size: 14px;
        line-height: 21px;
      }
    }
    .yc-image-footer-extra {
      flex-shrink: 0;
    }
  }
  .yc-image-footer-inner {
    padding: 9px 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    background: linear-gradient(
      360deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    align-items: center;
  }
  .yc-image-footer-outer {
    margin-top: 4px;
    color: var(--color-text-2);
    .yc-image-footer-caption {
      .yc-image-footer-caption-title {
        color: var(--color-text-1);
      }
    }
  }
}
