/* Our Work only: keep shared editorial and deployed video assets unchanged. */
.content-page .projects-list {
    --projects-divider: #668b74;
}

.dark .content-page .projects-list,
.dark.content-page .projects-list {
    --projects-divider: #537e6a;
}

.content-page .projects-list .project-work-card {
    border-top: 3px solid var(--projects-divider) !important;
}

/* The intro already has a rule; avoid two dividers above the first project. */
.content-page .projects-list .project-work-card:first-child {
    border-top: 0 !important;
}

/* Pair the client review and its text link with one illustration. */
.content-page .projects-list .project-cbg-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.content-page .projects-list .project-cbg-media > * {
    min-width: 0;
    margin: 0;
}

.content-page .projects-list .project-cbg-media > figure {
    width: 100%;
    max-width: 32rem;
    justify-self: center;
}

.content-page .projects-list .project-cbg-client .cbg-video-case-link {
    margin: 0.5rem;
    padding: 0.5rem;
    color: var(--editorial-green);
    line-height: 1.5;
    text-underline-offset: 0.25em;
}

/* Explicitly override shared important primary/secondary colours in both themes. */
.content-page .projects-list .project-case-study,
.content-page .projects-list .project-case-study:visited {
    max-width: 100%;
    border-color: #296747 !important;
    border-radius: 0.5rem;
    color: #fff !important;
    background: #296747 !important;
    text-align: center;
    text-decoration: none;
}

.content-page .projects-list .project-case-study:hover,
.content-page .projects-list .project-case-study:focus-visible {
    border-color: #20573b !important;
    color: #fff !important;
    background: #20573b !important;
}

.content-page .projects-list .project-case-study:focus-visible {
    outline: 3px solid var(--editorial-ink) !important;
    outline-offset: 4px !important;
}

@media (min-width: 48rem) {
    .content-page .projects-list .project-cbg-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
