:root {
    --mmh-story-saffron: #EFC33B;
    --mmh-story-chambray: #403D74;
    --mmh-story-scarlett: #9B1C1C;
    --mmh-story-pearl: #FEFAF1;
    --mmh-story-ink: #151515;
    --mmh-story-muted: #5e5a55;
    --mmh-story-section-gap: clamp(2.5rem, 5vw, 4.5rem);
}

.mmh-story-section {
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: var(--mmh-story-section-gap);
}

.mmh-story-section > :first-child {
    margin-top: 0;
}

.mmh-story-section > :last-child {
    margin-bottom: 0;
}

.mmh-story-section__heading {
    margin-bottom: 1rem;
    color: var(--mmh-story-scarlett);
    font-family: zebrawood-std, Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1;
}

.mmh-story-section__body {
    max-width: 44rem;
    color: var(--mmh-story-ink);
    font-size: clamp(1.05rem, 1.2vw, 1.18rem);
    line-height: 1.55;
}

.mmh-story-text-section {
    max-width: 820px;
}

.mmh-story-media-text {
    padding: 0;
}

.mmh-story-media-text__columns {
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-bottom: 0;
}

.mmh-story-media-text__media,
.mmh-story-media-text__copy {
    min-width: 0;
}

.mmh-story-media-text__copy > :last-child,
.mmh-story-media-text__media > :last-child,
.mmh-story-feature-image > :last-child,
.mmh-story-gallery-section > :last-child,
.mmh-story-two-column__column > :last-child {
    margin-bottom: 0;
}

.mmh-story-image,
.mmh-story-feature-image__image {
    overflow: hidden;
    margin-bottom: 0.7rem;
    border-radius: 8px;
}

.mmh-story-feature-image__image {
    border-radius: 0;
}

.mmh-story-image img,
.mmh-story-feature-image__image img,
.mmh-story-gallery img {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.mmh-story-image img {
    aspect-ratio: 4 / 3;
}

.mmh-story-feature-image__image img {
    max-height: 620px;
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.mmh-story-native-crop img {
    aspect-ratio: auto;
    object-fit: initial;
}

.mmh-story-feature-image__image.mmh-story-native-crop img {
    max-height: none;
}

.mmh-story-image > img:not([src]),
.mmh-story-feature-image__image > img:not([src]) {
    display: none;
}

.mmh-story-image:empty,
.mmh-story-feature-image__image:empty,
.mmh-story-gallery:empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    border: 1px dashed rgba(64, 61, 116, 0.36);
    border-radius: 8px;
    background: rgba(64, 61, 116, 0.08);
}

.mmh-story-image:has(> img:not([src])),
.mmh-story-feature-image__image:has(> img:not([src])) {
    display: grid;
    min-height: 240px;
    place-items: center;
    border: 1px dashed rgba(64, 61, 116, 0.36);
    border-radius: 8px;
    background: rgba(64, 61, 116, 0.08);
}

.mmh-story-feature-image__image:empty {
    min-height: clamp(260px, 34vw, 460px);
}

.mmh-story-feature-image__image:has(> img:not([src])) {
    min-height: clamp(260px, 34vw, 460px);
}

.mmh-story-gallery:empty {
    min-height: 220px;
}

.editor-styles-wrapper .mmh-story-image:empty::before,
.editor-styles-wrapper .mmh-story-feature-image__image:empty::before {
    color: var(--mmh-story-muted);
    content: "Add image";
    font-size: 0.95rem;
}

.editor-styles-wrapper .mmh-story-image:has(> img:not([src]))::before,
.editor-styles-wrapper .mmh-story-feature-image__image:has(> img:not([src]))::before {
    color: var(--mmh-story-muted);
    content: "Add image";
    font-size: 0.95rem;
}

.editor-styles-wrapper .mmh-story-gallery:empty::before {
    color: var(--mmh-story-muted);
    content: "Add gallery images";
    font-size: 0.95rem;
}

.mmh-story-caption,
.mmh-story-section figcaption,
.mmh-story-gallery figcaption {
    margin-top: 0.7rem;
    color: var(--mmh-story-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.mmh-story-gallery {
    gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.mmh-story-gallery.has-nested-images figure.wp-block-image {
    margin-bottom: 0;
}

.mmh-story-gallery.has-nested-images figure.wp-block-image img {
    aspect-ratio: 4 / 3;
}

.mmh-story-lightbox-image a,
.mmh-story-gallery a.mmh-photoswipe-link {
    cursor: zoom-in;
}

.mmh-story-callout {
    max-width: none;
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: 8px;
    background: var(--mmh-story-saffron);
}

.mmh-story-callout__quote {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: 60ch;
}

.mmh-story-callout__quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.mmh-story-callout__quote p {
    margin-bottom: 1rem;
    color: var(--mmh-story-chambray);
    font-family: zebrawood-std-fill, zebrawood-std, Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.7rem);
    line-height: 1.12;    
    font-style: normal;
}

.mmh-story-callout__quote cite {
    color: var(--mmh-story-ink);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

.mmh-story-two-column__columns {
    gap: clamp(1.5rem, 4vw, 4rem);
}

.mmh-story-two-column__column {
    min-width: 0;
}

@media (max-width: 781px) {
    .mmh-story-media-text__columns,
    .mmh-story-two-column__columns {
        gap: 1.75rem;
    }

    .mmh-story-callout {
        padding: 1.5rem;
    }
}
