.editor-styles-wrapper {
    --body_size: 18px;
    --h1: 3.6rem;
    --h2: 3rem;
    --h3: 2.2rem;
    --h4: 1.3rem;
    --h5: 1.1rem;
    --caption: 0.9rem;
    --small: 0.7rem;
    --heading_lh: 1.1em;
    --body_lh: 1.6em;
    font-size: var(--body_size);
    --content_padding: clamp(20px, 10%, 60px);
    --gap: 25px;
    --gap_min: 15px;
    --max_width: 1200px;
}

body {
    --wp--preset--spacing--20: var(--gap_min) !important;
    --wp--preset--spacing--30: var(--gap) !important;
    --wp--preset--spacing--40: 2em !important;
    --wp--preset--spacing--50: var(--section_padding) !important;
}

.wp-block-heading {
    font-weight: 400;
    margin-bottom: clamp(2px, 0.5em, 8px)
}

p {
    margin-bottom: 0.4em
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5 {
    font-family: var(--heading_font);
    line-height: var(--heading_lh);
    font-weight: 600;
    margin: 0;
}

.editor-styles-wrapper h2.has-x-large-font-size,
h2.has-x-large-font-size {
    font-size: calc(var(--h1) * 1.4) !important;
}

@media only screen and (max-width: 600px) {

    .editor-styles-wrapper h2.has-x-large-font-size,
    h2.has-x-large-font-size {
        font-size: calc(var(--h1) * 0.8) !important;
    }
}

.editor-styles-wrapper .has-large-font-size,
.has-large-font-size {
    line-height: 1.2em;
    font-size: var(--h3) !important;
}

.wp-block-heading strong {
    color: var(--wp--preset--color--c-3)
}

.editor-styles-wrapper h1 {
    font-size: var(--h1)
}

.editor-styles-wrapper h2 {
    font-size: var(--h2);
}

.editor-styles-wrapper h3 {
    font-size: var(--h3);
}

.editor-styles-wrapper h4 {
    font-size: var(--h4);
}

.editor-styles-wrapper h5 {
    font-size: var(--h5);
}

.editor-styles-wrapper :where(.h1, .h2, .h3, .h4, .h5, h1, h2, h3, h4, h5)+* {
    margin-top: 1em;
}


.editor-styles-wrapper p {
    margin: 0;
    line-height: var(--body_lh);
}

.editor-styles-wrapper *+p {
    margin-top: 0.8em;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: var(--gap);
}

.entry-content p {
    line-height: 1.6em;
    margin-top: 0.5em;
}

.is-style-container {
    max-width: var(--max_width);
    width: clamp(300px, 98%, var(--max_width));
    margin: 0 auto;
    position: relative;
    margin-top: var(--gap);
    margin-bottom: var(--gap);
}

.post-type-product .editor-styles-wrapper,
.post-type-project .editor-styles-wrapper,
.post-type-post .editor-styles-wrapper {
    max-width: var(--max_width);
    width: clamp(300px, 98%, var(--max_width));
    margin: 0 auto;
}

.is-style-boxed-one {
    width: clamp(200px, 90%, 800px);
    margin-left: auto;
}

.is-style-boxed-two {
    text-shadow: 0 0 0.2em rgb(0 0 0 / 0.3);
    max-width: 600px;
    margin-left: auto;
}

.entry-content .wp-block-heading {
    margin-bottom: clamp(5px, 0.5em, 15px);
}

.entry-content *+.wp-block-heading {
    margin-top: 1em;
}

.entry-content p {
    margin-bottom: 0.4em
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.1em;
}

.entry-content ul li {
    margin: 0.4em 0;
}

.min400>div>.wp-block-columns {
    min-height: 400px;
}

@media screen and (max-width: 780px) {
    .wp-block-columns.invert_col {
        flex-direction: column-reverse;
    }
}

/* Custom to Project */
.wp-block-media-text .wp-block-media-text__media {
    height: 100%;
}

.wp-block-media-text .wp-block-media-text__media img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: center;
}