@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.magazine-article article.col, .magazine-article.col {
  position: relative;
  z-index: 1;
  width: 880px;
  max-width: 66.6667%;
  background-color: var(--color-background);
  margin: 0 auto;
  padding-bottom: 0;

  @media(max-width: 1199px) {
    max-width: 83.3333%;
  }
  @media(max-width: 999px) {
    box-shadow: 0 0 0 10px var(--color-background);
  }
  @media(max-width: 767px) {
    max-width: 100%;
    box-shadow: 0 -4px 0 2px var(--color-background);
  }

  .print-share {
    margin-bottom: 0;
  }

  .print-share .bookmarks.show-bookmarks {
    margin-bottom: 1em;
  }

  .author-date {
    margin: -18px 0 30px 0;
    @media(max-width: 999px) {
      margin-top: -8px;
    }
    @media(max-width: 767px) {
      font-size: 18px;
      margin-top: -4px;
    }
  }

  .image-box {
    img {
      max-width: 100%;
    }

    &.off-grid{
      @media(min-width: 568px) {
        float: left;
        margin: 0.3em 20px 1em 0;
        width: calc(50% - 10px);
      }

      @media(min-width: 768px) {
        margin: 0.3em 40px 1em calc(-12.5% - 5px);
        width: calc(50% - 20px);

        @media(max-width: 1199px) {
          margin: 0.3em 30px 1em calc(-10% - 3px);
          width: calc(50% - 15px);
        }

        @media(max-width: 999px) {
          margin: 0.3em 20px 1em calc(-10% - 2px);
          width: calc(50% - 10px);
        }
      }

      ~ *:not(p) {
        clear: left;
      }
    }

    &.portrait{
      display: flex;
      justify-content: center;
      flex-flow: column;
      img, figcaption{
        align-self: center;
      }
    }
  }
}
