/* Set alternate spacing and sizes for headings in post content */
.wp-block-post-content > * + .wp-block-heading {
    margin-top: var(--wp--preset--spacing--70);

    &:is(h2),
    &:is(h1) {
        font-size: var(--wp--preset--font-size--large);
        font-weight: 900;
        text-transform: uppercase;
    }

    &:is(h3),
    &:is(h4),
    &:is(h5),
    &:is(h6) {
        font-size: var(--wp--preset--font-size--normal);
    }
}

h1.wp-block-heading,
.wp-block-heading.has-900-weight,
.project-filters__toggle h1,
.media-filters__toggle h1 {
    font-weight: 900;
}

h1.wp-block-query-title.search-title {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

h1.wp-block-query-title.search-title span {
    display: block;
    font-weight: 300;
    text-transform: none;
    line-height: 1.5;
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--tertiary);
}

.project-filters__facet-title,
.media-filters__facet-title {
    text-transform: uppercase;
    font-size: 13px;
    color: #555;
    margin-bottom: var(--wp--preset--spacing--20);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.is-style-section-dark .wp-block-heading {
    color: var(--wp--preset--color--base);
}

/* keep headings and paragraphs together */
.wp-block-heading:not(:first-child) + .wp-block-paragraph,
.wp-block-heading:not(:first-child) + .wp-block-list {
    margin-block-start: 0.5em;
}

h1, h2, h3, h4, h5, h6 {
    b, strong {
        font-weight: 600;
    }
}

.has-medium-font-size {
    font-size: 16pt !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)):has(.wp-block-post-title) {
    max-width: calc(var(--wp--style--global--content-size) + 300px);
}