/*  Koenig Styles  */
    .kg-image {
        max-width: 100%;
    }

    .kg-content *:first-child .kg-image {
      width: 100%;
    }

    .kg-width-full figcaption {
        padding: 0 1.5em;
    }

    .kg-width-wide .kg-image {
      max-width: 1040px;
    }

    .kg-width-full .kg-image {
      max-width: 100vw;
    }
    
    .kg-embed-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .kg-embed-card .fluid-width-video-wrapper {
        margin: 0;
    }

    .kg-width-full figcaption {
      padding: 0 1.5em;
  }
  
  .kg-embed-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
  }
  
  .kg-embed-card .fluid-width-video-wrapper {
      margin: 0;
  }
  
  
  @media (max-width: 1040px) {
      .kg-width-full .kg-image {
          width: 100vw;
      }
  }
  
  .kg-gallery-container {
      display: flex;
      flex-direction: column;
      max-width: 1040px;
      width: 100vw;
  }
  
  .kg-gallery-row {
      display: flex;
      flex-direction: row;
      justify-content: center;
  }
  
  .kg-gallery-image img {
      display: block;
      margin: 0;
      width: 100%;
      height: 100%;
  }
  
  .kg-gallery-row:not(:first-of-type) {
      margin: 0.75em 0 0 0;
  }
  
  .kg-gallery-image:not(:first-of-type) {
      margin: 0 0 0 0.75em;
  }
  
  .kg-gallery-card + .kg-image-card.kg-width-wide,
  .kg-gallery-card + .kg-gallery-card,
  .kg-image-card.kg-width-wide + .kg-gallery-card,
  .kg-image-card.kg-width-wide + .kg-image-card.kg-width-wide {
      margin: -2.25em 0 3em;
  }
  
  /* keep existing <pre> styles for code cards with captions */
  .kg-code-card {
      width: 100%;
  }
  
  .kg-code-card pre {
      margin: 0;
  }
  
  .kg-bookmark-card {
      width: 100%;
      background: var(--white);
  }
  
  .kg-card + .kg-bookmark-card {
      margin-top: 0;
  }
  
  .kg-bookmark-container {
      display: flex;
      min-height: 148px;
      color: var(--darkgrey);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
      text-decoration: none;
      border-radius: 3px;
      box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.09);
  }
  
  .kg-bookmark-container:hover {
      color: var(--darkgrey);
      text-decoration: none;
      box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.09);
  }
  
  .kg-bookmark-content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 20px;
  }
  
  .kg-bookmark-title {
      color: color(var(--midgrey) l(-30%));
      font-size: 1.6rem;
      line-height: 1.5em;
      font-weight: 600;
      transition: color 0.2s ease-in-out;
  }
  
  .kg-bookmark-container:hover .kg-bookmark-title {
      color: var(--blue);
  }
  
  .kg-bookmark-description {
      display: -webkit-box;
      overflow-y: hidden;
      margin-top: 12px;
      max-height: 48px;
      color: color(var(--midgrey) l(-10%));
      font-size: 1.5rem;
      line-height: 1.5em;
      font-weight: 400;
  
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
  }
  
  .kg-bookmark-thumbnail {
      position: relative;
      min-width: 33%;
      max-height: 100%;
  }
  
  .kg-bookmark-thumbnail img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 0 3px 3px 0;
  
      object-fit: cover;
  }
  
  .kg-bookmark-metadata {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 14px;
      color: color(var(--midgrey) l(-10%));
      font-size: 1.5rem;
      font-weight: 400;
  }
  
  .kg-bookmark-icon {
      margin-right: 8px;
      width: 22px;
      height: 22px;
  }
  
  .kg-bookmark-author {
      line-height: 1.5em;
  }
  
  .kg-bookmark-author:after {
      content: "•";
      margin: 0 6px;
  }
  
  .kg-bookmark-publisher {
      overflow: hidden;
      max-width: 240px;
      line-height: 1.5em;
      text-overflow: ellipsis;
      white-space: nowrap;
  }
  

  @media (max-width: 500px) {
      .kg-width-wide,
      .kg-width-full {
          margin-right: -5vw;
          margin-left: -5vw;
      }
  
      figcaption {
          margin-bottom: 0.4em;
      }
  
      .kg-bookmark-container {
          flex-direction: column;
      }
  
      .kg-bookmark-title,
      .kg-bookmark-description,
      .kg-bookmark-metadata {
          font-size: 1.4rem;
          line-height: 1.5em;
      }
  
      .kg-bookmark-icon {
          width: 18px;
          height: 18px;
      }
  
      .kg-bookmark-thumbnail {
          order: 1;
          min-height: 160px;
          width: 100%;
      }
  
      .kg-bookmark-thumbnail img {
          border-radius: 3px 3px 0 0;
      }
  
      .kg-bookmark-content {
          order: 2;
      }
  }
      
    /*  Form Styles  */      
    form.success~.w-form-fail {
      display: none !important;
    }

    form.success~.w-form-done {
      display: block !important;
    }

    form.success {
      display: none;
    }

    form.loading~.w-form-fail,
    form.loading~.w-form-done {
      display: none !important;
    }

    form.error~.w-form-fail {
      display: block !important;
    }
    
    p[data-members-error]:empty {
      display: none;
    }
    
    p[data-members-error] {
      margin-bottom: 0;
    }
    