.ad__title {
    @include font('COMMUTER SANS', 10px, 'MEDIUM');

    color: $silver;
    margin: 0 0 5px;
    text-align: left;
    text-transform: uppercase;
}

.ad--article {
    text-align: center;

    .da__container {
        background: $alabaster;
        padding: 20px 0;
    }

    .ad__title {
        @include font('COMMUTER SANS', 10px, 'MEDIUM');

        color: $silver;
        letter-spacing: 1px;
        margin: 0 0 5px;
        padding-left: $MOBILE_SIDE_GUTTER;
        padding-right: $MOBILE_SIDE_GUTTER;
        text-align: left;
    }

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

    @include at-x-large-size {
        .da__container {
            background: transparent;
            padding: 0;
        }
        .ad__title {
            display: none;
        }
    }
}

.ad--article-header {
    .da__container {
        background: $white;
        border-bottom: 1px solid $mercury;
        border-top: 1px solid $mercury;
        padding: 20px 0;
    }
}

.ad--article-video {
    .da__container {
        background: $cod-gray;
    }
}

.ad--article-rail {
    margin: 30px (-$MOBILE_SIDE_GUTTER);

    @include at-medium-size {
        margin-left: (-$TABLET_SIDE_GUTTER);
        margin-right: (-$TABLET_SIDE_GUTTER);
    }

    @include at-x-large-size {
        position: absolute;
        right: 0;
        margin: 0;
        width: 300px;
    }
}

.ad--article-rail-top {
    @include at-x-large-size {
        position: absolute;
        right: 0;
        top: 0;
    }
}

.ad--article-inline {
    margin: 45px (-$MOBILE_SIDE_GUTTER);

    @include at-medium-size {
        margin: 40px (-$TABLET_SIDE_GUTTER);
    }

    @include at-x-large-size {
        margin-left: 0;
        margin-right: 0;

        .ad__title {
            display: block;
            padding-left: 0;
        }
    }
}

.ad--gallery {}

.ad--gallery-inline {
    cursor: pointer;
    padding-bottom: 60px;
    text-align: center;
}

.ad--gallery-side {
    display: none;
    margin: 0 auto 60px;
    width: 300px;

    @include at-x-large-size {
        display: block;
        margin-bottom: 0;
        position: absolute;
        right: 0;
    }
}

.ad--gallery__interstitial-image,
.ad--gallery__interstitial-video {
    cursor: pointer;
    max-width: 100%;
}


//Tag Page
.ad--tag {
    text-align: center;

    .da__container {
        background: $white;
        padding: 20px 0;
    }

    .is-hidden {
        .da__container {
            padding: 0;
        }
    }

    .ad__title {
        @include font('COMMUTER SANS', 10px, 'MEDIUM');

        color: $silver;
        margin: 0 0 5px;
        padding-left: $MOBILE_SIDE_GUTTER;
        padding-right: $MOBILE_SIDE_GUTTER;
        text-align: left;
    }

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

.ad--tag-inline {
    margin: 40px (-$MOBILE_SIDE_GUTTER);

    @include at-medium-size {
        margin-left: (-$TABLET_SIDE_GUTTER);
        margin-right: (-$TABLET_SIDE_GUTTER);
    }

     @include at-x-large-size {
        margin-left: -$DESKTOP_SIDE_GUTTER;
        margin-right: (-$DESKTOP_SIDE_GUTTER + -340px);
        position: relative;

        &:before {
            background: $alabaster;
            content: '';
            height: 100%;
            width: 100vw;
            position: absolute;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }
    }

}

.ad--tag-infinite {}

.ad--tag-rail {
    display: block;
    margin: 60px (-$MOBILE_SIDE_GUTTER);
    width: calc(100% + #{$MOBILE_SIDE_GUTTER*2});

    @include at-medium-size {
        margin-left: (-$TABLET_SIDE_GUTTER);
        margin-right: (-$TABLET_SIDE_GUTTER);
        width: calc(100% + #{$TABLET_SIDE_GUTTER*2});
    }

    @include at-x-large-size {
        clear: right;
        float: right;
        margin: 0 -340px 0 40px;
        width: auto;

        &.stick-wrapper--fixed {
            margin-right: -40px;
        }

        .da__container {
            background: transparent;
            padding: 0;
        }

        .ad__title {
            display: none;
        }

    }
}

.ad--tag-rail-top {
    @include at-x-large-size {
        left: 100%;
        position: absolute;
        top: 0;
    }
}

.ad--homepage {
    text-align: center;

    .da__container {
        background: $white;
        border-bottom: none;
        border-top: none;
        padding: 20px 0;
    }

    .ad__title {
        margin: 0 0 5px;
        padding-left: $MOBILE_SIDE_GUTTER;
        padding-right: $MOBILE_SIDE_GUTTER;
        text-align: left;
    }

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

.ad--dark {
    .da__container {
        background: $cod-gray;
    }

    .ad--tag {
        .da__container {
            background: $alabaster;
        }
    }

    .ad--homepage {
        .da__container {
            border-bottom: 1px solid $mercury;
            border-top: 1px solid $mercury;
        }
    }
}
