.ck-template.object-fit img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  margin-bottom: 1rem;
}
.ck-template.object-fit.top img {
  object-position: top;
}
.ck-template.object-fit.bottom img {
  object-position: bottom;
}
.ck-template.object-fit.left img {
  object-position: left;
}
.ck-template.object-fit.right img {
  object-position: right;
}
.ck-template.image-50 img {
  max-width: 50%;
}

/**
 * Portrait images that are full width on narrow screens then float to
 * right or left.  
 */
@media screen and (max-width: 767px) {
  .ck-template.portrait .align-right,
  .ck-template.portrait .align-left {
    float: none;
  }
  .ck-template.portrait img {
    height: 50vh;
    width: 100%!important;
    max-width: 100% !important;
    object-fit: cover;
    float: none;
    margin: 0!important;
  }
}
@media screen and (min-width: 768px) {
  .ck-template.portrait .align-right {
    margin: 0 0 1rem 1rem;
  }
  .ck-template.portrait .align-left {
    margin: 0 1rem 1rem 0;
  }
  .ck-template.portrait .field {
    margin: 0;
  }
  .ck-template.portrait .align-right,
  .ck-template.portrait .align-left {
    max-width: 67%;
  }
  .ck-template.portrait.image-40 .align-right,
  .ck-template.portrait.image-40 .align-left {
    max-width: 40%;
  }
  .ck-template.portrait .align-right img,
  .ck-template.portrait .align-left img {
    max-width: 100%;
    height: auto;
  }
}

/**
 * Text with image to right in shaded box
 */
@media screen and (max-width: 767px) {
  .ck-template.text-image-right img {
    height: 50vh;
    width: 100%!important;
    max-width: 100% !important;
    object-fit: cover;
    margin: 0 auto 1rem;
    float: none;
    clear: both;
    display: block;
    margin: 0!important;
  }
}
@media screen and (min-width: 768px) {
  .ck-template.text-image-right {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    background: var(--color-primary-shade);
    padding: 5%;
    font-size: 2.5vw;
    font-size: x-large;
    font-weight: 300;
    font-style: italic;
  }
  .ck-template.text-image-right img {
    margin-left: 5%;
    max-width: 40vw;
    min-width: 280px;
    height: auto;
  }
}
