/*!
Theme Name: niewidzialne-org
Theme URI: http://niewidzialne.org.pl/
Author: Krzysztof Busłowicz
Author URI: http://niewidzialne.org.pl/
Description: This is the specialized WordPress theme for NIEWIDZIALNE.
Version: 0.0.13
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: niewi
Tags: Ajax-navigation, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

niewidzialne-org is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
:root {
    --content: 83.5em;
    /* zmień też @media screen and (max-width: calc(83.5em - 1px)) and (min-width: 37.5em) */
}

html {
    scroll-behavior: smooth;
}
#page {
    overflow: hidden;
}
/* Colors
--------------------------------------------- */
:root {
    --accent: #bb2205;
    --main: #0e918c;
    --orng: #f6830f;
    --vio: #591987;
    --pin: #dc0086;
    --yel: #ffd134;
    --gre: #00a98c;
    --text: #141414;
    --dgray: #575757;
    --gray: #a1adb6;
    --light: #eff0e8;
    --white: #fff;
    --bgr: transparent;
    --line: solid 2px currentcolor;
}
.has-main-color-color {color: var(--main);}
.has-accent-color-color {color: var(--accent);}
.has-text-color-color {color: var(--text);}
.has-light-color-color {color: var(--light);}
.has-white-color-color {color: var(--white);}

.has-accent-color-background-color { background-color: var(--accent);}
.has-main-color-background-color { background-color: var(--main);}
.has-text-color-background-color { background-color: var(--text);}
.has-light-color-background-color { background-color: var(--light);}
.has-white-color-background-color { background-color: var(--white);}


body, #page {
    background-color: var(--bgr);
}
/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: var(--text);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .04rem;
    font-size: clamp(15px, 0.8vw, 36px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    color: var(--accent);
}

p {
    font-size: 1.25rem;
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
    border-left: 2px solid var(--accent);
    padding-left: 3rem;
    position: relative;
    border-bottom: 2px solid var(--accent);
    font-style: italic;
}
blockquote::before {
    content: open-quote;
    font-size: 3rem;
    position: absolute;
    left: 0;
    line-height: 0em;
    color: var(--accent);
    top: -0.6rem;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

#primary ol li {
    margin-bottom: 0.5em;
    position: relative;
    margin-left: 3em;
}
#primary ul li {
    margin-bottom: 0.5em;
    position: relative;
    margin-left: 3em;
}
#primary .pagination ul li {
    margin: 0;
}

#primary ol, #primary ul {
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 3em;
}
#primary ol li::marker {
    color: var(--accent);
    font-weight: 700;
}

#primary ul li::marker {
    font-size: 1.25em;
    color: var(--accent);
    line-height: 1em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
a {
    color: var(--accent);
    transition: all 0.2s ease-out;
    border-bottom: solid 0.1rem currentColor;
    text-decoration: none;
}

#primary a:hover,
#primary a:focus,
#primary a:active,
.main-navigation a:hover,
.main-navigation a:active,
.breadcrumbs li a:hover,
.breadcrumbs li a:active {
    border-bottom: var(--line);
}

a:focus-visible {
    outline: 0.2rem solid var(--accent);
    outline-offset: 0.3rem;
}

a:hover,
a:active {
    outline: 0;
}
/* file download block */
.wp-block-file:not(.wp-element-button) {
    font-size: 1em;
}
.wp-block-file * + .wp-block-file__button {
    border: 1px solid var(--accent);
    border-radius: 0.5em;
    padding: 0.85em 1em;
    font-weight: 700;
    color: var(--white);
    background-color: var(--accent);
}
.wp-block-file a:first-child {
    font-weight: 700;
    border-bottom: none;
}
#primary .wp-block-file * + a.wp-block-file__button:hover,
#primary .wp-block-file * + a.wp-block-file__button:focus-visible {
    border-bottom-width: 1px;
    background-color: var(--main);
    color: var(--white);
    border-bottom-color: transparent;
    box-shadow: 0 0 0.3em 0.1em rgba(0, 0, 0, 0.2);
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
    transition: all 0.2s ease-out;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: var(--text);
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.3rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: var(--text);
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: inline-block;
    max-width: 100%;
    margin-right: 1em;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    display: block;
    left: auto;
}

.main-navigation ul ul a {
    width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    left: auto;
}

.main-navigation li {
    position: relative;
    text-align: center;
}

.main-navigation li:first-child {
    border-left: none;
}

.main-navigation li.current_page_item {
    font-weight: 700;
}

.main-navigation li.current_page_item a {
    font-weight: 700;
    color: var(--white);
}

.main-navigation a {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    position: relative;
    border-color: transparent;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
    display: block;
}

.menu-toggle::before,
.menu-toggle::after {
    display: none;
}

#masthead .menu-toggle {
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    border: none;
    margin-right: 3em;
}
#masthead .menu-toggle:active,
#masthead .menu-toggle:focus-visible, #masthead .menu-toggle:hover {
    background: var(--light);
}
.menu-toggle span {
    display: block;
    width: 3em;
    height: 0.4em;
    margin-bottom: 0.5em;
    position: relative;
    background: var(--text);
    border-radius: 0.5em;
    z-index: 1;
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}
button.menu-toggle {
    background-color: transparent;
    border-color: transparent;
}
nav#site-navigation { /*dla IOS, Safari */
    outline: none;
}
.toggled button.menu-toggle {
    margin: 0 auto;
}
.toggled .menu-toggle span:first-child {
    opacity: 1;
    transform: rotate(-315deg) translate(9px, 10px);
}

.toggled .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scale(0.1, 0.1);
}

.toggled .menu-toggle span:nth-child(3) {
    transform: rotate(315deg) translate(9px, -10px);
}
.toggled .menu-glowne-container {
    position: absolute;
    top: 0;
    left: 0;
    padding-top:4em;
    background: var(--white);
    z-index: 3;
    width: 100%;
    text-align: center;
    font-size: 1.4em;
    min-height:10em;
}
@media screen and (min-width: 55em) {

    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: none;
        align-items: baseline;
    }
}
@media screen and (max-width: 55em) {
    .main-navigation.toggled ul {
        position: absolute;
        background: var(--accent);
        z-index: 20;
        width: 100vw;
        right: 0;
    }
    .main-navigation.toggled ul li {
        padding: 1em;
        font-size: initial;
        border-top: 1px dotted var(--white);
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    margin-bottom: 3em;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
    display: block;
}

.post,
.page {
    margin: 0;
}

/*.published {*/
/*    display: none;*/
/*}*/

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}


/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}


/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin:1em 1em 2em;
    font-weight: 700;
}

.wp-caption-text {
    text-align: center;
}

.wp-block-image figcaption {
    margin-bottom: 2em;
    font-size: 0.8em;
    background-color: var(--white);
    padding: 0.5em;
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
/*Buttons and links */
.button img {
    margin-left: 1em;
    height: 0.75em;
    display: inline-block;
    vertical-align: middle;
}

.button {
    font-size: 0.8em;
    color: var(--text);
    display: block;
    border: 0.1em solid var(--accent);
    border-radius: 0.5em;
    padding: 0.8em 1em;
    text-decoration: none;
    max-width: 100%;
    width: 12em;
}

.button.arrow {
    width: 17em;
}
a.button:hover {
    border-bottom: initial;
}
.library-post-button {
    display: block;
    border: 1px solid var(--accent);
    border-radius: 0.5em;
    padding: 0.85em 1em;
    width: 10.5em;
    font-weight: 700;
    text-decoration:none;
}

.library-post-button img {
    height: 0.8em;
    transform: translate(0.5em, 0.1em);
    margin-right: -0.5em;
}

#footer-about .read-more {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-bottom: solid 0.4em var(--main);
    width: 11em;
    display: inline-block;
    padding: 0.7em 0.5em 0.3em;
}
#footer-about .library-post-button {
    color: var(--text);
}

#footer-about .read-more:hover,
#footer-about .read-more:focus-visible {
    color: var(--white);
    background-color: var(--main);
    fill: var(--white);
}

#footer-about .read-more img {
    margin-left: 0.5em;
    position: relative;
    top: 0.2em;
}

#footer-about .read-more:hover img,
#footer-about .read-more:focus-visible img {
    filter: invert(1);
}

#primary .btn-white:hover,
#primary .btn-white:focus-visible,
#primary .library-post-link:hover .library-post-button,
#primary .library-post-button:hover,
#primary .library-post-button:focus-visible,
#primary .library-post-link:focus-visible .library-post-button,
#footer-about .library-post-button:hover,
#footer-about .library-post-button:focus-visible {
    background-color: var(--main);
    color: var(--white);
    /*border-bottom-color: transparent;*/
    box-shadow: 0 0 0.3em 0.1em rgba(0, 0, 0, 0.2);
}

.btn-white:hover img,
.btn-white:focus-visible img,
.library-post-link:hover .library-post-button img,
.library-post-button:hover img,
.library-post-button:focus-visible img,
.library-post-link:focus-visible .library-post-button img {
    filter: invert(1);
}

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text,
.sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus,
.sr-only:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
    clip: auto !important;
    clip-path: none;
    color: var(--accent);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Layouts */
#primary h1,
h2.home-title {
    font-size: 2em;
    margin-top: 0;
}

#primary h2 {
    font-size: 1.6em;
}

#primary h3 {
    font-size: 1.15em;
}

#primary h4 {
    font-size: 1em;
}

#primary .entry-content > h2,
#primary .entry-content > h3,
#primary .entry-content > h4 {
    margin-top: 2.5em;
}

#masthead {
    margin-bottom: 1em;
}

.page-wrapper {
    display: grid;
    grid-template-columns: [cont]auto [sid]auto;
    grid-template-rows: [top]auto [mid]auto;
    justify-content: space-between;
    width: var(--content);
    max-width: 100%;
    margin: 0 auto 6rem;
}

#page-content {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto 3rem;
    position: relative;
    top: -5em;
    background: var(--white);
    padding: 3em 5em;
}

.post-top {
    grid-column-start: 1;
    grid-column-end: 3;
    margin-bottom: 3rem;
}

.post-thumbnail-wrap, .page-thumbnail-wrap {
    height: 24rem;
    overflow: hidden;
    position: relative;
}

.post-thumbnail-wrap img {
    width: 100%;
}

.post-thumbnail-bottom {
    width: 100%;
    height: 2rem;
    border-bottom: 0.5rem solid transparent;
}

.post-thumbnail-wrap .post-thumbnail, .page-thumbnail-wrap .post-thumbnail {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.post-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}
.post-thumbnail-caption {
    position: absolute;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    font-size: 0.7em;
}
.post-thumbnail-caption-text {
    margin: 0.5em;
    display: block;
    color: var(--light);
}

.post-thumbnail-overlay.pracownicy  {
    background-color: var(--orng);
}

.post-thumbnail-overlay.edukacja  {
    background-color:  var(--pin);
}

.post-thumbnail-overlay.wiedza {
    background-color: var(--yel);
}

.post-thumbnail-overlay.innowacje  {
    background-color:  var(--gre);
}

.post-thumbnail-overlay.standardy  {
    background-color:  var(--vio);
}
.post-thumbnail-overlay.blue {
    opacity: 0.75;
    background-color: var(--main);
}
.page-thumbnail-wrap {
    margin-top: 2em;
}
.post-thumbnail.default-thumb img {
    filter: brightness(1.2);
}
.page-thumbnail-wrap, .page .post-thumbnail, .page .post-thumbnail img {
    width: 100%;
}

.page-thumbnail-wrap.noimage {
    background-color: var(--main);
}

.page-thumbnail-wrap.noimage img {
    filter: opacity(0.2);
}

.post-thumbnail.niewiauthor {
    max-width: min(25em, 45%);
    position: relative;
    left: unset;
    top: unset;
    transform: unset;
    float: right;
}

.page-wrapper #primary {
    width: calc(var(--content) - 30rem);
    max-width: 100%;
}

.page-wrapper #secondary {
    /*width: clamp(10rem, 20vw, 25rem);*/
    width: 25rem;
    max-width: 100%;
    justify-self: flex-end;
    margin-left: 4rem;
}

.entry-header {
    margin-bottom: 3em;
}

.entry-title {
    background-color: var(--white);
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 0;
    position: relative;
}
article .entry-title {
    background-color: var(--light);
    margin-left: 0.3em;
}
article .entry-title-cont {
    background-color: var(--light);
}
article .entry-header {
    background-color: var(--light);
}

.entry-meta {
    padding-left: 1em;
    float: right;
}

.levelup-title {
    height: 2em;
    display: inline-block;
    margin-left: 0.15em;
    position: absolute;
    bottom: -50%;
    transform: translateY(-50%);
}

.site-main .post-navigation {
    border-top: 0.1em solid var(--gray);
    padding-top: 1.3em;
}

.nav-previous::before {
    content: '«';
    margin-right: 0.3em;
    color: var(--text);
}

.nav-next::after {
    content: '»';
    margin-left: 0.3em;
    color: var(--text);
}

#primary h3#tags-title {
    display: inline-block;
    vertical-align: text-top;
    margin: 0;
    line-height: 1.8em;
}
.tags-wrapper {
    display: flex;
}
.tags-container {
    display: inline-block;
    width: calc(100% - 3em);
    vertical-align: text-top;

}

#primary a.tag-link {
    margin-left: 0.75em;
    display: inline-block;
    text-decoration: none;
    padding: 0.3em 0.5em;
    background-color: var(--light);
    border: 1px solid var(--light);
    border-radius: 0;
    transition: all 0.2s ease-out;
    margin-bottom: 0.75em;
}

#primary a.tag-link:hover, a.tag-link:focus-visible {
    background-color: var(--white);
    border: 1px solid var(--accent);
}

.post-date {
    font-size: 0.8em;
    color: var(--dgray);
    padding-top: 1em;
}
.reading-time {
    display: inline-block;
    border: 2px solid var(--light);
    padding: 0.3em;
    border-radius: 6px;
    margin-left: 1em;
    font-size: 0.8em;
    color: var(--dgray);
}
.niewi-pageof {
    font-weight: 700;
    margin-right: 1em;
    border-right: 1px solid var(--light);
    padding-right: 1em;
}

.byline-author,
.byline-author-desc {
    font-size: 0.8em;
    color: var(--text);
}


.byline-author a.author.vcard {
    border-bottom: var(--line) ;
    line-height: 2em;
    text-decoration: none;
    color: var(--text);
}
.byline-desc {
    font-size: 0.8em;
}
#primary .byline-author a.author.vcard:hover,
#primary .byline-author a.author.vcard:focus-visible {
    color: var(--white);
    background-color: var(--main);
    outline: solid 0.2em var(--main);
    border-bottom-color: var(--white);
}

.wp-block-embed iframe {
    margin: 0 auto;
    display: block;
}


@media screen and (max-width: calc(80em - 1px) ) {
    .page-wrapper {
        display: block;
        width: unset;
    }
    #primary:not(.homepage), .page-wrapper #primary {
        margin: 1em;
        width: unset;
    }
    .post-top {
        max-width: 100%;
        margin: 1em 0;
    }
    .page-wrapper #secondary {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        width: unset;
        gap: 2rem;
        padding: 0 1em;
        margin-left: unset;
    }
    #secondary .widget {
        min-width: calc(50% - 1rem);
    }
}
@media screen and (max-width: 55em) {


    #crumbs {
        padding:0 1em;
    }
    .post-thumbnail-wrap, .page-thumbnail-wrap {
        height: 16em;
    }
    .page-thumbnail-wrap {
        width: calc(100% + 2em);
        margin-left: -1em;
    }
    #page-content {
        width: unset;
        margin: 0;
        padding: 1em;
        top: 0;
    }
    ul, ol {
        margin: 0;
    }
    .levelup-title {
        position: relative;
        vertical-align: sub;
        bottom: 0;
        transform: none;
    }
    #masthead {
        margin-bottom: 0;
    }
    .page-wrapper #secondary {
        display: block;
        width: 100%;
        padding: 1em;
    }
    .tag-link {
        display: inline-block;
        border: 1px solid currentColor;
        padding: 0.5em 1em;
        margin-top: 1em;
        border-radius: 0.5em;
    }
    #primary a.tag-link:hover, #primary a.tag-link:focus, #primary a.tag-link:active {
        border: 1px solid var(--accent);
    }
    #secondary .widget {
        width: unset;
    }
    .niewi-pageof {
        display: initial;
        margin-right: 1em;
    }
}
/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

#primary {
    position: relative;
    z-index: 0;
}
/* Library menu
-------------------------------------- */
#library-navigation {
    width: 100%;
    margin: 0;
}

.topic-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 auto;
    width: var(--content);
    justify-content: center;
    max-width: 100vw;
    gap: 2.1rem;
}

.menuitem-icon {
    display: block;
    width: 3em;
    height: 3em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 auto;
}

.topic-menuitem {
    display: block;
    max-width: 100%;
    text-align: center;
    transition: all 0.2s ease-out;
}

.topic-menuitem a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 2em 0.3em;
    text-decoration: none;
    border: solid 0.3rem;
    border-radius: 0.8rem;
}

.topic-menuitem a.current {
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.3);
}
.topic-menuitem:hover {
    outline: none;
}
.topic-menuitem:hover, .topic-menuitem a:focus-visible {
    z-index: 15;
    position: relative;
    background-color: var(--white);
}
.topic-menuitem a:hover, .topic-menuitem a:focus-visible {
    filter: drop-shadow(0 0.4em 0.5em rgba(0, 0, 0, 0.4));
}

.topic-menuitem a {
    border-color: var(--accent);
}

/*.topic-menuitem:nth-child(even) a {*/
/*    border-color: var(--orng);*/
/*}*/
/*@media screen and (max-width: 37em) {*/
/*    .topic-menuitem a {*/
/*        border-color: var(--orng);*/
/*    }*/
/*    .topic-menuitem:nth-child(2n+1) a {*/
/*        border-color: var(--orng);*/
/*    }*/

/*    .topic-menuitem:nth-child(3n+1) a {*/
/*        border-color: var(--accent);*/
/*    }*/
/*}*/

.menuitem-title {
    display: block;
    color: var(--text);
    /*font-size: 5vw;*/
    font-weight: 300;
    min-height: 55%;
}

#primary.shifted::before { /* under fixed menu */
    content: '';
    display: block;
    height: 0;
}
@media screen and (max-width: 70em) and (min-width: 55em) {
    #topic-menu {
        gap: 0;
    }
    .topic-menuitem {
        width: calc(100VW / 5 - 0.6em);
    }
    .topic-menuitem a {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #library-navigation.minified .menuitem-icon, .menuitem-icon {
        width: 1em;
        height: 1em;
    }
    #library-navigation.minified .menuitem-title {
        display: inline;
        white-space: nowrap;
    }
    .menuitem-indicator {
        display: none;
    }
}
@media screen and (max-width: 55em) {
    .topic-menuitem {
        width: 40%;
    }
    .menuitem-indicator {
        display: none;
    }
    .menuitem-icon {
        display: none;
    }
    .menuitem-title {
        font-size: 4vw;
    }
}



/* animated arrow */
.menuitem-indicator span {
    display: inline-block;
    background-color: transparent;
    width: 0.7em;
    height: 0;
    margin: 0;
    padding: 0;
    transition: all 0.1s ease-out;
    font-size: 1.5em;
    position: relative;
}

.menuitem-indicator span:first-child {
    transform: rotate(45deg);
    left: 0.136em;
    border-bottom: solid .1em var(--text);
    border-left: solid 0.1em transparent;
    border-right: solid 0.1em transparent;
    border-top: none;
}

.menuitem-indicator span:last-child {
    transform: rotate(-45deg);
    left: -0.136em;
    border-bottom: solid .1em var(--text);
    border-left: solid 0.1em transparent;
    border-right: solid 0.1em transparent;
    border-top: none;
}

/*.topic-menuitem:hover .menuitem-indicator span:first-child,*/
/*.topic-menuitem a.current .menuitem-indicator span:first-child,*/
/*.topic-menuitem a:focus .menuitem-indicator span:first-child {*/
/*    transform: rotate(0deg);*/
/*    border-left: solid 0.5em var(--text);*/
/*}*/

/*.topic-menuitem:hover .menuitem-indicator span:last-child,*/
/*.topic-menuitem a.current .menuitem-indicator span:last-child,*/
/*.topic-menuitem a:focus .menuitem-indicator span:last-child {*/
/*    transform: rotate(0deg);*/
/*    border-right: solid 0.5em var(--text);*/
/*}*/

.topic-menuitem.inverted .menuitem-indicator span:first-child {
    transform: rotate(-45deg);
    left: 0.136em;
    border-top: solid .1em var(--text);
    border-left: solid 0.1em transparent;
    border-right: solid 0.1em transparent;
    border-bottom: none;
}

.topic-menuitem.inverted .menuitem-indicator span:last-child {
    transform: rotate(45deg);
    left: -0.136em;
    border-top: solid .1em var(--text);
    border-left: solid 0.1em transparent;
    border-right: solid 0.1em transparent;
    border-bottom: none;
}

.topic-menuitem.current .menuitem-indicator span {
    width: 1em;
    border-top: solid .1em var(--text);
}
.library-toggle {
    background-color: var(--white);
    border-radius: 0 0 0.3em 0.3em;
    padding: 0 1em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-top: 0;
    bottom: -1.5em;
    font-size: 0.7em;
}
.library-toggle .menuitem-indicator {
    display: block;
    transform: rotateX(180deg);
    height: 1.5em;
}
.library-toggle:hover .menuitem-indicator span,
.library-toggle:focus-visible .menuitem-indicator span {
    border-color: var(--white);
}
.minified.toggled .library-toggle .menuitem-indicator {
    transform: initial;
}

/*@media screen and (min-width: 37.5em) {*/
    button.library-toggle {
        display: none;
    }
    #library-navigation.minified button.library-toggle {
        display: inline;
    }
    #library-navigation.minified.toggled #topic-menu .menuitem-icon {
        display: none;
    }
    #library-navigation.minified.toggled #topic-menu .menuitem-title {
        border: 0;
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute !important;
        width: 1px;
        word-wrap: normal !important;
    }
    #library-navigation.minified.toggled #topic-menu a:focus-visible .menuitem-title,
    .library-toggle:hover span.sr-only,
    .library-toggle:focus-visible span.sr-only {
        background-color: #f1f1f1;
        border-radius: 3px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
        clip: auto !important;
        clip-path: none;
        color: var(--accent);
        display: block;
        font-size: 0.875rem;
        font-weight: 700;
        height: auto;
        left: 50%;
        line-height: normal;
        padding: 15px 23px 14px;
        text-decoration: none;
        top: 1.5em;
        width: auto;
        z-index: 100000;
        transform: translateX(-50%);
    }
    #library-navigation.minified.toggled #topic-menu a {
        padding: 0;
    }

    /*minified - sticky*/
    #library-navigation.minified {
        position: relative;
        /*z-index: 100;*/
        background-color: var(--white);
        top: 0;
        box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, 0.1);
        padding-bottom: 0.6em;
    }

    #library-navigation.minified .menuitem-icon {
        width: 2em;
        height: 2em;
    }

    /*#library-navigation.minified .topic-menuitem a {*/
    /*    padding: 1em 0.3em 1em;*/
    /*}*/

    #library-navigation.minified .topic-menuitem a .menuitem-indicator {
        display: none;
    }

    .minified .topic-menuitem a.current {
        box-shadow: 0 -0.1em 0.4em rgba(0, 0, 0, 0.3);
    }

/*}*/
.minified.toggled .topic-menuitem {
    height: 0;
}

@media screen and (max-width: calc(80em - 1px)) {
    #niewi-library {
        padding: 1em;
    }
}

@media screen and (max-width: 55em) {

    #library-navigation {
        padding: 0;
        display: none;
    }
    button.library-toggle {
        display: none;
        background: var(--white);
        width: 100%;
    }
    #topic-menu {
        gap: 1rem;
        padding: 0;
        justify-content: center;
    }
    .topic-menuitem {
        text-align: center;
        box-shadow: none;
        height: 4em;
    }
    #niewi-articles .library-post-link {
        width: 100%;
    }
    .topic-menuitem a {
        padding: 1em 0;
        display: flex;
        justify-content: center;
        flex-direction: column;
        overflow: hidden;
    }
    .topic-menuitem a.current {
        box-shadow: 0 0.8em 0.5em -0.3em rgba(0, 0, 0, 0.3);
    }
    .topic-menuitem:last-child {
        position:relative;
    }

}

/* back to top */
#back-to-top {
    display: none;
    opacity: 0;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 11;
    border-radius: 0.6em;
    box-shadow: 0 0.3em 0.5em rgba(0,0,0,0.3);
    transition: all 0.5s ease-out;
    background-color: var(--white);
    width: 3rem;
    height: 3rem;
    border: none;
}
#back-to-top img {
    width: 100%;
    height: 100%;
    transition: all 0.2s ease-out;
}

#back-to-top:focus-visible img, #back-to-top:hover img {
    filter: grayscale(1) invert(1) brightness(2);
}
#back-to-top:focus-visible,
#back-to-top:hover {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--accent);
    border: none;
}
@media screen and (max-width: 55em){
    #back-to-top {
        bottom: 0;
        right: 0;
    }
}


/* Header main styles
-------------------------------------- */
#header-inner {
    display: flex;
    justify-content: space-between;
    /*border-bottom: 1px solid var(--light);*/
}

#header-top,
#header-mid {
    display: flex;
    padding: 1em 3em 0;
}

#header-top {
    justify-content: space-between;
}

#header-mid {
    position: relative;
    z-index: 1;
    justify-content: end;
}

.site-branding {
    display: flex;
    max-width: 100%;
    width: 30em;
    height: 4em;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#logo-1 {
    width: 6em;
    padding-right: 1em;
}

#logo-2 {
    width: 6em;
    padding-left: 1em;
}

.custom-logo {
    width: auto;
    max-height: 3em;
}

.custom-logo-link {
    height: 5em;
    display: block;
    position: relative;
    border-bottom: none;
}

.custom-logo:not(.addidtional) {
    top: 0.35em;
    position: relative;
}
.custom-logo-link::before {
    display: block;
    content: '';
    width: 100%;
    height: 0.1em;
    background-color: transparent ;
    position: absolute;
    bottom: 1em;
    right: 0;
    transition: all 0.2s ease-out;
}
#logo-1 .custom-logo-link::before {
    width:60%;
}
#header-top .custom-logo-link:hover,
#header-top .custom-logo-link:focus-visible {
    background-color: transparent;
}
#header-top .custom-logo-link:not(.additional):hover::before,
#header-top .custom-logo-link:focus-visible::before {
    background-color: var(--accent);
}

.project-branding {
    width: 11em;
    position: relative;
}

.project-branding img {
    position: absolute;
    left: 0;
    top: 0.5rem;
}


#main-search {
    display: inline-block;
}
#main-search input {
    height: 2.6em;
    position: relative;
}
button svg,
#header-top a svg {
    position: relative;
    width: auto;
    height: 100%;
    transition: all 0.2s ease-out;
}

button:not(.menu-toggle, .library-toggle) {
    border: none;
    background-color: transparent;
    display: inline-block;
    font-size: 1em;
    padding: 0;
    cursor: pointer;
}

#wcag-buttons {
    position: relative;
}

#wcag-buttons button {
    margin-left: 1.5em;
    position: relative;
    top: 1px;
    border: 1px solid transparent;
}
#wcag-panel {
    height: 2.1em;
}
#wcag-panel svg path {
    fill: var(--text);
}
#wcag-panel[aria-expanded="true"] svg path {
    fill: var(--accent);
}
#wcag-panel[aria-expanded="true"] {
    outline: 2px solid var(--accent);
}
#wcag-panel:hover svg path, #wcag-panel:focus-visible svg path {
    fill: var(--white);
}
button:hover svg,
button:focus-visible svg,
#header-top a:hover,
#header-top a svg:hover,
#masthead button:hover,
#masthead button.search-submit:hover,
#header-top a:focus-visible,
#header-top a svg:focus-visible,
#masthead button:focus-visible,
#masthead button.search-submit:focus-visible {
    fill: var(--white);
    color: var(--white);
    background-color: var(--accent);
}
#niewi-accessibility {
    display: flex;
    flex-direction: column;
    align-items: start;
    border: 1px solid var(--light);
    position: absolute;
    right:0;
    width: 21em;
    background-color: var(--white);
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.3);
    padding: 1em;
}
#niewi-accessibility .wcag-btn {
    margin: 0.5em 0;
    width: 100%;
    text-align: left;
}

#niewi-accessibility .wcag-btn[aria-pressed="true"] {
    font-weight: 700;
}
#niewi-accessibility .wcag-btn svg {
    display: inline-block;
    vertical-align: middle;
    height: 2em;
}
#niewi-accessibility .wcag-btn svg path {
    fill: var(--accent);
}
#niewi-accessibility .wcag-btn:hover svg path,
#niewi-accessibility .wcag-btn:focus-visible svg path {
    fill: var(--light);
}
#wcag-schemes {
    margin: 0;
    border-bottom: 1px solid var(--gray);
}
#wcag-schemes p {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid var(--gray);
    font-weight: 700;
    color: var(--accent);
}
#niewi-accessibility #wcag-schemes .wcag-btn {
    width: 49%;
    padding: 0;
    vertical-align: middle;
}

/* Search forms
--------------------------------- */
.search-form {
    position: relative;
}

.search-field {
    border-color: var(--text);
    border-radius: 0;
    font-size: 0.8em;
    line-height: 1.8em;
    padding: 0.3em 1.5em;
    background-color: transparent;
    position: relative;
}

.search-form button.search-submit, #masthead .search-form button.search-submit {
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    margin-left: -1.5em;
    padding: 0.3em 0;
    width: 2em;
}

.search-field:focus-visible {
    outline: solid 0.2em var(--accent);
}

.search-field:focus-visible,
.search-field:hover {
    background-color: var(--white);
    color: var(--text);
}
@media screen and (max-width: 55em) {
    #header-mid {
        justify-content: space-between;
        padding: 1em 2em;
    }
    #top-tools {
        display: flex;
        align-items: center;
    }
    #masthead .search-form button.search-submit {
        position: relative;
        width: 2em;
        height: 2em;
        left: unset;
        top: unset;
    }
    #wcag-buttons {
        position: unset;
    }
    #wcag-buttons button {
        height: 2.8em;
        top: 0.3em;
    }
    #niewi-accessibility .wcag-btn {
        margin: 0.5em auto;
        padding: 0 calc((100vw - 22em) / 2);
    }
    #niewi-accessibility {
        top: 5.5em;
        width: 100%;
        right: 0;
    }
    #header-top {
        flex-wrap: wrap;
        justify-content: end;
        padding: 1em 0;
    }
    .project-branding {
        width: 9em;
        height: 4em;
        order: 1;
    }
    .site-branding {
        order: 2;
        width: unset;
    }
    #main-search .search-field {
        display: none;
    }

}

/* Footer hero section */
.footer-hero {
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
    position: relative;
    padding: 12em 0;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    background-image: linear-gradient(to right, #093d66, #752baa, #ec6a4c, #f8dc6d);
    top: 0;
    left: 0;
    opacity: 0.7;
}

.footer-hero hgroup {
    position: relative;
    z-index: 10;
}

.footer-hero h2 {
    font-size: 3em;
    margin: 0;
    color: var(--white);
}


@media screen and (max-width: calc(80em - 1px)) {

    .footer-hero {
        padding: 1em;
        background-position: center;
    }
    .hero-overlay {
        opacity: 0.9;
        filter: brightness(0.5);
    }
    .footer-hero h2 {
        margin-bottom: 0.5em;
    }
    .footer-hero span {
        line-height: 1em;
    }
}

/* Footer widget area */
#footer-widgets {
    display: grid;
    width: var(--content);
    max-width: 100%;
    margin: 4em auto 0;
    grid-template-columns: 45% 36% auto;
}

.footer-widget-area:not(:first-child) {
    max-width: 100%;
    border-left: 1px solid var(--gray);
    padding: 0 0 0 4rem;
}

#footer-widgets .footer-widget-area:first-child {
    border-left: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 4em 0 0;
}

.footer-widget-area .widget_nav_menu ul {
    list-style: none;
    margin: 0.5em 0 0 0;
    padding: 0;
}
.footer-widget-area .widget_nav_menu ul li {
    margin-bottom: 1em;
}
.footer-widget-area .widget_nav_menu ul li a {
    color: var(--text);
}
.footer-widget-area .widget_nav_menu ul li a:focus-visible {
    display: inline-block;
}
.footer-widget-area .widget_nav_menu ul li:hover a,
.footer-widget-area p a:hover,
.footer-widget-area .widget_nav_menu ul li:focus-visible a,
.footer-widget-area p a:focus-visible {
    background-color: var(--accent);
    color: var(--white);
}
#footer-widgets .widget_media_image figure {
    height: 7em;
    margin-top: 0;
}
#footer-widgets .widget_media_image {
    width: 50%;
    padding-right: 2em;
}

#footer-widgets .widget_media_image figure img {
    height: 70%;
    width: auto;
}

.footer-widget-area .widget_text {
    font-size: 0.8em;
}
footer .widget {
    margin: 0;
}
/* EU logos and other stuff */
#footer-bottom {
    text-align: center;
    margin-top: 3em;
}
#footer-bottom::before {
    display: block;
    content: '';
    transform: translateY(-2.5em);
    height: 0.2rem;
    width: 100vw;
    background-color: var(--orng);
}
#footer-logos-wrap {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    height: 6rem;
    margin: 0 auto;
    width: var(--content);
    padding:0 1rem;
}

#footer-logos-text {
    font-size: 0.8em;
    width: 100%;
    max-width: 85em;
    margin: 0 auto;
}

@media screen and (max-width: calc(80em - 1px)) {
    #footer-widgets {
        display: flex;
        flex-wrap: wrap;
    }
    #footer-widgets .widget_media_image {
        padding: 0;
        width: calc(50% - 0.5em);
    }
    #footer-widgets .footer-widget-area:first-child {
        padding: 1em;
        gap: 1em;
    }
    .footer-widget-area:not(:first-child) {
        padding: 1em;
        border: none;
    }
    #footer-logos-wrap {
        flex-wrap: nowrap;
        justify-content: center;
    }
    #footer-logos-wrap img {
        width: 33.3%;
    }
    #menu-menu-dolne {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
    #menu-menu-dolne li {
        display: block;
        height: 3em;
        width: 100%;
        line-height: 3em;
        border-bottom: 1px solid var(--gray);
    }
}


/* breadcrumbs
 */
#crumbs {
    font-size: 0.8em;
    margin-bottom: 1rem;
}

.breadcrumbs-pre {
    margin-right: 0.5em;
    font-weight: 700;
}

.breadcrumbs {
    display: inline;
}
#primary .breadcrumbs li {
    display: inline;
    margin: 0;
    padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
    content: "\00BB";
    margin: 0 0.4em;
    color: var(--accent);
}

.breadcrumbs li a {
    text-decoration: none;
}

/* home page */
/*top homepage content */
.home-content {
    background-color: var(--light);
    display: block;
    padding: 1px 0;
    margin-top: 2em;
}
.home-content-container {
    width: var(--content);
    margin: 0 auto;
    background-color: var(--white);
    padding: 1em;
    max-width: 100%;
}
.post-thumbnail-container.right {
    max-width: 100%;
    width: 50%;
    order: 1;
    min-height: 8em;
    background-size: 130%;
    background-repeat: no-repeat;
    background-position: center;
}




@media screen and (max-width: calc(80em - 1px)) {
    .home-content {
        padding-bottom: 1.5em;
    }

    .home-content .post-thumbnail-container {
        width: 100%;
    }

    .breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        max-width: 100vw;
    }
}

/*about section */
#footer-about {
    margin: 0;
    padding: 4em 0;
    position: relative;
}

.content-frame {
    position: relative;
    z-index: 10;
    background-color: var(--light);
    padding: 2em 8em 3.5em;
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
}


/*.level-up-title {*/
/*    font-weight: 800;*/
/*    margin-top: 0;*/
/*}*/

/*.level-up-title img {*/
/*    position: relative;*/
/*    top: 0.2em;*/
/*    width: 4em;*/
/*}*/
.content-frame p {
    font-size: 1.15em;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.content-frame .wp-post-image {
    margin-right: 2em;
    width: calc(var(--content) /6);
}
#footer-bottom {
    background-color: var(--main);
    padding: 2em 0;
    border-top: 0.3em solid var(--accent);
}
#footer-bottom a {
    color: var(--light);
    font-weight: 700;
}
#footer-about-bgr {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center left;
}
#footer-about .library-post-button {
    margin: 0 auto;
}

@media screen and (max-width: 55em) {
    #footer-about {
        padding: 0;
    }
    #footer-about-bgr {
        display: none;
    }
    .content-frame {
        padding: 2em 1em;
    }
    .content-frame .wp-post-image {
        width: 100%;
    }
    .content-frame p {
        display: block;
    }
}


/* Latest posts - homepage */
#home-latest-posts {
    background-color: var(--content);
    padding: 4em 0;
    margin: 0 auto;
}

#home-latest-posts h2 {
    color: var(--text);
    margin: 0 auto 1em;
    display: block;
    font-weight: 400;
}

.front-featured-link {
    display: block;
    margin: 0 auto 1em;
    position: relative;
    text-decoration: none;
    width: 50em;
    max-width: calc(100% - 7em);
    background-color: var(--white);
    padding: 1.5em 6em;
    color: var(--text);
    border:none;
}

.front-cat-box {
    box-sizing: border-box;
    display: block;
    text-transform: capitalize;
    font-weight: 400;
    position: absolute;
    width: 8.5em;
    height: 6em;
    left: -5em;
    background-color: var(--gray);
    color: var(--white);
    border: none;
    font-size: 0.9em;
    text-align: center;
    /*line-height: 6em;*/
    top: 50%;
    margin-top: -3em;
    box-shadow: -0.4em 0.4em 0.3em rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-out;
}

#home-latest-posts .pracownicy {
    background-color: var(--orng);
    text-shadow: #105483 0px 0px 3px, #105483 0px 0px 3px, #105483 0px 0px 3px, #105483 0px 0px 3px,#105483 0px 0px 3px,#105483 0px 0px 3px;
}

#home-latest-posts .edukacja {
    background-color: var(--pin);
    text-shadow: #96015d 0px 0px 3px, #96015D 0px 0px 3px, #96015D 0px 0px 3px, #96015D 0px 0px 3px,#96015D 0px 0px 3px,#96015D 0px 0px 3px;
}

#home-latest-posts .wiedza {
    background-color: var(--yel);
    color:var(--text);
    text-shadow: #CC9E00 0px 0px 4px, #CC9E00 0px 0px 4px, #CC9E00 0px 0px 4px, #CC9E00 0px 0px 4px,#CC9E00 0px 0px 4px,#CC9E00 0px 0px 4px;
}

#home-latest-posts .innowacje {
    background-color: var(--gre);
    text-shadow: #056251 0px 0px 3px, #056251 0px 0px 3px, #056251 0px 0px 3px, #056251 0px 0px 3px,#056251 0px 0px 3px,#056251 0px 0px 3px;
}

#home-latest-posts .standardy {
    background-color: var(--vio);
    text-shadow: #4A156E 0px 0px 3px, #4A156E 0px 0px 3px, #4A156E 0px 0px 3px, #4A156E 0px 0px 3px,#4A156E 0px 0px 3px,#4A156E 0px 0px 3px;
}

#primary a.front-featured-link:hover,
#primary a.front-featured-link:focus-visible {
    color: var(--text);
    border-bottom-width: 0;
}

a.front-featured-link:hover .post-title,
a.front-featured-link:focus-visible .post-title {
    border-bottom: var(--line);
}

#primary .front-featured-link p {
    margin: 0.8em 0 0;
    font-size: 0.8em;
}

#primary .front-featured-link h3 {
    color: var(--text);
    display: inline;
}

#primary .front-featured-link img {
    position: absolute;
    top: calc(50% - 0.5em);
    right: 2em;
    transform: none;
    transition: all 0.2s ease-out;
}

#primary a.front-featured-link:hover img,
#primary a.front-featured-link:focus-visible img {
    transform: scale(150%);
}
@media screen and (min-width: 55em) {
    #primary a.front-featured-link:hover .front-cat-box,
    #primary a.front-featured-link:focus-visible .front-cat-box {
        left: -3em;
    }
    #home-latest-posts {
        width: var(--content);
    }
}

@media screen and (max-width: 55em) {
    #home-latest-posts {
        padding: 1.5em 0 1em;
    }
    #home-latest-posts h2 {
        width: unset;
        padding: 0 1rem;
    }

    #primary .front-featured-link {
        width: 100%;
        max-width: 100%;
        padding: 1em;
    }
    #primary .front-cat-box {
        position: relative;
        top: 0.85em;
        left: -1.2em;
        margin: -1em 1em 1em -1em;
        border: none;
        box-shadow: none;
        float: left;
    }
    #primary .front-featured-link h3 {
        font-size: 1.5em;
    }
    #primary .front-featured-link p {
        font-size: initial;
    }
    #primary .front-featured-link img {
        display: none;
    }
}

/*niewi library and latest posts animations*/

#niewi-library, #home-latest-posts {
    opacity: 1;
    max-height: 1000em;
    filter: blur(0);
    transition: all 0.8s cubic-bezier(.39, .58, .57, 1);
    /*margin-top: 5em;*/
}

#niewi-library.library-hidden, #home-latest-posts.library-hidden {
    opacity: 0;
    max-height: 0;
    margin: 0 auto;
}

#niewi-library.library-change {
    filter: blur(0.1em) opacity(0.1) grayscale(1);
}

#primary .library-hidden .library-title {
    height: 0;
}

/*library header */
#library-title-container {
    border-bottom: 0.5rem solid transparent;
}

#primary h1.library-title {
    width: calc(var(--content) / 2);
    max-width: 100%;
    margin: 0 auto;
    font-size: 2em;
}

#niewi-library.pracownicy #library-title-container,
.post-thumbnail-bottom.pracownicy {
    border-bottom-color: var(--orng);
}

#niewi-library.edukacja #library-title-container,
.post-thumbnail-bottom.edukacja {
    border-bottom-color: var(--pin);
}

#niewi-library.wiedza #library-title-container,
.post-thumbnail-bottom.wiedza {
    border-bottom-color: var(--yel)
}

#niewi-library.innowacje #library-title-container,
.post-thumbnail-bottom.innowacje {
    border-bottom-color: var(--gre);
}

#niewi-library.standardy #library-title-container,
.post-thumbnail-bottom.standardy {
    border-bottom-color: var(--vio);
}

#library-title-container .entry-title {
    font-size: 2em;
    display: block;
    width: var(--content);
    margin: 0 auto;
}

.subheader-wrapper {
    width: var(--content);
    margin: 0 auto;
    max-width: 100%;
}

#library-subheader {
    margin-top: 1em;
}

.dziubek-line {
    display: flex;
    width: 100%;
    height: 0.5em;
    margin-bottom: 1.5em;
    margin-top: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: start;
}

.dziubek-line span {
    border-bottom: solid 1px var(--gray);
    display: inline-block;
}

.dziubek-line span:first-child,
.dziubek-line span:last-child {
    transform: scaleX(1.02);
}

.dziubek-line span:nth-child(2) {
    transform: translateY(0.1em) translateX(0.1em) rotate(30deg);
}

.dziubek-line span:nth-child(3) {
    transform: translateY(0.1em) translateX(-0.1em) rotate(-30deg);
}

.dziubek-line span:first-child, .dziubek-line span:last-child {
    width: calc(var(--content) / 2);
}

.dziubek-line span:nth-child(2), .dziubek-line span:nth-child(3) {
    width: 1rem;
}

#primary #niewi-topic-header,
#primary #niewi-articles-header {
    display: inline-block;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    font-size: 1.6em;
}

.library-atricles-topic {
    text-transform: initial;
    font-weight: 400;
}

/* library category links */
#niewi-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: var(--content);
    max-width: 100%;
    margin: 0 auto 4em;
    gap: 1rem;
}

.niewi-subcat-link {
    display: block;
    font-size: 1em;
    width: calc(var(--content) / 3 - 0.75rem);
    text-align: center;
    padding: 0.51em 2em;
    border: 1px solid var(--accent);
    height: 4.5em;
    border-radius: 0.5rem;
    color: var(--text);
    text-decoration: none;
    position: relative;
}
#show-top-cat.niewi-subcat-link {
    width: unset;
    display: inline-block;
    height: unset;
    margin-bottom: 0.4rem;
    font-size: 1em;
    text-transform: uppercase;
    vertical-align: bottom;
    margin-left: 1em;
}
.niewi-subcat-link.cat-selected {
    color: var(--white);
    background-color: var(--main);
    /*cursor: not-allowed;*/
    /*pointer-events: none;*/
}

#primary .niewi-subcat-link:hover,
#primary .niewi-subcat-link:active,
#primary .niewi-subcat-link:focus,
#primary .niewi-subcat-link:focus-visible,
#primary .library-post-button:hover,
#primary .library-post-button:focus,
#primary .library-post-button:active,
#primary .library-post-button:focus-visible {
    color: var(--white);
    background-color: var(--main);
    box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--main);
}

.cevis-subcat-text {
    display: block;
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 0 1em;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
@media screen and (max-width: calc(80em - 1px)) {
    #niewi-topics {
    justify-content: center;
    }
}
@media screen and (max-width: 55em) {
    #niewi-library {
        margin-top: 1rem;
    }
    #library-title-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    #show-top-cat.niewi-subcat-link {
        font-size: 1.6em;
        margin: 0 auto 0.4em;
        width: 100%;
    }
    .dziubek-line {
        width: 100vw;
        margin-left: -1em;
    }
}

/* Library articles */
#niewi-articles {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
}

.niewi-article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem 1.3rem;
    justify-content: center;
    max-width: 100vw;
}

.library-post-wrap {
    filter: blur(0);
    transition: all 0.8s cubic-bezier(.39, .58, .57, 1);
    max-width: 100%;
}

.library-post-wrap.shifted {
    filter: blur(0.1em) opacity(0.1) grayscale(1);
}

.library-post-link {
    text-decoration: none;
    color: var(--text);
    width: calc(var(--content) / 3 - 1rem);
    max-width: 100%;
    background-color: var(--light);
    border:none;
    border-radius: 0.5rem;
    display: block;
    overflow: hidden;
    padding: 17rem 1rem 2rem;
    position: relative;
}

.library-post-thumbnail {
    display: block;
    position: absolute;
    width: 100%;
    height: 15.5rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid var(--light);
    border-radius: 0.5rem 0.5rem 0 0;
    left: 0;
    top: 0;
    filter: brightness(1);
    transition: all 0.2s ease-in;
}
.library-post-thumbnail:not(.clean)::before {
    content: '';
    display: block;
    background-color: transparent;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity:0.1;
}
#primary .library-post-link:hover .library-post-thumbnail,
#primary .library-post-link:focus-visible .library-post-thumbnail {
    filter: brightness(0.85);
}
.library-post-category {
    display: inline-block;
    background-color: var(--light);
    border: 2px solid var(--white);
    border-radius: 0.3em;
    padding: 0.2em 0.5em;
    font-size: 0.85em;
    position: absolute;
    top: 12.5rem;
    right: 1rem;
    box-shadow: 0 0 0.3rem 0.1rem var(--dgray);
}
.pracownicy .library-post-thumbnail::before {
    background-color: var(--orng);
}

.edukacja .library-post-thumbnail::before {
    background-color:  var(--pin);
}

.wiedza .library-post-thumbnail::before {
    background-color: var(--yel);
}

.innowacje .library-post-thumbnail::before {
    background-color:  var(--gre);
}

.standardy .library-post-thumbnail::before {
    background-color:  var(--vio);
}
#primary .library-post-link .post-title {
    color: var(--text);
    font-weight: 300;
    font-size: 1.5em;
    border-bottom: solid 1px transparent;
    display: inline;
}
.library-post-link .post-title-wrap {
    display: block;
    height: 4.5em;
    overflow: hidden;
}
.library-post-excerpt {
    font-size: 0.9em;
    margin: 1rem 0 0 0;
    display: block;
    height: 6em;
    overflow: hidden;
}

#primary .library-post-link:hover,
#primary .library-post-link:focus-visible {
    color: var(--text);
    border-bottom-color: transparent;
    box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, 0.2);
    border-bottom-width: 0;
}

.library-post-link:hover .post-title,
.library-post-link:focus-visible .post-title {
    border-bottom: var(--line);
}

.library-no-posts-icon {
    width: 8rem;
    height: 8rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 4rem auto 5rem;
    opacity: 0.06;
}
@media screen and (max-width: calc(80em - 1px)) {
    .niewi-article-grid {
        justify-content: center;
    }
}

@media screen and (max-width: 55em) {
    .library-post-link {
        width: 100%;
        border-radius: 0;
        border-bottom: 3px solid var(--main);
    }
    .library-post-category {;
        font-size: 1em;
        top: 15em;
    }
    #primary .library-post-link:hover, #primary .library-post-link:focus-visible {
        border-bottom-width: 3px;
        border-bottom-color: var(--accent);
    }
}

/* Pagination */
.pagination {
    width: var(--content);
    max-width: 100%;
    margin: 2rem 0 5.5rem;
    height: 2.5rem;
}
.search-field-results-content .pagination {
    margin-bottom: 6.8rem;
}

#primary .pagination ul, .page-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary .pagination ul li::before {
    display: none;
}
.page-numbers li .page-numbers,
.post-page-numbers {
    width: 2.5rem;
    height: 2.5rem;
    font-weight: 700;
    border-right: solid 1px var(--light);
    text-align: center;
    line-height: 2.5rem;
    display: block;
}

.page-numbers.current,
.post-page-numbers.current {
    color: var(--white);
    background-color: var(--accent);
}

.pagination ul li a {
    text-decoration: none;
}

.pagination ul li a:hover, .pagination ul li a:focus-visible,
a.post-page-numbers:hover, a.post-page-numbers:focus-visible {
    background-color: var(--light);
}

/* 404 page
*
 */
#main-404-content {
    max-width: 100%;
    width: var(--content);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 2em 0;
    justify-content: space-between;
}

.error-404-texts .page-title {
    color: var(--text);
    font-weight: 400;
    max-width: 11em;
}

.ultra-big {
    font-weight: 900;
    display: block;
    font-size: 2.5em;
}

.error-404-texts .button {
    font-size: 1em;
}

#main-404-image {
    border-radius: 50%;
    background-size: cover;
    width: calc((var(--content) / 2) - 5em);
    height: calc((var(--content) / 2) - 5em);
    margin: 2em 0;
}

#img-404-circle {
    position: relative;
    top: 2em;
    left: -7em;
    width: 40%;
    fill: var(--main);
    background-color: var(--white);
    border-radius: 50%;
    height: 40%;
}

#article-grid {
    max-width: 100%;
    width: var(--content);
    margin: 0 auto;
    padding-bottom: 4em;
}
@media screen and (max-width: 800px){
    .error-404-texts {
        position: absolute;
        background-color: var(--white);
        opacity: 0.8;
        padding: 1em;
    }
    #main-404-image {
        width: calc(100vw - 2em);
        height: calc(100vw - 2em);
    }
    #img-404-circle {
        display: none;
    }

}

/*
* Search results page
 */
.entry-header.page-thumbnail-wrap.search-page-header.noimage {
    height: auto;
}

.header-inner {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-page-header .header-inner .entry-title {
    color: var(--white);
    background-color: transparent;
}

.header-inner .search-form {
    background-color: var(--white);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.niewi-postlist-item {
    display: flex;
    gap: 1.3em;
    flex-wrap: wrap;
}

.article-grid-thumbnail picture {
}

.article-grid-thumbnail {
    width: 150px;
}

.article-grid-article {
    width: calc(100% - 150px - 1.3em);
}
.article-grid-article .entry-meta {
    font-size: 0.85em;
    font-style: italic;
}
/*.article-grid-thumbnail img {*/
/*    margin-top: 1.5em;*/
/*}*/

.searchform-wrap {
    padding: 0.5rem 0.5rem 0;
    background-color: var(--accent);
    width: max-content;
    border: none;
    max-width: 100%;
}

.header-inner .search-form label {
    line-height: 2.3em;
}

.header-inner .search-field {
    border: none;
    height: 3em;
    width: 20rem;
    max-width: 100%;
}

.header-inner .search-field:focus-visible {
    outline-offset: 0.3em;
}

.header-inner .search-form button.search-submit {
    top: auto;
}
.search-result-type {
    color: var(--text);
    font-weight: 400;
    font-size:0.8em;
}
.search-field-results-content .entry-meta {
    margin-bottom: 1rem;
    font-size: 0.8em;
}
/* advanced search styles */
#primary .search-page-header h1.entry-title {
    margin: 1.5rem 0 0.5rem 0;
    display: block;
}

#advanced-search {
    background-color: var(--accent);
    position: relative;
    width: fit-content;
    max-width: 100%;
    display: flex;
    padding: 1rem 0.5rem;
    margin-bottom:1em;
}

#rlv-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 42rem;
    height: unset;
    padding: 0 0 0 1rem;
    transition: 0.3s all ease-out;
}
#rlv-search-filters.rlv-closed {
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}
#rlv-search-filters * {
    opacity: 1;
    background-color: initial;
    transition: 0.6s opacity cubic-bezier(1,0,0,1);
}
#rlv-search-filters.rlv-closed * {
    background-color: transparent;
    opacity: 0;
}

#advanced-search button {
    color: var(--white);
    width: 20rem;
    max-width: 100%;
    font-size: 0.82em;
    padding: 0.75em 1em;
    text-align: left;
    background-color: transparent;
    position: relative;
    border-radius: 0;
    height: max-content;
    border: solid 1px var(--white);
    margin: 0;
}
#advanced-search button:focus-visible {
    outline: 2px solid;
    outline-offset: -3px;
}
#advanced-search button#rlv-search-filter {
    display: inline-block;
    margin: 0;
}
#advanced-search select {
    background-color: var(--white);
    display: inline-block;
    height: 3em;
    border: 1px solid var(--accent);
    width: 20rem;
    margin: 0;
    text-align: center;
    min-width: 15.5rem;
    font-size: 0.85em;
}

#advanced-search label {
    position: relative;
    display: inline-block;
    margin: 0;
    color: var(--white);
    padding-top: 0.3em;
    height: 3em;
    box-sizing: border-box;
    vertical-align: top;
    text-align: center;
    width: 20rem;
    font-size: 0.85em;
    line-height: 2em;
}
#post_types {
    opacity: 0;
}
#advanced-search label::before {
    display: inline-block;
    position: relative;
    content: '';
    height: 2rem;
    width: 2rem;
    color: var(--white);
    text-align: center;
    font-size: 2em;
    line-height: 1em;
    border: 2px solid currentColor;
    border-radius: 3px;
    vertical-align: middle;
}
#advanced-search label.checked::before {
    content: '✓';
}
#advanced-search label.focused {
    outline:3px solid currentColor;
}

#advanced-search .disabled {
    cursor: not-allowed;
    color: var(--gray);
}
.button-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: all 0.3s ease-out;
}

button:hover .button-inner,
button:focus-visible .button-inner {
    opacity: 1;
}

#advanced-search button span.btn-text {
    position: relative;
    display: inline-block;
    height: 100%;
    line-height: 1.5em;
}

#advanced-search button img {
    filter: invert(1);
    height: 0.8em;
    display: inline-block;
    margin-left: 1em;
    vertical-align: middle;
    transition: all 0.3s ease-out;
}

#advanced-search button:hover img,
#advanced-search button:focus-visible img {
    height: 1em;
}
.search-result-counters h3, .search-result-counters h2 {
    color: var(--text);
    font-weight: 400;
}

.search-result-counters h2 {
    margin-bottom: 0;
}

.search-result-counters h3 {
    margin-top: 0;
}

.search-result-counters, .search-field-results-content article {
    border-bottom: 0.1em solid var(--gray);
}

.search-result-counters {
    padding-bottom: 2em;
}

#search-results-content {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
}

#search-results-content a {
    text-decoration: none;
}

#search-results-content article h3 {
    margin-bottom: 1em;
    display: inline-block;
}

#search-results-content .entry-header {
    margin-bottom: 0;
}

#search-results-content .entry-summary {
    margin: 0;
}

#search-results-content .entry-summary p:first-child {
    margin-top: 0;
}

/*#search-results-content .entry-summary p:first-child::before {*/
/*    content: '...';*/
/*}*/

@media screen and (max-width: 55em) {
    .entry-header.page-thumbnail-wrap.search-page-header.noimage {
        height: auto;
        padding: 1em;
    }
    .header-inner .search-form {
        box-shadow: none;
        width: 100%;
    }
    .header-inner .search-form label {
        display: block;
        width: 100%;
    }
    .search-form {
        font-size: 1.5em;
    }
    #advanced-search {
        display: block;
        left: 0;
        width: 100%;
        font-size: 1.5em;
    }
    #rlv-search-filters {
        width: 100%;
        justify-content: start;
        padding: 1em 0;
    }
    .article-grid-article {
        width: 100%;
    }
    .article-grid-thumbnail {
        width: 100%;
    }
}
/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 3rem;
}

.widget select {
    max-width: 100%;
}

.widgettitle,
.widget-title {
    font-size: 1.3em;
    color: var(--text);
    margin: 0.5rem 0;
}

.niewi-widget-list {
    margin: 0;
    padding: 1em 0 1em 1.5em;
    border-top: solid 1px var(--gray);
    border-bottom: solid 1px var(--gray);
}

.niewi-widget-list li {
    padding: 1px 0;
    list-style: none;
    position: relative;
}

.niewi-widget-list li::before {
    content: '•';
    display: block;
    position: absolute;
    top: 0;
    left: -0.8em;
    line-height: 2em;
}

.niewi-widget-list a {
    color: var(--text);
    text-decoration: none;
    width: 100%;
    display: inline-block;
    padding: 0.2em;
    border-bottom-color: transparent;
    border-bottom-width: 0.15em;
}

.widget_media_image a {
    border: none;
}

.niewi-widget-list .current-element a,
.niewi-widget-list a:hover {
    color: var(--white);
    background-color: var(--main);
}

.niewi-featured-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.niewi-featured-list li {
    margin-bottom: 1em;
}

.widget-post-box a {
    text-decoration: none;
    padding: 1em;
    display: block;
    /*height: 11em;*/
    border-radius: 0 0.5em 0.5em 0;
    border-left: 0.5em solid var(--gray);
    border-bottom: none;
    background-color: var(--light);
}

.widget-post-box a:hover,
.widget-post-box a:focus-visible {
    border-bottom-color: transparent;
    box-shadow: 0 0.3em 0.5em rgba(0, 0, 0, 0.2);
}

.widget-post-box {
    display: block;
}
.post-box-wrap {
    display: block;
    height: 3.6em;
    overflow: hidden;
}
.widget-post-box.pracownicy a {
    border-left-color: var(--orng);
}

.widget-post-box.edukacja a {
    border-left-color: var(--pin);
}

.widget-post-box.wiedza a {
    border-left-color: var(--yel)
}

.widget-post-box.innowacje a {
    border-left-color: var(--gre);
}

.widget-post-box.standardy a {
    border-left-color: var(--vio);
}

.widget-post-box a h3 {
    border-bottom: var(--line);
    display: inline;
    font-weight: 700;
    margin: 0;
    padding-left: 0;
    transition: all 0.1s ease-in;
}
.widget-post-box a:hover h3, .widget-post-box a:focus-visible h3 {
    color: var(--white);
    background-color: var(--accent);
    display: block;
    margin: 0;
    padding-left: 0.2em;
}
.widget-excerpt {
    font-size: 1.25rem;
    color: var(--text);
    max-height: 4.5em;
    overflow: hidden;
    margin: 1em 0 0 0;
}

/* Article Author page
 */
.author-page-header {
    background-color: var(--light);
    height: unset;
    padding-top: 2em;
    padding-bottom: 1em;
}
@media (max-width:37rem) {
    .author-page-header {
        padding: 1em 0;
        max-width: 100%;
        margin: 0;
    }
}

/* Contact page */
#contact-content, #contact-map {
    display: inline-block;
    vertical-align: top;
    width: 49.7%;
    margin: 0;
}
#contact-map {
    padding-top: 0.75em;
}
@media (max-width:37rem) {
    #contact-content, #contact-map {
        width: unset;
        max-width: 100%;
    }
}

/*	LIGHTBOX 2 additional css
*
 */
.lightbox-img-overlay {
    display: inline-block;
    position: relative;
    background-color: transparent;
    flex: 1 0 0%;
    height: 100%;
    object-fit: cover;
}
.lightbox-img-overlay::before {
    content: '\1F5BC';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    background: transparent;
    color: var(--white);
    text-align: center;
    font-size: 6em;
    line-height: 1em;
    transform: translate(-50%,-50%);
    opacity:0;
    transition: all 0.2s ease-out;
}
.lightbox-img-overlay:hover,
.lightbox-img-overlay:focus-visible,
.lightbox-img-overlay:hover:before,
.lightbox-img-overlay:focus-visible:before {
    opacity:0.7;
}
#primary .lightbox-link,
#primary .lightbox-link:hover,
#primary .lightbox-link:focus,
#primary .lightbox-link:focus-visible {
    border: none;
}
.bg-image-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}
button.lb-prev, button.lb-next {
    height: 4rem;
    cursor: pointer;
    display: block;
    width: 4rem;
    background-color: var(--white);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}
.lb-prev {
    left:0;
}
.lb-next{
     right:0;
 }
.lb-prev::before {
    content: '\000AB';
}
.lb-next::before {
content: '\000BB';
}
.lb-nav button:hover,
.lb-nav button:focus-visible {
    filter: invert(100%);
}
.lb-data .lb-close:focus-visible {
    outline: 2px solid var(--white);
    opacity: 1;
}
.lb-data .lb-close {
    width: 1rem;
    height: 1rem;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: var(--dgray);
}
.author-page-header {
    background-color: var(--white);
}

/* Zoomed elements */
body[data-current-zoom="3"] .page-wrapper,
body[data-current-zoom="4"] .page-wrapper,
body[data-current-zoom="5"] .page-wrapper,
body[data-current-zoom="6"] .page-wrapper,
body[data-current-zoom="7"] .page-wrapper,
body[data-current-zoom="8"] .page-wrapper {
    display: block;
    width: unset;
}
body[data-current-zoom="3"] .page-wrapper #secondary,
body[data-current-zoom="4"] .page-wrapper #secondary,
body[data-current-zoom="5"] .page-wrapper #secondary,
body[data-current-zoom="6"] .page-wrapper #secondary,
body[data-current-zoom="7"] .page-wrapper #secondary,
body[data-current-zoom="8"] .page-wrapper #secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    width: unset;
    gap: 2rem;
    padding: 0 1em;
    margin-left: unset;
}
body[data-current-zoom="3"] #secondary .widget,
body[data-current-zoom="4"] #secondary .widget,
body[data-current-zoom="5"] #secondary .widget,
body[data-current-zoom="6"] #secondary .widget,
body[data-current-zoom="7"] #secondary .widget,
body[data-current-zoom="8"] #secondary .widget {
    min-width: calc(50% - 1rem);
}
body[data-current-zoom="3"] .page-wrapper #primary,
body[data-current-zoom="4"] .page-wrapper #primary,
body[data-current-zoom="5"] .page-wrapper #primary,
body[data-current-zoom="6"] .page-wrapper #primary,
body[data-current-zoom="7"] .page-wrapper #primary,
body[data-current-zoom="8"] .page-wrapper #primary {
    padding-left: 1em;
    padding-right: 1em;
}
