/*
Theme Name: Parafia Osielsko
Description: Odwzorowanie motywu gosir_osielsko z dawnej strony na Drupalu 7. Style w katalogu assets sa oryginalne.
Version: 1.0
Text Domain: parafia
*/

/* Dopasowania WordPressa do oryginalnych stylow */
#left-sidebar li.collapsed > ul.menu { display: none; }
#slides-carousel img { display: block; width: 100%; height: auto; }
.screen-reader-text, .element-invisible { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; width: 1px; }
.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin: 0 auto 10px; }
#content img { max-width: 100%; height: auto; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 15px 0; }
.wp-block-gallery .wp-block-image { margin: 0; width: calc(25% - 6px); }
.wp-block-gallery .wp-block-image img { width: 100%; height: 140px; object-fit: cover; }
.wp-block-embed iframe, #content iframe { max-width: 100%; }
.sitemap-list ul { margin-left: 20px; }

/* Jednolity wyglad tresci artykulow i stron */
#content .field-item, #content .news .description { font-family: Arial, Tahoma, sans-serif; font-size: 13px; line-height: 1.65; color: #6a6a6a; }
#content .field-item p { margin: 0 0 12px; }
#content .field-item, #content .field-item * { overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; box-sizing: border-box; }
#content .field-item h2 { font-size: 16px; font-weight: bold; color: #b41917; margin: 22px 0 10px; text-transform: none; }
#content .field-item h3 { font-size: 14px; font-weight: bold; color: #4a4a4a; margin: 18px 0 8px; }
#content .field-item h4, #content .field-item h5, #content .field-item h6 { font-size: 13px; font-weight: bold; color: #4a4a4a; margin: 14px 0 6px; }
#content .field-item strong, #content .field-item b { color: #4a4a4a; }
#content .field-item a { color: #0090d9; }
#content .field-item ul, #content .field-item ol { margin: 0 0 12px 22px; padding: 0; }
#content .field-item li { margin-bottom: 4px; }
#content .field-item table { width: 100% !important; border-collapse: collapse; margin: 0 0 15px; font-size: 13px; }
#content .field-item td, #content .field-item th { border: 1px solid #e1e1e1; padding: 6px 8px; vertical-align: top; }
#content .field-item tr:nth-child(even) td { background: #f7f9fb; }
#content .field-item img { margin: 5px 0 12px; }
/* stronicowanie listy aktualnosci w poziomie */
.item-list .pager { list-style: none; margin: 25px 0 10px; padding: 0; text-align: center; font-size: 12px; }
.item-list .pager li { display: inline-block; margin: 0 2px 6px; padding: 0; list-style: none; background: none; }
.item-list .pager li a, .item-list .pager li.pager-current { display: inline-block; min-width: 30px; padding: 5px 9px; border: 1px solid #d6e6f1; border-radius: 3px; color: #0090d9; text-decoration: none; line-height: 18px; }
.item-list .pager li a:hover { background: #0090d9; border-color: #0090d9; color: #fff; }
.item-list .pager li.pager-current { background: #0090d9; border-color: #0090d9; color: #fff; font-weight: bold; }
html.kontrast .item-list .pager li a { border-color: #ff0; }
html.kontrast .item-list .pager li.pager-current { background: #ff0; border-color: #ff0; color: #000 !important; }

/* spis tresci dokumentow */
#content .spis-tresci { background: #f5f9fc; border-left: 3px solid #0090d9; padding: 12px 18px 6px; margin: 0 0 22px; }
#content .spis-tresci h2 { margin-top: 0; }
#content .spis-tresci ul { list-style: none; margin: 0 0 6px; padding: 0; }
#content .spis-tresci ul ul { margin: 4px 0 4px 22px; }
#content .spis-tresci li { margin-bottom: 5px; }
#content .spis-tresci a { text-decoration: none; }
#content .spis-tresci a:hover { text-decoration: underline; }

/* spis tresci w dlugich dokumentach: przewijanie bez zaslaniania naglowka */
html { scroll-behavior: smooth; }
#content a[name], #content [id] { scroll-margin-top: 20px; }

/* wersja kontrastowa: czarne tlo, zolty i bialy tekst, bez zdjecia w naglowku */
html.kontrast body, html.kontrast #page, html.kontrast #main-wrap, html.kontrast #before-content-wrap, html.kontrast #footer-wrap { background: #000 !important; }
html.kontrast body, html.kontrast #content, html.kontrast #content .field-item, html.kontrast #content .news .description, html.kontrast .breadcrumb, html.kontrast #left-sidebar li a, html.kontrast #footer-wrap { color: #fff !important; }
html.kontrast a, html.kontrast #content .field-item a, html.kontrast #main-menu a, html.kontrast #top-menu a, html.kontrast .entry-title a, html.kontrast #content h4.title a, html.kontrast #content .actions a { color: #ff0 !important; }
html.kontrast h1, html.kontrast h2, html.kontrast h3, html.kontrast h4, html.kontrast #content .field-item h2 { color: #ff0 !important; }
html.kontrast #highlighted-wrap { display: none; }
html.kontrast #header-wrap { background: #000 !important; position: static; }
html.kontrast #block-menu-menu-sidebar-menu h2 { background: #ff0 !important; color: #000 !important; }
html.kontrast #content img { filter: grayscale(30%) contrast(1.1); }

#content .field-item blockquote { border-left: 3px solid #0090d9; margin: 0 0 12px; padding: 4px 0 4px 14px; font-style: italic; }
