/* Сглаживание отличий разметки WordPress-блоков от исходной вёрстки */
.wp-block-image, figure.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; height: auto; vertical-align: top; }
.wp-block-group { box-sizing: border-box; }
.entry-content > *:first-child, .wp-block-post-content > *:first-child { margin-top: 0; }
:where(.wp-block-group.has-background) { padding: 0; }
.wp-block-post-content { display: contents; }
/* фон секций, заданный блоком «Группа» */
.wp-block-group[style*="background-image"] { background-size: cover; background-position: center; background-repeat: no-repeat; }
/* меню в шапке — блок «Навигация» с классами исходной темы */
.header-bottom .wp-block-navigation, .header-fixed .wp-block-navigation { width: 100%; }
.header-bottom .wp-block-navigation__container, .header-fixed .wp-block-navigation__container { width: 100%; justify-content: space-between; gap: 0; }
.wp-block-navigation .current-menu-item > a, .wp-block-navigation a[aria-current="page"] { color: var(--hover, #BC9405); }
.wp-block-navigation-item__label { font: inherit; }
/* всплывающее уведомление */
.mm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 100000; background: #2b3a42; color: #fff; padding: 14px 18px; border-left: 4px solid #D4B254; max-width: 320px; font: 14px/1.4 'SF Pro Display', Arial, sans-serif; opacity: 0; transform: translateY(10px); transition: .3s; }
.mm-toast.show { opacity: 1; transform: none; }
.mm-toast b { display: block; margin-bottom: 4px; }
.mm-toast--error { border-left-color: #c0392b; }
/* шорткоды в редакторе и на сайте не добавляют обёрток */
.wp-block-shortcode { display: contents; }
/* сетка работ в архивах */
.mm-archive { padding: 40px 0 60px; }
.mm-archive h1 { text-transform: uppercase; }
.mm-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.mm-pagination .page-numbers { padding: 8px 14px; border: 1px solid #D4B254; color: #444; text-decoration: none; }
.mm-pagination .page-numbers.current { background: #D4B254; color: #fff; }
/* figure от блока «Изображение» не участвует в раскладке — как у исходной вёрстки, где img был прямым потомком */
.wp-block-image:not(.wp-block-gallery .wp-block-image) { display: contents; }
