/* Domyślne justowanie akapitów treści; jawne wyrównanie w edytorze ma pierwszeństwo. */
:where(.entry-content) p:not([class*="has-text-align-"]),
:where(.editor-styles-wrapper) .wp-block-paragraph:not([class*="has-text-align-"]),
:where(.editor-styles-wrapper) .gw-section p:not([class*="has-text-align-"]) {
	text-align: justify;
	hyphens: auto;
}

/* Wyrównanie zwykłego bloku Obraz i wzorca, również poza układem constrained WP. */
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.gw-news-image,
:is(.entry-content, .editor-styles-wrapper) .wp-block-image:is(.alignleft, .aligncenter, .alignright) {
	float: none;
	clear: both;
	display: table;
	width: fit-content;
	max-width: 100%;
	margin-block: 24px;
}
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.alignleft { margin-inline: 0 auto; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.aligncenter { margin-inline: auto; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.alignright { margin-inline: auto 0; }
/* Rodzic motywu wyświetla img jako block, więc centrujemy też obraz wewnątrz figure. */
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.aligncenter > :is(img, a) { margin-inline: auto; }
.gw-news-image img { display: block; max-width: 100%; height: auto; border-radius: 5px; }
.gw-news-image figcaption { color: #596b8a; font-size: 14px; line-height: 1.5; text-align: center; }

/* Wzorce kontaktowe są zwykłymi, edytowalnymi tabelami Gutenberga. */
.wp-block-table.gw-news-table { max-width: 100%; margin: 20px 0 32px; overflow-x: auto; }
.gw-news-table table { width: 100%; border-collapse: collapse; color: #596b8a; font: 16px/1.6 'Segoe UI', Arial, sans-serif; }
/* Usuwamy domyślne 3 px WP z grup wierszy; siatkę tworzą obramowania komórek 1 px. */
.wp-block-table.gw-news-table :is(thead, tfoot) { border: 0; }
.gw-news-table :is(th, td) { padding: 14px 16px; border: 1px solid #dce1ea; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.gw-news-table thead th { background: #141654; color: #fff; font-weight: 600; }
.gw-news-table tbody td:first-child { color: #141654; font-weight: 600; }
.gw-news-table tbody tr:nth-child(even) { background: #f5f7fa; }
.gw-news-table :is(td, th):last-child { width: 24%; min-width: 120px; }
.gw-news-table a { color: #141654; text-underline-offset: 3px; }
.gw-news-table figcaption { color: #596b8a; font-size: 14px; text-align: left; }
.gw-news-table--directory :is(th, td) { border-inline: 0; }
.gw-news-table--directory :is(th, td):last-child { width: 18%; text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
	.gw-news-table table { min-width: 520px; }
	.gw-news-table :is(th, td) { padding: 12px; }
}
