/* The animation hub is a fast choice surface, not a catalogue grid. */
body.page-template-page-animations .ee-animations-profiles {
    padding-block: 56px;
}

body.page-template-page-animations .ee-animations-profiles .ee-section-heading {
    margin-bottom: 28px;
}

body.page-template-page-animations .ee-animations-profiles .ee-profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
    align-items: stretch;
}

body.page-template-page-animations .ee-animations-profiles .ee-profile-card,
body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(4),
body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(5),
body.page-template-page-animations .ee-animations-profiles .ee-profile-card:last-child:nth-child(odd) {
    min-width: 0;
    min-height: 0;
    grid-column: auto;
}

body.page-template-page-animations .ee-profile-card__target {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    font-weight: 400;
    text-decoration: none;
}

body.page-template-page-animations .ee-profile-card__target:focus-visible {
    outline: 3px solid var(--ee-orange);
    outline-offset: 4px;
}

body.page-template-page-animations .ee-profile-card:focus-within {
    border-color: var(--ee-navy);
    box-shadow: 0 10px 24px rgba(8, 48, 73, 0.12);
}

body.page-template-page-animations .ee-profile-card__media {
    height: 136px;
    flex: 0 0 136px;
    aspect-ratio: auto;
}

body.page-template-page-animations .ee-profile-card__media img {
    object-fit: contain;
}

body.page-template-page-animations .ee-profile-card__body {
    display: flex;
    min-height: 224px;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

body.page-template-page-animations .ee-profile-card__title {
    display: block;
    margin-bottom: 8px;
    color: var(--ee-navy);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.18;
}

body.page-template-page-animations .ee-profile-card__summary {
    display: block;
    margin-bottom: 12px;
    color: var(--ee-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

body.page-template-page-animations .ee-profile-card__link {
    display: block;
    margin-top: auto;
    color: var(--ee-navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.page-template-page-animations .ee-profile-card__link-tail {
    white-space: nowrap;
}

body.page-template-page-animations .ee-profile-card:hover .ee-profile-card__link,
body.page-template-page-animations .ee-profile-card__target:focus-visible .ee-profile-card__link {
    color: #a94f00;
}

body.page-template-page-animations .ee-profile-card__status {
    align-self: flex-start;
    margin-bottom: 7px;
}

body.page-template-page-animations .ee-animations-editorial .ee-entry__content {
    display: grid;
    max-width: 1000px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    column-gap: 32px;
    align-items: center;
}

body.page-template-page-animations .ee-animations-editorial .ee-entry__content > * {
    grid-column: 1 / -1;
}

body.page-template-page-animations .ee-animations-editorial .ee-animation-overview {
    grid-column: 1;
    padding-block: 52px;
}

body.page-template-page-animations .ee-animations-editorial .ee-animation-main-image {
    width: 100%;
    max-width: none;
    height: 360px;
    grid-column: 2;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--ee-line);
    background: #f4f8f9;
}

body.page-template-page-animations .ee-animations-editorial .ee-animation-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.page-template-page-animations .ee-animation-overview .ee-animation-proof-grid {
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.page-template-page-animations .ee-animation-overview .ee-animation-proof-grid > p {
    padding: 13px 13px 12px;
}

@media (max-width: 980px) {
    body.page-template-page-animations .ee-animations-profiles .ee-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-profile-card,
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(4),
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(5),
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(6),
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(7),
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    body.page-template-page-animations .ee-animations-editorial .ee-entry__content {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
        column-gap: 24px;
    }

    body.page-template-page-animations .ee-animations-editorial .ee-animation-main-image {
        height: 320px;
    }
}

@media (max-width: 620px) {
    body.page-template-page-animations .ee-animations-profiles {
        padding-block: 42px;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-section-heading {
        margin-bottom: 22px;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-profile-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-profile-card,
    body.page-template-page-animations .ee-animations-profiles .ee-profile-card:nth-child(7) {
        width: 100%;
        grid-column: auto;
    }

    body.page-template-page-animations .ee-profile-card__target {
        display: grid;
        min-height: 178px;
        grid-template-columns: 108px minmax(0, 1fr);
    }

    body.page-template-page-animations .ee-profile-card__media {
        width: 108px;
        height: 100%;
        min-height: 174px;
        border-right: 1px solid var(--ee-line);
        border-bottom: 0;
    }

    body.page-template-page-animations .ee-profile-card__media img {
        inset: 6px;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
    }

    body.page-template-page-animations .ee-profile-card__body {
        min-height: 0;
        padding: 13px 13px 12px;
    }

    body.page-template-page-animations .ee-profile-card__title {
        margin-bottom: 5px;
        font-size: 18px;
        line-height: 1.2;
    }

    body.page-template-page-animations .ee-profile-card__summary {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.38;
    }

    body.page-template-page-animations .ee-profile-card__link {
        font-size: 13px;
        line-height: 1.3;
    }

    body.page-template-page-animations .ee-animations-editorial .ee-entry__content {
        display: block;
    }

    body.page-template-page-animations .ee-animations-editorial .ee-animation-overview {
        padding-block: 44px 30px;
    }

    body.page-template-page-animations .ee-animation-overview .ee-animation-proof-grid {
        grid-template-columns: 1fr !important;
    }

    body.page-template-page-animations .ee-animation-overview .ee-animation-proof-grid > p {
        padding: 11px 0 11px 15px;
    }

    body.page-template-page-animations .ee-animations-editorial .ee-animation-main-image {
        width: 100%;
        height: 236px;
        margin: 0 auto 42px;
        padding: 6px;
    }
}

@media (max-width: 360px) {
    body.page-template-page-animations .ee-profile-card__target {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    body.page-template-page-animations .ee-profile-card__media {
        width: 96px;
    }
}
