:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-image,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-caption {
	max-width: 100%;
	margin: 20px 0 21px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-image img,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-caption img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-image figcaption,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-caption-text,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .gallery-caption {
	margin: 6px 4px 0 !important;
	color: #747c78 !important;
	font-size: 10.5px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	text-align: left;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(figure.wp-block-image, .wp-caption) + :is(h2, h3) {
	margin-top: 27px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-gallery + :is(h2, h3) {
	margin-top: 27px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(h2, h3) + :is(figure.wp-block-image, .wp-caption, figure.wp-block-gallery) {
	margin-top: 14px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(figure.wp-block-image, .wp-caption) img {
	cursor: zoom-in;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .lightbox-trigger {
	display: none !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-gallery,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px !important;
	margin: 21px 0 22px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.columns-1 {
	grid-template-columns: 1fr;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.columns-3,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.columns-4,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.columns-5,
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.columns-6 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.has-nested-images > figure.wp-block-image {
	width: 100% !important;
	margin: 0 !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.has-nested-images > figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 7px;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.has-nested-images > figure.wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0;
	margin: 0 !important;
	padding: 22px 8px 7px;
	color: #fff !important;
	background: linear-gradient(to top, rgba(5, 12, 9, .78), transparent);
	font-size: 9.5px !important;
	font-weight: 650 !important;
	line-height: 1.25 !important;
	text-align: left;
}

.bi-article-toc {
	margin: 24px 0 27px;
	overflow: hidden;
	background: #f7f9f8;
	border: 1px solid #dce5e0;
	border-radius: 9px;
}

.bi-article-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #eef5f1, #f8faf9);
	border-bottom: 1px solid #dce5e0;
}

.bi-article-toc__header > div { display: grid; gap: 2px; }
.bi-article-toc__header strong { color: #17231d; font-size: 16px; font-weight: 800; line-height: 1.2; }
.bi-article-toc__toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 9px; color: #445049; background: #fff; border: 1px solid #d4dfd9; border-radius: 5px; font-family: inherit; font-size: 9px; font-weight: 750; line-height: 1; cursor: pointer; }
.bi-article-toc__toggle i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.bi-article-toc.is-collapsed .bi-article-toc__toggle i { transform: rotate(-135deg) translate(-1px, -1px); }
.bi-article-toc__list { display: grid; gap: 0; margin: 0 !important; padding: 5px 16px 8px !important; list-style: none !important; }
.bi-article-toc__list[hidden] { display: none; }
.bi-article-toc__item { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #e4eae7; list-style: none !important; }
.bi-article-toc__item:last-child { border-bottom: 0; }
.bi-article-toc__item a { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0; color: #26322c !important; font-size: 12px; font-weight: 700; line-height: 1.35; text-decoration: none !important; }
.bi-article-toc__item a:hover { color: #087a50 !important; }
.bi-article-toc__item a span { color: #17a873; font-size: 8px; font-weight: 850; letter-spacing: .04em; line-height: 1.8; }
.bi-article-toc__item--h3 a { padding-left: 20px; color: #53605a !important; font-size: 11px; font-weight: 650; }
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(h2, h3)[id^="sekcja-"] { scroll-margin-top: 92px; }

.bi-article-lightbox[hidden] { display: none; }
.bi-article-lightbox { position: fixed; z-index: 10000000; inset: 0; display: grid; place-items: center; padding: 54px 22px 30px; background: rgba(8, 13, 11, .92); }
.bi-article-lightbox__figure { display: grid; gap: 8px; justify-items: center; max-width: min(94vw, 1400px); max-height: calc(100vh - 84px); margin: 0; }
.bi-article-lightbox__image { display: block; max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; object-fit: contain; border-radius: 5px; box-shadow: 0 15px 55px rgba(0, 0, 0, .34); }
.bi-article-lightbox__caption { max-width: 760px; color: #d9dedb; font-size: 11px; line-height: 1.35; text-align: center; }
.bi-article-lightbox__close { position: absolute; top: 14px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; font-family: Arial, sans-serif; font-size: 25px; font-weight: 300; line-height: 1; cursor: pointer; }
body.bi-article-lightbox-open { overflow: hidden; }

/* Reklamy osadzone przez Ad Inserter lub Google nie mogą stykać się z dalszą treścią. */
:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(ins.adsbygoogle, .adsbygoogle) {
	margin-bottom: 24px !important;
}

:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(.code-block, [class*="ai-viewport"], [class*="ai-insert"]) + :is(p, h2, h3, figure, .wp-block-image, .wp-block-gallery) {
	margin-top: 24px !important;
}

@media (max-width: 599px) {
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-image,
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-caption { margin: 17px 0 18px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-image figcaption,
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-caption-text { margin-top: 5px !important; padding: 0 2px; font-size: 9.5px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(figure.wp-block-image, .wp-caption) + :is(h2, h3) { margin-top: 24px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-gallery + :is(h2, h3) { margin-top: 24px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(h2, h3) + :is(figure.wp-block-image, .wp-caption, figure.wp-block-gallery) { margin-top: 12px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) figure.wp-block-gallery,
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; margin: 18px 0 19px !important; }
	.bi-article-toc { margin: 20px 0 23px; border-radius: 8px; }
	.bi-article-toc__header { padding: 12px 13px; }
	.bi-article-toc__header strong { font-size: 15px; }
	.bi-article-toc__toggle { min-height: 29px; padding: 5px 8px; }
	.bi-article-toc__list { padding: 4px 13px 7px !important; }
	.bi-article-toc__item a { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; padding: 8px 0; font-size: 11.5px; }
	.bi-article-toc__item--h3 a { padding-left: 12px; font-size: 10.5px; }
	.bi-article-lightbox { padding: 50px 10px 20px; }
	.bi-article-lightbox__image { max-height: calc(100vh - 94px); border-radius: 3px; }
	.bi-article-lightbox__caption { padding: 0 8px; font-size: 10px; }
	.bi-article-lightbox__close { top: 9px; right: 10px; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(ins.adsbygoogle, .adsbygoogle) { margin-bottom: 20px !important; }
	:where(.bi-single-news__content, .bi-single-beskids__content, .bi-single-history__content, .bi-single-video__content, .bi-single-shelter__content, .bi-single-event__content) :is(.code-block, [class*="ai-viewport"], [class*="ai-insert"]) + :is(p, h2, h3, figure, .wp-block-image, .wp-block-gallery) { margin-top: 20px !important; }
}
