/* Единые стили для редакторов Гутенберга, TinyMCE (включая Smart Custom Fields) и фронтенда */

/* Подключение шрифтов */
@font-face {
	font-family: "montserrat";
	src: url("../fonts/montserrat-regular.woff2") format("woff2"), url("../fonts/montserrat-regular.woff") format("woff");
	font-display: swap;
	font-weight: 400
}

@font-face {
	font-family: "montserrat";
	src: url("../fonts/montserrat-medium.woff2") format("woff2"), url("../fonts/montserrat-medium.woff") format("woff");
	font-display: swap;
	font-weight: 500
}

@font-face {
	font-family: "montserrat";
	src: url("../fonts/montserrat-bold.woff2") format("woff2"), url("../fonts/montserrat-bold.woff") format("woff");
	font-display: swap;
	font-weight: 700
}

@font-face {
	font-family: "cormorantgaramond";
	src: url("../fonts/cormorantgaramond-bold.woff2") format("woff2"), url("../fonts/cormorantgaramond-bold.woff") format("woff");
	font-display: swap;
	font-weight: 700
}

/* Общие стили для контента редактора */
body#tinymce,
.mce-content-body,
.wp-block,
.is-root-container,
.text {
    font-family: 'montserrat', Arial, sans-serif;
}

.wp-block,
.is-root-container * {
    max-width: 920px;
    box-sizing: border-box;
}

.is-root-container {
    margin-top: 40px;
}

/* Параграфы */
.is-root-container p,
.text p {
    margin-bottom: 40px;
}

@media only screen and (max-width: 1079px) {
    .is-root-container p,
    .text p {
        margin-bottom: 16px;
    }
}

/* Заголовки */
.editor-visual-editor__post-title-wrapper h1 {
    position: relative;
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    text-transform: uppercase;
    padding-bottom: 20px;
    font-size: 80px;
}

.editor-visual-editor__post-title-wrapper h1:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: #c5bb91;
}

body#tinymce h1,
.mce-content-body h1,
.is-root-container h1,
.text h1 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 80px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: inherit;
}

.is-root-container h1,
.text h1 {
    margin-bottom: 40px;
}

body#tinymce h2,
.mce-content-body h2,
.is-root-container h2,
.text h2 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 60px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: inherit;
}

.is-root-container h2,
.text h2 {
    margin-bottom: 40px;
}

body#tinymce h3,
.mce-content-body h3,
.is-root-container h3,
.text h3 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 40px;
    text-transform: uppercase;
    color: inherit;
}

.is-root-container h3,
.text h3 {
    margin-bottom: 40px;
}

body#tinymce h4,
.mce-content-body h4,
.is-root-container h4,
.text h4 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 36px;
    text-transform: uppercase;
    color: inherit;
}

.is-root-container h4,
.text h4 {
    margin-bottom: 40px;
}

body#tinymce h5,
.mce-content-body h5,
.is-root-container h5,
.text h5 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 20px;
    text-transform: uppercase;
    color: inherit;
}

body#tinymce h6,
.mce-content-body h6,
.is-root-container h6,
.text h6 {
    font-family: 'cormorantgaramond', 'Times New Roman', serif;
    font-size: 15px;
    text-transform: uppercase;
    color: inherit;
}

@media only screen and (max-width: 1499px) {
    .editor-visual-editor__post-title-wrapper h1 {
        font-size: 60px;
    }

	body#tinymce h1,
    .mce-content-body h1,
    .is-root-container h1,
    .text h1 {
		font-size: 60px;
	}

    body#tinymce h2,
    .mce-content-body h2,
    .is-root-container h2,
    .text h2 {
        font-size: 40px;
    }

    body#tinymce h3,
    .mce-content-body h3,
    .is-root-container h3,
    .text h3 {
        font-size: 30px;
    }

    body#tinymce h4,
    .mce-content-body h4,
    .is-root-container h4,
    .text h4 {
        font-size: 24px;
    }

    body#tinymce h5,
    .mce-content-body h5,
    .is-root-container h5,
    .text h5 {
        font-size: 15px;
    }
}

@media only screen and (max-width: 1079px) {
    .editor-visual-editor__post-title-wrapper h1 {
        font-size: 40px;
    }

	body#tinymce h1,
    .mce-content-body h1,
    .is-root-container h1,
    .text h1 {
		font-size: 40px;
        margin-bottom: 18px;
	}

    body#tinymce h2,
    .mce-content-body h2,
    .is-root-container h2,
    .text h2 {
        font-size: 30px;
        margin-bottom: 18px;
    }

    body#tinymce h3,
    .mce-content-body h3,
    .is-root-container h3,
    .text h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    body#tinymce h4,
    .mce-content-body h4,
    .is-root-container h4,
    .text h4 {
        font-size: 17px;
        margin-bottom: 18px;
    }
}

@media only screen and (max-width: 767px) {
	.editor-visual-editor__post-title-wrapper h1 {
        font-size: 24px;
    }

	body#tinymce h1,
    .mce-content-body h1,
    .is-root-container h1,
    .text h1 {
		font-size: 24px;
	}

    body#tinymce h2,
    .mce-content-body h2,
    .is-root-container h2,
    .text h2 {
        font-size: 20px;
    }

    body#tinymce h3,
    .mce-content-body h3,
    .is-root-container h3,
    .text h3 {
        font-size: 17px;
    }
}

/* Ссылки */
body#tinymce a,
.mce-content-body a,
.is-root-container a,
.text a {
    color: inherit;
    transition: 0.2s;
}

body#tinymce a:hover,
.mce-content-body a:hover,
.is-root-container a:hover,
.text a:hover {
    text-decoration: none;
    color: #a69658;
}

/* Списки */
body#tinymce ul, body#tinymce ol,
.mce-content-body ul, .mce-content-body ol,
.is-root-container ul, .is-root-container ol,
.text ul, .text ol {
    padding-left: 0;
    list-style: none;
}

.is-root-container ul, .is-root-container ol,
.text ul, .text ol {
    margin-bottom: 40px;
}

body#tinymce li,
.mce-content-body li,
.is-root-container li,
.text li {
    position: relative;
    padding-left: 4em;
    line-height: 180%;
    font-size: 15px;
}

.is-root-container li,
.text li {
    margin-bottom: 10px;
}

body#tinymce li:before,
.mce-content-body li:before,
.is-root-container li:before,
.text li:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #a69658;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.7em;
}

@media only screen and (max-width: 1499px) {
    body#tinymce li,
    .mce-content-body li,
    .is-root-container li,
    .text li {
        padding-left: 3em;
        font-size: 13px;
    }
}

@media only screen and (max-width: 1079px) {
    body#tinymce ul, body#tinymce ol,
    .mce-content-body ul, .mce-content-body ol,
    .is-root-container ul, .is-root-container ol,
    .text ul, .text ol {
        margin-bottom: 16px;
    }

    body#tinymce li,
    .mce-content-body li,
    .is-root-container li,
    .text li {
        padding-left: 2em;
    }
}

/* Изображения */
body#tinymce img,
.mce-content-body img,
.is-root-container img,
.text img {
    max-width: 100%;
}

/* Цитаты */
body#tinymce blockquote,
.mce-content-body blockquote,
.is-root-container blockquote,
.text blockquote,
.wp-block-quote {
    margin: 40px 0;
    padding: 20px 30px;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    border-left: 4px solid #a69658;
    font-style: italic;
}

body#tinymce blockquote p,
.mce-content-body blockquote p,
.is-root-container blockquote p,
.text blockquote p,
.wp-block-quote p {
    margin-top: 0;
    margin-bottom: 10px;
}

body#tinymce blockquote cite,
.mce-content-body blockquote cite,
.is-root-container blockquote cite,
.text blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: #777;
}

@media only screen and (max-width: 767px) {
    body#tinymce blockquote,
    .mce-content-body blockquote,
    .is-root-container blockquote,
    .text blockquote,
    .wp-block-quote {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* wp-blocks */
body#tinymce .wp-caption,
.mce-content-body .wp-caption,
.is-root-container .wp-caption,
.text .wp-caption {
    background-color: #ffffff;
    border: 1px solid #f6f6f6;
    max-width: 100%;
    padding: 4px;
    text-align: center;
    margin-bottom: 15px;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 2px 3px rgba(0,0,0, .1);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
}

body#tinymce .wp-caption p,
.mce-content-body .wp-caption p,
.is-root-container .wp-caption p,
.text .wp-caption p {
    line-height: normal;
    margin: 8px 0;
}

body#tinymce .alignleft,
.mce-content-body .alignleft,
.is-root-container .alignleft,
.text .alignleft {
    float: left;
    margin: 0 15px 10px 0;
}

body#tinymce .alignright,
.mce-content-body .alignright,
.is-root-container .alignright,
.text .alignright {
    float: right;
    margin: 0 0 10px 15px;
}