.a-header {
    margin: 40px 0;

    @include at-x-large-size {
        margin: 60px 0;
    }
}

.a-header--gallery {}
.a-header--video {
    .a-header__content {
        max-width: none;
        padding-left: 0;
        @include at-x-large-size {
            padding-right: 360px;
        }
    }

    .a-header__title,
    .a-header__about,
    .a-header__meta,
    .a-share__list {
        @include at-x-large-size {
            text-align: left;
        }
    }

    .a-header__sponsor {
        @include at-x-large-size {
            margin-left: 0;
        }
    }
}

.a-header__image {
    margin-top: 40px;
    max-width: $XX_LARGE_SIZE;
    padding: 0;
    position: relative;

    @include at-x-large-size {
        margin-top: 60px;
    }
}

.a-header__image-constrain {
    background-color: $wild-sand;
    position: relative;
    width: 100%;

    img {
        display: block;
        width: 100%;
    }

    picture {
        display: block;
        height: 100%;
        width: 100%;
    }
}

.a-header__image-constrain--landscape,
.a-header__image-constrain--portrait,
.a-header__image-constrain--square,
.a-header__image-constrain--custom {
    img {
        bottom: 0;
        height: 100%;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
    }
}

.a-header__image-constrain--landscape {
    padding-top: 66.6666666666%;
}

.a-header__image-constrain--portrait {
    padding-top: 150%;
}

.a-header__image-constrain--square {
    padding-top: 100%;
}

.a-header__image-constrain--custom {
    padding-top: 58.6%;
}

.a-header__image-title {
    @include font('MILLER_DISPLAY', 17px, null, 23px, 0);
    color: $mine-shaft;
    margin: 10px auto 5px auto;
    max-width: $ARTICLE_TOTAL;
    text-transform: uppercase;

    @include at-medium-size {
        @include font-size(19px);
        @include line-height(25px);
    }

    &:before {
        background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M1.09,20,10,16l8.91,4L10,0,1.09,20' fill='#000'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        height: 14px;
        margin: 0 10px 0 0;
        position: relative;
        top: 2px;
        width: 14px;

        @include at-medium-size {
            height: 16px;
            margin: 0 10px 0 0;
            width: 15px;
        }
    }

    @include min-screen($ARTICLE_TOTAL) {
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }
}

.a-header__image-caption {
    margin: 0 auto;
    max-width: $ARTICLE_TOTAL;

    @include min-screen($ARTICLE_TOTAL) {
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }

    .bb-p {
        @include font('MILLER_DISPLAY', 17px, null, 23px, 0);
        color: $mine-shaft;
        margin: 5px auto 10px auto;

        @include at-medium-size {
            @include font-size(19px);
            @include line-height(25px);
        }
    }
}

.a-header__image-credit {
    @include font('BRANDON GROTESQUE', 10px, 400, 10px);
    color: $dove-gray;
    letter-spacing: 1px;
    margin: 10px auto 0 auto;
    max-width: $ARTICLE_TOTAL;
    text-transform: uppercase;

    @include min-screen($ARTICLE_TOTAL) {
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }
}

.a-header__wrapper {
    box-sizing: border-box;
    padding-left: $MOBILE_SIDE_GUTTER;
    padding-right: $MOBILE_SIDE_GUTTER;
    width: 100%;

    @include at-medium-size {
        padding-left: $TABLET_SIDE_GUTTER;
        padding-right: $TABLET_SIDE_GUTTER;
    }

    @include at-x-large-size {
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }
}

.a-header__content {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;

    @include at-x-large-size {
        padding: 0 350px 0px 0;
        max-width: 1190px;
    }

     .a-share {
        .a-share__list {
            text-align: center;

            @include at-x-large-size {
                text-align: left;
            }
        }
    }
}

.a-header__title {
    @include font("MILLER_DISPLAY", 35px, 700, 38px);
    color: $mine-shaft;
    letter-spacing: 0px;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;

    @include at-x-large-size {
        @include font-size(65px);
        @include line-height(68px);
        margin-bottom: 10px;
        text-align: left;
    }
}

.a-header__separator {
    display: none;

    @include at-x-large-size {
        display: none;
    }
}

.a-header__teaser {
    margin-top: 10px;
    margin-bottom: 20px;

    @include at-x-large-size {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    p {
        @include font("MILLER_DISPLAY", 18px, 400, 22px);
        color: $mine-shaft;
        font-style: italic;
        text-align: center;

        @include at-x-large-size {
            @include font-size(21px);
            @include line-height(28px);
            text-align: left;
        }
    }

    a {}

    > *:first-child {
        margin-top: 0;
    }

    > *:last-child {
        margin-bottom: 0;
    }
}

.a-header__about {
    @include min-screen($ARTICLE_TOTAL) {
        display: none;
    }
}

.a-header__byline {
    @include font("BRANDON GROTESQUE", 10px, 400, 10px);
    color: $mine-shaft;
    letter-spacing: 1px;
    margin-bottom: 7px;
    margin-top: 20px;
    text-align: center;
    text-transform: uppercase;

     @include at-x-large-size {
         text-align: left;
     }
}

.a-header__byline-item {
    color: $dove-gray;
}
.a-header__byline-name {
    @include font("BRANDON GROTESQUE", 10px, 700, 10px);
    letter-spacing: 1px;

    a {
        color: $mine-shaft;
    }
}

.a-header__byline-prefix,
.a-header__byline-conjunction {
    color: $mine-shaft;
}

.a-header__date {
    @include font("BRANDON GROTESQUE", 10px, 400, 10px);
    color: $dove-gray;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: 7px;
    text-align: center;
    text-transform: uppercase;

    @include at-x-large-size {
        text-align: left;
    }
}

ul.a-header__meta {
    color: $silver-chalice;
    font-size: 0;
    letter-spacing: 1px;
    @include line-height(20px);
    margin: 20px 0;
    text-align: center;
    text-transform: uppercase;
}

li.a-header__meta-item {
    @include font("BRANDON GROTESQUE", 10px, 400, 10px);
    border-right: 1px solid rgba(169,169,169,0.3);
    color: $dove-gray;
    display: inline-block;
    letter-spacing: 1px;
    margin-right: 10px;
    padding-right: 10px;

    &:last-child {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

    a {
       color: inherit;
    }

    @include at-x-large-size {
        @include font-size(12px);
        @include line-height(12px);
    }
}

.a-header__meta--date {}
.a-header__meta--tag {}

.a-header__tag {
    font-size: 0;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;

    @include at-x-large-size {
        margin-bottom: 13px;
        margin-top: 0px;
        text-align: left;
    }
}

.a-header__tag__primary,
.a-header__tag__secondary {
    @include font("BRANDON GROTESQUE", 10px, 700, 10px);
    color: $mine-shaft;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;

    @include at-x-large-size {
        @include font-size(13px);
        @include line-height(13px);
    }
}

.a-header__sponsor {
    @include font("BRANDON GROTESQUE", 10px, 400, 10px);
    display: table;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;

    @include at-x-large-size {
        margin-left: 0;
        margin-right: 0;
        margin-top: 25px;
    }

    &:before {
        background-color: $silver;
        content: "";
        height: 1px;
        left: 50%;
        position: absolute;
        top: 0;
        transform: translateX(-50%);
        width: 100%;

        @include at-x-large-size {
            display: none;
        }
    }
}

.a-header__sponsor-prefix {
    @include font("BRANDON GROTESQUE", 10px, 400, 10px);
    color: $mine-shaft;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 0 0 0;
    white-space: nowrap;
    text-transform: uppercase;

    @include at-x-large-size {
        display: table-cell;
        padding: 0;
        vertical-align: middle;
    }
    @include at-x-large-size {
    @include font-size(13px);
    @include line-height(13px);
  }
}

.a-header__sponsor-name {
    @include font("BRANDON GROTESQUE", 10px, 700, 10px);
    color: $mine-shaft;
    padding-left: 6px;
    text-transform: uppercase;

    @include at-x-large-size {
    @include font-size(17px);
    @include line-height(17px);
  }
}

.a-header__sponsor-image {

    @include at-small-size {
        display: block;
    }

    img {
        height: auto;
        margin: 15px auto 0px auto;
        max-height: 50px;
        max-width: 140px;
        width: auto;
    }

    @include at-x-large-size  {
        display: block;
        margin-top: 0;
        padding-left: 10px;
        vertical-align: middle;

        img {
            max-height: 50px;
            margin-top: 0;
        }
    }
}