/* Применяем фикс ТОЛЬКО если figure лежит внутри блока одиночной картинки wp-block-image */
.entry-content .wp-block-image figure.aligncenter {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: var(--wp--style--global--content-size, 604px) !important;
    text-align: center !important;
}

/* Ссылка одиночной картинки */
.entry-content .wp-block-image figure.aligncenter a {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
    max-width: 100% !important;
    width: auto !important;
}

/* Сама одиночная картинка */
.entry-content .wp-block-image figure.aligncenter a img,
.entry-content .wp-block-image figure.aligncenter img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Подпись одиночной картинки */
.entry-content .wp-block-image figure.aligncenter .wp-element-caption {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 1. Скрываем дефолтные иконки-цепочки для домика и телеграма, но оставляем ютуб */
#menu-item-520 svg, 
#menu-item-573 svg {
    display: none !important;
}

/* 2. Насильно возвращаем ДОМИК (Home) */
#menu-item-520 a::before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle !important;
    /* Рисуем аккуратный SVG домик */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* 3. Насильно возвращаем ТЕЛЕГРАМ */
#menu-item-573 a::before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle !important;
    /* Рисуем оригинальный самолетик Telegram */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.47-.52-.17L7.74 13.3 3.64 12c-.89-.26-.89-.86.19-1.28l16-6.16c.74-.27 1.39.18 1.15 1.15l-2.72 12.81c-.19.92-.74 1.15-1.51.71l-4.15-3.07-2 1.93c-.22.21-.42.42-.87.42z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* Эффект при наведении (hover), чтобы они плавно меняли цвет как ютуб */
#menu-item-520 a:hover::before,
#menu-item-573 a:hover::before {
    opacity: 0.7 !important;
}