/*
Theme Name: JKH Mup
Description: Тема АО «Рыбинская управляющая компания», повторяющая дизайн старого сайта на Joomla.
Version: 1.0
Author: JKH
Text Domain: jkh-mup
*/

/* Совместимость со старой вёрсткой */

/* Виджеты: убираем двойной отступ и вписываем картинки в колонку */
#leftcolumn .textwidget, #rightcolumn .textwidget { padding: 0 !important; }
#leftcolumn .textwidget img, #rightcolumn .textwidget img { max-width: 100%; height: auto; }

/* Раскладка: левая и правая колонки по краям, контент по центру */
div#maincolumn { float: none; width: auto; margin: 0 210px; }
div#maincolumn_full { width: auto; padding: 0 10px; }

/* Вместо Flash-слайдшоу — статичный баннер из старого шаблона */
#header {
    position: relative;
    background: #fff url(images/slide1.jpg) no-repeat center top;
}
.header_mod { display: none; }

#search form { margin: 0; }
#search input[type="text"] {
    width: 150px; height: 18px; padding: 2px 4px; border: 1px solid #b0b0b0;
    background: #fff; font-size: 11px; vertical-align: middle;
}
#search input[type="submit"] {
    height: 24px; padding: 0 10px; border: 1px solid #b0b0b0; background: #f0f0f0;
    cursor: pointer; font-size: 11px; vertical-align: middle;
}


.contentpaneopen img, #maincolumn_full img { max-width: 100%; height: auto; }
.alignleft  { float: left;  margin: 0 12px 8px 0; }
.alignright { float: right; margin: 0 0 8px 12px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 11px; color: #666; }

.post { padding-bottom: 18px; }
.post h2.contentheading { margin: 0 0 8px 0; }
.post h2.contentheading a { color: #333; text-decoration: none; }
.post .meta { color: #888; font-size: 11px; margin-bottom: 8px; }

.navigation.pagination { margin: 15px 0; }
.navigation.pagination .page-numbers {
    display: inline-block; padding: 4px 9px; margin-right: 3px;
    background: #7E2927; color: #fff; text-decoration: none;
}
.navigation.pagination .page-numbers.current { background: #333; }

#pillmenu .menu-item-has-children > a::after { content: " \25BE"; }

/* пункты меню без ссылок (разделители) не должны выглядеть ссылками */
#pillmenu li.current-menu-item > a span { color: #ffd; }

/* Копирайт в подвале */
#footer .jkh-copyright { margin: 6px 0 0 0; font-size: 11px; color: #e6e6e6; text-align: center; }

/* Центральная колонка не должна вылезать за пределы 534px */
div#maincolumn_full { width: auto; padding: 0 10px; box-sizing: border-box; }

/* Счётчик «Кто на сайте» */
.jkh-online { padding: 6px 10px 10px; color: #333; font-size: 12px; }

/* Адаптив */
@media (max-width: 1000px) {
    #content, .content_m { width: auto !important; }
    #t_menu_bg, #header { width: auto !important; }
    #header { height: auto !important; background-size: cover; }
    #leftcolumn, #rightcolumn, div#maincolumn { float: none !important; width: auto !important; margin: 0 !important; }
    #pillmenu { float: none !important; width: auto !important; height: auto !important; overflow: visible !important; }
    #pillmenu ul, #pillmenu li { float: none !important; display: block !important; }
    #leftcolumn, #rightcolumn { margin: 0 10px 10px !important; }
    #search { float: none !important; width: auto !important; }
    .header_mod img, #header img { max-width: 100%; height: auto; }
    table { max-width: 100%; }
}

/* Выравнивание колонок по краям контейнера 954px */
.content_m {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    grid-template-areas: "left main right";
    column-gap: 10px;
    align-items: start;
}
#leftcolumn { grid-area: left; float: none !important; width: auto !important; margin: 0 !important; }
#rightcolumn { grid-area: right; float: none !important; width: auto !important; margin: 0 !important; }
div#maincolumn { grid-area: main; float: none !important; width: auto !important; margin: 0 !important; }
@media (max-width: 1000px) {
    .content_m {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "main" "left" "right";
    }
}
