.editorial-diary {
    width: min(1170px, calc(100% - 30px));
    margin: 0 auto;
    min-height: 0;
    padding: 0 0 36px;
    background: transparent;
    color: #232323;
    font-family: 'Open Sans', Arial, sans-serif;
}

.editorial-diary__intro {
    display: flex;
    align-items: start;
    gap: 30px;
}

.editorial-diary__frame {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d5d0c7;
    border-radius: 7px;
    background: var(--atb-editorial-background);
}

.editorial-diary__intro--without-image {
    display: block;
}

.editorial-diary__intro--without-image .editorial-diary__content {
    width: 100%;
    max-width: none;
}

.editorial-diary__intro--without-image .editorial-diary__description {
    width: 100%;
    max-width: none;
}

.editorial-diary__image {
    margin: 0;
    line-height: 0;
}

.editorial-diary__media {
    flex: 0 0 auto;
}

.editorial-diary__media--empty {
    display: none;
}

.editorial-diary__image--with-caption {
    width: var(--editorial-image-width);
}

.editorial-diary__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 350px;
    max-height: 400px;
}

.editorial-diary__image figcaption {
    width: 100%;
    margin-top: 9px;
    color: #27abbf;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: break-word;
}

.editorial-diary__content {
    flex: 1 1 0;
    min-width: 0;
}

.editorial-diary__intro {
    padding: 20px;
}

.editorial-diary__footer {
    padding: 11px 20px;
    border-top: 1px solid #d5d0c7;
    border-radius: 0 0 6px 6px;
    background: #f3ebdb;
    color: #595959;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.editorial-diary__footer strong {
    color: #333;
    font-weight: 700;
}

.editorial-diary__description {
    max-width: 700px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
}

.editorial-diary__description p {
    margin: 0 0 1.45em;
}

.editorial-diary__description h2,
.editorial-diary__description h3,
.editorial-diary__description h4 {
    margin: 0 0 0.7em;
    color: #333;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.28;
}

.editorial-diary__description h2 {
    font-size: 22px;
}

.editorial-diary__description h3 {
    font-size: 19px;
}

.editorial-diary__description h4 {
    font-size: 17px;
}

.editorial-diary__description blockquote {
    margin: 0 0 1.6em;
    padding: 0 0 0 22px;
    border-left: 2px solid #595959;
}

.editorial-diary__description blockquote p {
    margin-bottom: 0.35em;
}

.editorial-diary__description blockquote footer {
    color: #595959;
    font-size: 0.85em;
    font-style: italic;
}

@media (max-width: 760px) {
    .editorial-diary {
        width: min(100% - 32px, 640px);
        min-height: 0;
        padding: 0 0 32px;
    }

    .editorial-diary__intro {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .editorial-diary__image {
        max-width: 100%;
    }

    .editorial-diary__image img {
        max-width: min(100%, 350px);
        max-height: 400px;
    }

    .editorial-diary__intro {
        padding: 16px;
    }

    .editorial-diary__footer {
        padding: 10px 16px;
    }

    .editorial-diary__description {
        font-size: 16px;
        line-height: 1.6;
    }
}
