/* WordPress-specific overrides — keep minimal, original template2.css does the heavy lifting */
html { margin: 0; padding: 0; }
/* Images — do NOT set display:block globally (breaks social icons and inline images) */
img { max-width: 100%; height: auto; border: 0; }
/* Only make content article images block */
.kgd4flglav img, .kgd4fllenta img, .kgd4flbiz img, .kgd4flqna img, .tema img { display: block; }
/* Camera images inline-block so they tile in flex kaskad */
.kaskad img { display: inline-block; }
/* Footer social icons: 45x45 as in original */
.soc-foot img, .soc-foot a img { display: inline; width: 45px; height: 45px; }
/* Main content social block icons have inline width:64px style — just ensure inline display */
.quart div a img { display: inline; width: auto; }
/* Biz thumbnails: prevent flex-shrink from squashing images below 125px */
.kgd4flbiz .item img { min-width: 125px; }
/* Article/list pages: keep WordPress output aligned with original K2 fixed layout */
.itemView .itemImage img { width: 640px !important; height: auto; margin: 0 0 5px; }
.itemFullText img { max-width: 640px; height: auto; }
.itemRelated.inline ul { margin: 0; padding: 0; list-style: none; }
.itemRelated.inline li { float: left; width: 31%; margin: 0 2% 16px 0; line-height: 1.2; }
.itemRelated.inline li img { width: 100%; height: 95px; object-fit: cover; margin: 0 0 5px; }
.itemRelated.inline a { font-weight: bold; }
.tagsandauthor { min-height: 0; height: auto; overflow: hidden; }
.kgd-article-ad-wide { width: 670px; height: 90px; background: #f3f6f9; margin: 20px 0; }
.soc-quart-icons a img { width: 45px; height: 45px; display: inline; }
.catItemTitle { font-weight: bold; }
.catItemCommentsLink .moduleItemComments { background: url(kgd4/images/icons/comments.png) no-repeat 0 40%; padding-left: 15px; }
.pagination { clear: both; margin: 20px 0; }
.pagination .nav-links a, .pagination .nav-links span { margin-right: 5px; }
/* Utility pages copied from original kgd.ru component layouts */
.ygcontent { padding: 0 5px 0 0; }
.traffic .moduletable { margin: 0; }
.trafgrid { overflow: hidden; margin: 0 0 20px; }
.trafficimg { float: left; width: 170px; height: 135px; margin: 0 14px 16px 0; color: #fff; position: relative; overflow: hidden; background: #369; }
.trafficimg img { width: 170px; height: 113px; display: block; object-fit: cover; }
.trafficimg div { position: absolute; left: 0; right: 0; bottom: 0; min-height: 22px; background: rgba(51,102,153,.86); color: #fff; font-weight: bold; line-height: 22px; padding: 0 6px; }
.kgd-map-placeholder { margin: 0 15px 20px 0; padding: 170px 0 0; overflow: hidden; height: 230px; background: #eef3f8; color: #369; text-align: center; font-size: 16px; border: 1px solid #d6dee6; }
.pogodaCities { overflow: hidden; margin: 0 0 20px; }
.pogodaCities .button { width: 154px; margin: 0 7px 7px 0; text-align: left; color: #333; }
.pogodaCities .button img { margin: 1px 5px 0 0; }
#windymap { width: 736px; margin: 0 0 20px; background: #f3f6f9; }
.modpogoda { font-size: 13px; }
.modpogoda .tblst { width: 100%; margin-top: 10px; }
.modpogoda .shadingltf { background: #f3f6f9; padding: 4px; }
.itemView .wp-block-heading, .itemFullText .wp-block-heading { font-size: 18px; color: #369; margin: 18px 0 8px; }
/* Fix body width — WordPress adds admin bar etc, force body to be centered 1008px */
body { width: 1008px !important; margin: 0 auto !important; padding: 0 !important; }
