.aggregation-header__content {
    padding: 6.25rem 0 3rem;
}

@media (min-width: 600px) {
    .aggregation-header__content {
        /* padding: 8.5rem 0 4rem; */
    }
}

@media (min-width: 1024px) {
    .aggregation-header__content {
        padding: 8.5rem 0 4rem;
    }
}

.aggregation-header__title {
    grid-column-end: span 4;
    margin-top: 0;
}

.aggregation-header__description {
    color: #616161;
    font-family: Roboto, arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.aggregation-header__description,
.aggregation-header__title {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .category-page .aggregation-header__title {
        grid-column-end: span 8;
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .category-page .aggregation-header__title {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }
}

.aggregation-header__title,
.hero--aggregation .hero__title {
    font-family: "Roboto", arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 2.25rem;
}

.aggregation-header__text-box {
    grid-column-end: span 4;
}

@media (min-width: 600px) {
    .aggregation-header__text-box {
        grid-column-end: span 8;
    }
}

@media (min-width: 768px) {
    .aggregation-header__text-box {
        grid-column-end: span 6;
    }
}

@media (min-width: 1024px) {
    .aggregation-header__text-box {
        grid-column-end: span 5;
    }
}

/* Card Group Container - Grid Layout */
.card-group__container--grid {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 90rem;
    position: relative;
    width: 100%;
}

/* Card Group */
.card-group {
    list-style: none;
    margin-top: 0;
    padding: 0;
}

/* Card Group - Grid */
.card-group--grid {
    box-sizing: border-box;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(.3125rem, 1fr));
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (min-width: 600px) {
    .card-group--grid {
        -moz-column-gap: .9375rem;
        column-gap: .9375rem;
        grid-template-columns: repeat(12, minmax(.3125rem, 1fr));
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (min-width: 600px) {
    .card-group--grid {
        margin-bottom: -.9375rem;
    }
}

@media (min-width: 1024px) {
    .card-group--grid {
        -moz-column-gap: 1.25rem;
        column-gap: 1.25rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .card-group--grid {
        margin-bottom: -1.25rem;
    }
}

@media (min-width: 1441px) {
    .card-group--grid {
        -moz-column-gap: 1.6875rem;
        column-gap: 1.6875rem;
        margin-left: 5rem;
        margin-right: 5rem;
    }
}

/* Card Highlight Styles */
.card--highlight {
    display: flex;
    grid-column-end: span 4;
}

.card--highlight,
.card__highlight--default,
.card__highlight--featured {
    position: relative;
}

.card--aggregations,
.card--highlight,
.card--tools,
.card--video,
.card-tool,
.card__highlight--default,
.card__highlight--featured {
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .card--aggregations,
    .card--highlight,
    .card--tools,
    .card--video,
    .card-tool,
    .card__highlight--default,
    .card__highlight--featured {
        /* margin-bottom: .9375rem; */
    }
}

@media (min-width: 1024px) {
    .card--aggregations,
    .card--highlight,
    .card--tools,
    .card--video,
    .card-tool,
    .card__highlight--default,
    .card__highlight--featured {
        margin-bottom: 1.25rem;
    }
}

.card--highlight-default,
.card__highlight--default {
    overflow: visible;
}

.card--highlight:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 600px) {
    .card--highlight-default {
        grid-column-end: span 6;
    }
}

@media (min-width: 768px) {
    .card--highlight-default {
        grid-column-end: span 4;
    }
}

@media (min-width: 1024px) {
    .card--highlight-default {
        grid-column-end: span 3;
    }
}

@media (min-width: 600px) {
    .card--highlight-featured {
        grid-column-end: span 12;
    }
}

@media (min-width: 768px) {
    .card--highlight-featured {
        grid-column-end: span 8;
    }
}

@media (min-width: 1024px) {
    .card--highlight-featured {
        grid-column-end: span 6;
    }
}

/* Card Link */
.card--highlight .card__link,
.card__highlight--default .card__link,
.card__highlight--featured .card__link {
    color: #757575;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
}

@media (min-width: 600px) {
    .card--highlight-featured .card__link,
    .card__highlight--featured .card__link {
        border: none;
        border-radius: .5rem;
        overflow: hidden;
    }
}

.card--highlight-default .card__link,
.card__highlight--default .card__link {
    border-top: .0625rem solid #e0e0e0;
    padding-top: 1.5rem;
}

@media (min-width: 600px) {
    .card--highlight-default .card__link,
    .card__highlight--default .card__link {
        border: .0625rem solid #eee;
        border-radius: .5rem;
        overflow: hidden;
        padding-top: 0;
    }
}

.card__link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Category Page - Card Header Styles */
.card--highlight .card__header,
.card__highlight--default .card__header,
.card__highlight--featured .card__header {
    left: .0625rem;
    /* position: relative; */
    top: .0625rem;
    z-index: 1;
}

@media (min-width: 600px) {
    .card--highlight .card__header {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .card--highlight-default .card__header,
    .card__highlight--default .card__header {
        position: absolute;
    }
}

.card--highlight-featured .card__header,
.category-page .card__highlight--featured .card__header {
    /* left: 0; */
    position: absolute;
    /* top: 0; */
}

@media (min-width: 600px) {
    .card--highlight-featured .card__header,
    .card__highlight--featured .card__header {
        left: 0;
        top: 0;
        z-index: 1;
    }
}

.category-page .card--highlight-default .card__header-editorial-type,
.category-page .card__highlight--default .card__header-editorial-type {
    color: #757575;
    position: relative;
    top: -.25rem;
}

@media (min-width: 600px) {
    .card--highlight-default .card__header-editorial-type,
    .card__highlight--default .card__header-editorial-type {
        display: none;
    }
}

.card--highlight-default .card__body-editorial-type,
.card--highlight-default .card__image,
.card__highlight--default .card__body-editorial-type,
.card__highlight--default .card__image {
    display: none;
}


@media (min-width: 600px) {
    .card--highlight-default .card__body-editorial-type,
    .card__highlight--default .card__body-editorial-type {
        display: block;
    }
}

.category-page .card--highlight-featured .card__header-editorial-type,
.category-page .card__highlight--featured .card__header-editorial-type {
    display: none;
}

.card--aggregations .card__insights,
.card--data-point .card__source,
.card--feed .card__body-editorial-type,
.card--feed .card__header-editorial-type,
.card--highlight .card__body-editorial-type,
.card--highlight .card__header-editorial-type,
.card--loading-placeholder .card__body-editorial-type,
.card--strip .card__body-editorial-type,
.card--strip-inline .card__body-editorial-type,
.card__highlight--default .card__body-editorial-type,
.card__highlight--default .card__header-editorial-type,
.card__highlight--featured .card__body-editorial-type,
.card__highlight--featured .card__header-editorial-type {
    font-size: .75rem;
    letter-spacing: .01875rem;
    line-height: 1rem;
}

/* Card Image Container */

@media (min-width: 768px) {
    .card--highlight-featured .card__image-container,
    .card__highlight--featured .card__image-container {
        flex-grow: 1;
        width: 100%;
    }
}

/* Target picture elements in highlight featured cards - same pattern as card--feed */
.card--highlight-featured picture.picture-image.card__image,
.card__highlight--featured picture.picture-image.card__image {
    border-radius: .5rem;
    box-sizing: border-box !important;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

/* General card__image rule for non-picture elements (if any) */
.card--highlight-featured .card__image:not(picture),
.card__highlight--featured .card__image:not(picture) {
    padding-bottom: 56.25%;
}

@media (min-width: 600px) {
    .card--highlight-featured .card__image:not(picture),
    .card__highlight--featured .card__image:not(picture) {
        /* overflow: hidden; */
        /* position: relative; */
    }
}

@media (min-width: 768px) {
    .card--highlight-featured .card__image:not(picture),
    .card__highlight--featured .card__image:not(picture) {
        height: 100%;
    }
}

@media (min-width: 600px) {
    .card--highlight-default .card__image,
    .card__highlight--default .card__image {
        display: block;
        padding-bottom: 56.25%;
    }
}

.card--highlight .card__image,
.card__highlight--default .card__image,
.card__highlight--featured .card__image {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.card--feed .card__image,
.card--highlight .card__image,
.card--loading-placeholder .card__image-container,
.card--related-content .card__image,
.card--related-content-inspiration .card__image,
.card--related-content-leaderboard .card__image,
.card--related-content-video .card__image,
.card--strip .card__image,
.card--strip-inline .card__image,
.card--video .card__image,
.card__highlight--default .card__image,
.card__highlight--featured .card__image {
    background-position: 50%;
    background-size: cover;
}

.video__container {
    display: block;
    overflow: hidden;
    position: relative;
}





/* Card Text */
.card--highlight-featured .card__text,
.card__highlight--featured .card__text {
    margin-top: .5rem;
}

@media (min-width: 600px) {
    .card--highlight-featured .card__text,
    .card__highlight--featured .card__text {
        bottom: 0;
        max-width: 60%;
        padding: 0 1rem 1.5rem;
        position: absolute;
    }
}

@media (min-width: 1024px) {
    .card--highlight-featured .card__text,
    .card__highlight--featured .card__text {
        max-width: 75%;
        padding-right: 0;
    }
}

@media (min-width: 600px) {
    .card--highlight-default .card__text,
    .card__highlight--default .card__text {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
        padding: .5rem 1rem 1.5rem;
    }
}

@media (min-width: 600px) {
    .card--highlight-featured .card__text,
    .card--highlight-featured .card__title,
    .card__highlight--featured .card__text,
    .card__highlight--featured .card__title {
        color: #fff;
    }
}

/* Card Body */
.card--highlight-featured .card__body,
.card__highlight--featured .card__body {
    display: flex;
    flex-direction: column;
}

/* Card Title */
.card--highlight .card__title,
.card__highlight--default .card__title,
.card__highlight--featured .card__title {
    margin: 0;
}

.card--highlight-featured .card__title,
.card__highlight--featured .card__title {
    margin-top: .5rem;
}

@media (min-width: 600px) {
    .card--highlight-default .card__title,
    .card__highlight--default .card__title {
        margin-top: .5rem;
    }
}

.card--data-point .rich-text,
.card--highlight-default .card__title,
.card--highlight-featured .card__title,
.card--video .card__title,
.card__highlight--default .card__title,
.card__highlight--featured .card__title {
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.card--data-point .card__percentage-text,
.card--data-point .rich-text,
.card--highlight-default .card__title,
.card--highlight-featured .card__title,
.card--related-content .card__title,
.card--related-content-inspiration .card__title,
.card--related-content-leaderboard .card__title,
.card--related-content-video .card__title,
.card--video .card__title,
.card__highlight--default .card__title,
.card__highlight--featured .card__title {
    letter-spacing: 0;
}

.card--aggregations .card__description,
.card--data-point .card__percentage-text,
.card--data-point .card__title--featured,
.card--data-point .data-point__tag,
.card--data-point .rich-text,
.card--highlight-default .card__title,
.card--related-content .card__title,
.card--related-content-inspiration .card__title,
.card--related-content-leaderboard .card__title,
.card--related-content-video .card__title,
.card--tools .card__description,
.card--video .card__title,
.card-tool__title,
.card__highlight--default .card__title,
.share-modal-footer__body {
    color: #212121;
    font-family: Roboto, arial, sans-serif;
    font-weight: 400;
}

.card__title:hover {
    text-decoration: underline;
}

/* Aggregation Group Text Container */
.aggregation-group__text-container {
    margin-bottom: 1.5625rem;
}

@media (min-width: 600px) {
    .aggregation-group__text-container {
        margin-bottom: 2rem;
    }
}

/* Aggregation Group Title */
.aggregation-group__title {
    grid-column-end: span 4;
    margin-bottom: .9375rem;
}

@media (min-width: 600px) {
    .aggregation-group__title {
        grid-column-end: span 8;
    }
}

@media (min-width: 1024px) {
    .aggregation-group__title {
        grid-column-end: span 6;
    }
}

/* Feed Container Styles */
.feed-container .page-section__title {
    grid-column-end: span 4;
}

@media (min-width: 600px) {
    .feed-container .page-section__title {
        grid-column-end: span 12;
    }
}

@media (min-width: 768px) {
    .feed-container .page-section__title {
        grid-column-end: span 10;
    }
}

.feed-container .page-section__title-container {
    box-sizing: border-box;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    display: grid;
    /* grid-template-columns: repeat(4, minmax(.3125rem, 1fr)); */
}

@media (min-width: 600px) {
    .feed-container .page-section__title-container {
        -moz-column-gap: .9375rem;
        column-gap: .9375rem;
        grid-template-columns: repeat(12, minmax(.3125rem, 1fr));
    }
}

@media (min-width: 768px) {
    .feed-container .page-section__title-container {
        grid-template-columns: repeat(10, minmax(.3125rem, 1fr));
    }
}

@media (min-width: 768px) {
    .feed-container .feed-container__push {
        grid-column-end: span 1;
    }
}

@media (min-width: 1024px) {
    .feed-container .feed-container__push {
        grid-column-end: span 2;
    }
}

.feed__cards {
    display: none;
    opacity: 0;
    /* pointer-events: none; */
    transition: opacity .2s cubic-bezier(.4, 0, .2, 1), visibility .2s cubic-bezier(.4, 0, .2, 1);
    /* visibility: hidden; */
}

.feed-container .feed__cards {
    grid-column-end: span 4;
}

@media (min-width: 600px) {
    .feed-container .feed__cards {
        grid-column-end: span 12;
    }
}

@media (min-width: 768px) {
    .feed-container .feed__cards {
        grid-column-end: span 10;
    }
}

.feed__cards--loaded {
    display: block;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.feed-container .card-group--list-feed {
    margin: 0;
}

@media (min-width: 600px) {
    .card--feed {
        grid-column-end: span 12;
    }
}

@media (min-width: 768px) {
    .card--feed {
        grid-column-end: span 10;
    }
}

.card--feed {
    border-bottom: .0625rem solid #e0e0e0;
    grid-column-end: span 4;
    padding: 1.5rem 0;
}

.card--feed .card__container {
    box-sizing: border-box;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(.3125rem, 1fr));
    position: relative;
}

@media (min-width: 600px) {
    .card--feed .card__container {
        -moz-column-gap: .9375rem;
        column-gap: .9375rem;
        grid-template-columns: repeat(12, minmax(.3125rem, 1fr));
    }
}

@media (min-width: 768px) {
    .card--feed .card__container {
        grid-template-columns: repeat(10, minmax(.3125rem, 1fr));
    }
}

@media (min-width: 600px) {
    .card--feed .card__container:hover .card__hover {
        background-color: #eee;
    }
}

@media (min-width: 600px) {
    .card--feed .card__hover {
        box-sizing: content-box;
        display: block;
        height: 100%;
        margin-left: -2rem;
        margin-top: -1.5rem;
        padding: 1.5rem 0;
        pointer-events: auto;
        width: 100vw;
    }
}

@media (min-width: 768px) {
    .card--feed .card__hover {
        grid-column-end: span 12;
        margin-left: 0;
        width: auto;
    }
}

.card--feed .card__hover {
    display: none;
}

.card--feed .card__hover-grid {
    height: 100%;
    justify-self: center;
    pointer-events: none;
    position: absolute;
    width: calc(100vw - 4rem);
}

.card--feed .card__header {
    grid-column-end: span 4;
    left: .0625rem;
    pointer-events: none;
    position: relative;
    top: .0625rem;
    z-index: 1;
}

@media (min-width: 600px) {
    .card--feed .card__header {
        grid-column-end: span 12;
        position: absolute;
        width: 35%;
    }
}

@media (min-width: 768px) {
    .card--feed .card__header {
        grid-column-end: span 3;
    }
}

@media (min-width: 600px) {
    .card--feed .card__header-editorial-type {
        display: none;
    }
}

/* Card Feed Styles */
.category-page .card--feed .card__push {
    display: none;
}

.category-page .card--feed .card__header-editorial-type {
    position: relative;
    top: -.25rem;
}

.card--feed .card__body-editorial-type,
.card--feed .card__header-editorial-type {
    color: #3c4043;
}

.card--feed .card__image-container {
    grid-column-end: span 4;
    min-height: .0625rem;
}

@media (min-width: 600px) {
    .card--feed .card__image-container {
        grid-column-end: span 4;
    }
}

@media (min-width: 600px) and (max-width: 970px) {
    .feed-container .card-group--list-feed .card__image-container {
        position: relative;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .card--feed .card__image-container {
        grid-column-end: span 3;
    }
}

/* Target picture elements specifically */
.card--feed .card__image {
    border-radius: .5rem;
    display: none;
    padding-bottom: 56.25%;
}

@media (min-width: 600px) {
    .card--feed .card__image {
        display: block;
    }
}

/* Target img elements inside picture (they also have card__image class) */
.card--feed picture.picture-image.card__image img.card__image {
    /* img styling is handled by .picture-image img rule in main.css */
}

.card--feed .card__text {
    display: block;
    flex: none;
    flex-direction: column;
    grid-column-end: span 4;
    z-index: 0;
}

@media (min-width: 600px) {
    .card--feed .card__text {
        grid-column-end: span 8;
    }
}

@media (min-width: 768px) {
    .card--feed .card__text {
        display: flex;
        grid-column-end: span 6;
        justify-content: center;
    }
}

.card--feed .card__body {
    flex: 1 1 auto;
}

.card--feed .card__body-editorial-type {
    display: none;
}

@media (min-width: 600px) {
    .card--feed .card__body-editorial-type {
        display: block;
        margin-bottom: .5rem;
    }
}

.card--feed .card__title {
    margin: 0;
}

.card--feed .card__title::after {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.feed__cta {
    background-color: #1a73e8;
    border-radius: .25rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Roboto, Arial, Sans-serif;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25rem;
    margin-top: 2.5rem;
    min-width: 6.25rem;
    outline: .0625rem solid #fff;
    padding: .5rem 1rem;
    position: relative;
}

.feed__cta::before {
    background-color: inherit;
    content: "";
    height: 90%;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .2s cubic-bezier(.4, 0, .2, 1);
    width: 90%;
    z-index: 3;
}

.feed__cta::after {
    content: "";
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.feed__cta,
.feed__footer {
    text-align: center;
}

/* Geographic Label Styles */
.geographic-label {
    background: #fff;
    border-radius: .4375rem 0 .3125rem 0;
    box-shadow: 0 .0625rem .125rem rgba(0, 0, 0, .1);
    color: #3c4043;
    display: inline-block;
    margin-bottom: .25rem;
    margin-right: .25rem;
    padding: .1875rem .5rem .125rem;
    vertical-align: top;
}

.card--video .card__counter, .geographic-label {
    font-size: .625rem;
    letter-spacing: .025rem;
    line-height: 1rem;
}

.card--video .card__counter, .card--video .card__meta-label, .geographic-label {
    /* font-size: .75rem; */
    font-weight: 500;
    /* letter-spacing: .05rem; */
    /* line-height: 1rem; */
    text-transform: uppercase;
}

.geographic-label__icon {
    fill: currentColor;
    height: .75rem;
    left: .0625rem;
    margin-right: .125rem;
    position: relative;
    top: .0625rem;
    width: .75rem;
}

@media (min-width: 600px) and (max-width: 970px) {
    .geographic-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
