/**
 * Post Content widget with "Układ artykułu" turned on (includes/post-content.php).
 * Sizes and colors come from the widget's style controls.
 * The first and last block never add space outside the widget, whatever spacing the controls set.
 */

.zdrojownia-article-yes > :first-child,
.zdrojownia-article-yes > .elementor-widget-container > :first-child {
	margin-top: 0 !important;
}

.zdrojownia-article-yes > :last-child,
.zdrojownia-article-yes > .elementor-widget-container > :last-child {
	margin-bottom: 0 !important;
}

/* Lists */
.zdrojownia-article-yes ul:not(.wp-block-gallery) {
	padding-left: 0;
	list-style: none;
}

.zdrojownia-article-yes ul:not(.wp-block-gallery) > li::before {
	content: "\2022";
	margin-right: 0.6em;
	color: var(--zdrojownia-list-marker, currentColor);
}

.zdrojownia-article-yes ol {
	padding-left: 1.25em;
}

/* Gallery */
.zdrojownia-article-yes .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(var(--zdrojownia-gallery-columns, 3), minmax(0, 1fr));
	gap: var(--zdrojownia-gallery-gap, 16px);
}

.zdrojownia-article-yes .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto;
	height: var(--zdrojownia-gallery-height, auto);
	margin: 0;
}

.zdrojownia-article-yes .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
