@font-face {
  font-family: 'HerStory Brands';
  src: url('brands.woff2') format('woff2');
  font-display: block;
}

body.herstory {
  --hs-rose: #d5577d;
  --hs-plum: #62293a;
  --hs-ink: #444;
  --hs-container: 1140px;
  --wp--style--global--content-size: 1110px;
  --wp--style--global--wide-size: 1240px;
  --wp--preset--font-family--manrope: 'PT Serif', Georgia, serif;
  color: var(--hs-ink);
  background: #fff;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}

.herstory h1, .herstory h2, .herstory h3, .herstory h4 {
  font-family: inherit;
  letter-spacing: normal;
}

.herstory :is(a, button):focus-visible {
  outline: 2px solid var(--hs-plum);
  outline-offset: 4px;
}

.herstory a { color: var(--hs-rose); }
.herstory .wp-element-button {
  color: #fff;
  background: var(--hs-rose);
  border: 2px solid var(--hs-rose);
  border-radius: 5px;
  font: 700 16px/1.5 'PT Serif', Georgia, serif;
  padding: 6px 12px;
  text-decoration: none;
}
.herstory .wp-element-button:hover { color: var(--hs-rose); background: #fff; }

.herstory > .wp-site-blocks > header > .wp-block-group { padding-inline: 0; }
.herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) auto;
  column-gap: 0;
  padding: 0 10px 0 0 !important;
  margin: 0;
  max-width: none;
  min-height: 15vh;
}
.herstory-logo {
  display: block;
  width: min(200px, calc(100% - 20px));
  justify-self: center;
  margin-top: 22px;
}
.herstory-logo img { display: block; width: 100%; height: auto; }
.herstory > .wp-site-blocks > header nav.wp-block-navigation { justify-content: flex-start; padding-inline-start: 15px; }
.herstory > .wp-site-blocks > header .wp-block-navigation__container {
  gap: 0;
  justify-content: flex-start;
}
.herstory > .wp-site-blocks > header .wp-block-navigation-item__content {
  color: var(--hs-plum);
  display: block;
  text-decoration: none;
}
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a {
  position: relative;
  margin: 10px 10px 0;
  padding: 10px 20px;
  font-weight: 700;
  white-space: nowrap;
}
.herstory > .wp-site-blocks > header .wp-block-navigation-item__content:hover { color: var(--hs-rose); }
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current=page],
.herstory.blog > .wp-site-blocks > header a[href="/blog"],
.herstory.single-post > .wp-site-blocks > header a[href="/blog"],
.herstory:is(.herstory-offer-list,.herstory-offer-single) > .wp-site-blocks > header a[href="/oferta"],
.herstory:is(.herstory-event-list,.herstory-event-single) > .wp-site-blocks > header a[href="/wydarzenia"] { color: var(--hs-rose); }
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current=page]::before,
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current=page]::after {
  position: absolute;
  width: 60%;
  height: 60%;
  content: '';
  pointer-events: none;
}
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current=page]::before {
  inset: 0 auto auto 0;
  border-top: 1px solid var(--hs-rose);
  border-left: 1px solid var(--hs-rose);
}
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current=page]::after {
  inset: auto 0 0 auto;
  border-bottom: 1px solid var(--hs-rose);
  border-right: 1px solid var(--hs-rose);
}
.herstory > .wp-site-blocks > header .wp-block-navigation__submenu-container {
  min-width: min(340px, 88vw);
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
}
.herstory > .wp-site-blocks > header .wp-block-navigation__submenu-container a {
  white-space: normal;
  padding: 8px 14px;
  font-size: 14px;
}
.herstory-social { display: flex; align-items: center; justify-content: flex-end; }
.herstory-social a {
  padding: 10px 5px;
  font: 22px/1 'HerStory Brands';
  color: var(--hs-plum);
  text-decoration: none;
}
.herstory-facebook::before { content: '\f082'; }
.herstory-instagram::before { content: '\f16d'; }

.herstory .wp-site-blocks > main { margin-block-start: 0 !important; }
.herstory .wp-site-blocks > main > .wp-block-group.alignfull { padding-block: 0 !important; }
.herstory .wp-site-blocks > main > .wp-block-group { margin-block-start: 0; }
.herstory :is(main > .wp-block-post-title,main > .wp-block-group > .wp-block-post-title,.herstory-section-title) {
  color: var(--hs-rose);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.6;
  padding: 30px 15px;
  margin: 0 auto;
  text-align: center;
}

.herstory.home.page .entry-content { padding: 0 15px; }
.herstory.home.page .entry-content > .wp-block-columns {
  width: 100%;
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 30px 15px;
  gap: 0;
  align-items: center !important;
}
.herstory.home.page .entry-content > .wp-block-columns > .wp-block-column {
  min-width: 0;
  align-self: center;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type {
  width: 100%;
  max-width: 1240px;
  margin: 20px auto;
  padding: 0;
  border: 1px solid #ccc;
  border-top: 0;
  box-shadow: 0 1px 3px #ccc;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column:first-child {
  text-align: center;
  color: var(--hs-ink);
  font-style: italic;
  font-weight: 500;
  padding: 0 15px;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type p + p { margin-top: 1.8em; }
.herstory.home.page .entry-content > .wp-block-columns:first-of-type h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  margin: 12px 0 8px;
  color: var(--hs-plum);
}
.herstory.home.page .entry-content > .wp-block-columns .wp-block-buttons {
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
  margin: 0;
}
.herstory.home.page .entry-content > .wp-block-columns .wp-block-button__link {
  font-size: 22px;
  font-style: inherit;
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
  padding: 10px 15px;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type .wp-block-buttons { padding: 18px 10px; }
.herstory.home.page .entry-content > .wp-block-columns .wp-block-image { margin: 0 auto; }
.herstory.home.page .entry-content > .wp-block-columns:first-of-type figure,
.herstory.home.page .entry-content > .wp-block-columns:first-of-type img { display: block; width: 100%; height: auto; border-radius: 0; }
.herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) figure {
  width: 90%;
  max-width: 350px;
}
.herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 65px;
}
.herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin: 0 50px 1em;
}
.herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) h2 {
  color: #777;
  letter-spacing: 2px;
  font-size: 26px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 20px;
}
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(3) .wp-block-button__link,
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) .wp-block-button + .wp-block-button .wp-block-button__link {
  color: var(--hs-rose);
  background: #fff;
}
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) { flex-direction: column-reverse; }
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) > .wp-block-column { width: 100%; }
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) figure { width: auto; max-width: none; margin: 0 30px 20px; }
.herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) img { height: 250px; }
.herstory.home.page .entry-content > .wp-block-heading { text-align: center; color: var(--hs-rose); font-size: 28px; }

.herstory :is(.entry-content,.wp-block-post-content) { font-size: 16px; }
.herstory .wp-block-post-template .wp-block-post-title a { color: var(--hs-rose); text-decoration: none; }
.herstory :is(.home .entry-content,.herstory-offer-list .entry-content) .wp-block-post-title { font-weight: 400; }
.herstory.blog .wp-block-query,
.herstory.home.page .entry-content > .wp-block-query { width: 100%; max-width: none; padding-inline: 15px; box-sizing: border-box; }
.herstory.blog .wp-block-query .wp-block-post-template,
.herstory.home.page .entry-content > .wp-block-query .wp-block-post-template {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.herstory :is(.wp-block-query,.herstory-home-blog) .wp-block-post-template > li { min-width: 0; }
.herstory.blog .wp-block-query .wp-block-post-template > li,
.herstory.home.page .entry-content > .wp-block-query .wp-block-post-template > li {
  flex: 1 0 calc(25% - 11px);
  max-width: 31%;
  margin: 20px 0 20px 2%;
}
.herstory.blog .wp-block-query .wp-block-post-template .wp-block-post-featured-image,
.herstory.home.page .wp-block-query .wp-block-post-template .wp-block-post-featured-image { margin: 0; overflow: hidden; border: 1px solid #ccc; }
.herstory.blog .wp-block-query .wp-block-post-template .wp-block-post-featured-image img,
.herstory.home.page .wp-block-query .wp-block-post-template .wp-block-post-featured-image img {
  display: block; width: 100%; height: 300px; object-fit: cover;
}
.herstory.blog .wp-block-query .wp-block-post-template .wp-block-post-title,
.herstory.home.page .wp-block-query .wp-block-post-template .wp-block-post-title {
  display: grid;
  place-items: center;
  min-height: 70px;
  color: var(--hs-rose);
  font-size: 24px !important;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}
.herstory .wp-block-post-template :is(.wp-block-post-excerpt,.heritage-summary) {
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  margin: 0;
}
.herstory :is(.wp-block-post-date,.heritage-date) { color: #777; font-size: 12px !important; text-align: center; margin: 10px auto !important; }
.herstory :is(.wp-block-post-date,.heritage-date) a { color: inherit; text-decoration: none; }
.herstory .heritage-category { color: var(--hs-plum); text-align: center; text-transform: uppercase; font-size: 11px; letter-spacing: 2px; margin: 20px 0 0; }
.herstory.blog :is(nav[aria-label="Kategorie bloga"],nav[aria-label="Strony bloga"]) { text-align: center; }
.herstory.blog nav[aria-label="Kategorie bloga"] a { color: var(--hs-ink); padding-inline: 8px; text-decoration: none; }
.herstory.blog nav[aria-label="Kategorie bloga"] a[aria-current=page] { color: var(--hs-rose); }
.herstory.blog nav[aria-label="Strony bloga"] ul { padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; }

.herstory.single-post .wp-block-post-featured-image.herstory-article-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: none;
  text-align: center;
  margin: 0 auto;
  padding: 30px 15px 25px;
}
.herstory.single-post .herstory-article-cover {
  clip-path: inset(0);
}
.herstory.single-post .herstory-article-cover img.herstory-article-backdrop {
  position: absolute;
  inset: -10px;
  z-index: -1;
  width: calc(100% + 20px) !important;
  height: calc(100% + 20px) !important;
  max-width: none;
  max-height: none;
  object-fit: cover !important;
  filter: blur(5px) grayscale(80%);
  pointer-events: none;
}
@media (min-width: 993px) and (prefers-reduced-motion: no-preference) {
  .herstory.single-post .herstory-article-cover img.herstory-article-backdrop {
    position: fixed;
    height: calc(100vh + 20px) !important;
    object-position: center top;
  }
}
.herstory.single-post .herstory-article-cover img:not(.herstory-article-backdrop) {
  display: block;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  max-height: 560px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 15px 1px #222;
}
.herstory.single-post .entry-content { text-align: justify; }
.herstory.single-post .entry-content img { display: block; height: auto; max-width: 100%; margin-inline: auto; }
.herstory .herstory-intro { font-weight: 700; font-size: 18px; text-align: justify; padding: 28px 0 10px; border-bottom: 1px dotted #ddd; }

.herstory.herstory-offer-list .entry-content > .wp-block-group.is-layout-grid {
  display: block;
  max-width: var(--hs-container);
  padding-inline: 15px;
}
.herstory.herstory-offer-list .entry-content > .wp-block-group.is-layout-grid > .wp-block-group {
  position: relative;
  box-shadow: 0 0 3px #aaa;
  border-radius: 5px;
  margin: 15px 0;
  padding: 10px;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 10px;
  align-items: center;
  text-align: center;
}
.herstory.herstory-offer-list .entry-content > .wp-block-group.is-layout-grid > .wp-block-group:nth-child(even) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid > .wp-block-group > * { margin: 0; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid > .wp-block-group > figure { grid-area: 1/1/-1/2; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid > .wp-block-group:nth-child(even) > figure { grid-column: 2; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid figure img { width: 100%; height: 300px; display: block; object-fit: cover; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid h2 { align-self: end; color: var(--hs-rose); font-size: 20px; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid p { color: #777; font-size: 13px; padding: 2px 5px; }
.herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid .wp-block-buttons { align-self: start; justify-content: center; }

.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 30px 15px;
  text-align: center;
  color: #fff;
}
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child > .wp-block-column:first-child {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0006;
}
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child figure,
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child .wp-block-buttons { justify-content: center; }
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child p { font-size: 18px; }
.herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > p { text-align: justify; }
.herstory.herstory-event-list .entry-content > .wp-block-group.is-layout-grid > .wp-block-group {
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 3px #aaa;
}
.herstory.herstory-event-list .entry-content > .wp-block-group.is-layout-grid img { display: block; width: 100%; height: 250px; object-fit: cover; }
.herstory.herstory-event-list .entry-content > .wp-block-group h2 { color: var(--hs-rose); font-size: 22px; text-align: center; }
.herstory.herstory-event-list .entry-content > .wp-block-buttons { justify-content: center; }
.herstory.herstory-about .entry-content > .wp-block-columns > .wp-block-column:first-child { flex-basis: 66.67%; }
.herstory.herstory-about .entry-content > .wp-block-columns > .wp-block-column:nth-child(2) { flex-basis: 33.33%; }
.herstory.herstory-about .entry-content :is(p,li) { text-align: justify; }
.herstory.herstory-about .entry-content h2 { color: var(--hs-rose); }
.herstory.herstory-contact .entry-content > .wp-block-columns { align-items: center !important; }
.herstory.herstory-contact .entry-content h2 { color: var(--hs-plum); font-size: 24px; }

.herstory .wp-site-blocks > footer {
  background: #fafafa;
  box-shadow: 0 0 1px 1px #ccc;
  color: #666;
  margin-top: 50px;
}
.herstory .wp-site-blocks > footer a { color: var(--hs-rose); text-decoration: none; }
.herstory .wp-site-blocks > footer > .wp-block-group {
  padding-block: 20px !important;
  padding-inline: 16px;

  @media (min-width: 992px) {
    padding-inline: 24px;
  }
}

@media (max-width: 1500px) {
  .herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a { padding-inline: 10px; }
}
@media (max-width: 1260px) {
  .herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a { padding-inline: 4px; margin-inline: 6px; }
}
@media (max-width: 1199px) { body.herstory { --hs-container: 960px; } }
@media (max-width: 991px) {
  body.herstory { --hs-container: 720px; }
  .herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 0 10px !important;
  }
  .herstory > .wp-site-blocks > header nav.wp-block-navigation { padding-inline-start: 0; }
  .herstory > .wp-site-blocks > header .wp-block-navigation__container { justify-content: center; }
  .herstory-logo { margin-top: 10px; }
  .herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > .wp-block-columns:first-child { min-height: 260px; }
}
@media (max-width: 930px) {
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type { flex-direction: column-reverse; }
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column { width: 100%; }
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column:first-child { padding-block: 18px 8px; }
}
@media (max-width: 781px) {
  body.herstory { --hs-container: 540px; }
  .herstory.home.page .entry-content > .wp-block-columns { padding: 20px 0; }
  .herstory.home.page .entry-content > .wp-block-columns:nth-of-type(3) { flex-direction: column-reverse; }
  .herstory.home.page .entry-content > .wp-block-columns > .wp-block-column { width: 100%; }
  .herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) :is(figure,img) { width: 100%; max-width: none; border-radius: 5px; }
  .herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) img { height: 350px; }
  .herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) p { margin: 10px 0; }
  .herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) h2 { margin-top: 20px; }
  .herstory.home.page .entry-content > .wp-block-columns:nth-of-type(5) figure { margin-inline: 0; }
  .herstory.blog .wp-block-query .wp-block-post-template > li,
  .herstory.home.page .entry-content > .wp-block-query .wp-block-post-template > li { flex-basis: 43%; max-width: 48%; }
  .herstory.herstory-offer-list .entry-content > .wp-block-group.is-layout-grid > .wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .herstory.herstory-offer-list .entry-content .wp-block-group.is-layout-grid > .wp-block-group > figure { width: 100%; }
}
@media (max-width: 600px) {
  .herstory.blog .wp-block-query .wp-block-post-template > li,
  .herstory.home.page .entry-content > .wp-block-query .wp-block-post-template > li { flex-basis: 100%; max-width: 100%; margin-inline: 0; }
}
.herstory.blog .wp-block-query .wp-block-post-template > li > .wp-block-group {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.herstory.blog .wp-block-query .wp-block-post-template .heritage-date { order: 2; }
.herstory.blog .wp-block-query .wp-block-post-template .heritage-summary { order: 3; }
.herstory.single-post > .wp-site-blocks > main > .wp-block-group > .wp-block-group.has-small-font-size { display: none; }
/*.herstory.single-post > .wp-site-blocks > main > .wp-block-group > .wp-block-query { display: none; }*/
.herstory.single-post .herstory-intro { max-width: 1110px; margin-inline: auto; }
.herstory :is(.heritage-date,.wp-block-post-date)::before {
  content: '';
  display: block;
  width: 10%;
  margin: 0 auto 5px;
  border-top: 1px solid #ccc;
}

@media (min-width: 992px) {
  .herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
    grid-template-columns: calc(100% / 6) minmax(0, 1fr) auto;
  }
  .herstory > .wp-site-blocks > header .herstory-logo {
    width: min(200px, calc(100% - 30px));
    margin-block-start: 22px;
  }
}
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.herstory > .wp-site-blocks > header .wp-block-navigation__container > .current-menu-item > a,
.herstory.home.page > .wp-site-blocks > header .wp-block-navigation-item > a[href="/"] { color: var(--hs-rose); }
.herstory.home.page > .wp-site-blocks > header .wp-block-navigation-item > a[href="/"]::before,
.herstory.home.page > .wp-site-blocks > header .wp-block-navigation-item > a[href="/"]::after {
  position: absolute;
  width: 60%;
  height: 60%;
  content: '';
  pointer-events: none;
}
.herstory.home.page > .wp-site-blocks > header .wp-block-navigation-item > a[href="/"]::before {
  inset: 0 auto auto 0;
  border-top: 1px solid var(--hs-rose);
  border-left: 1px solid var(--hs-rose);
}
.herstory.home.page > .wp-site-blocks > header .wp-block-navigation-item > a[href="/"]::after {
  inset: auto 0 0 auto;
  border-bottom: 1px solid var(--hs-rose);
  border-right: 1px solid var(--hs-rose);
}
@media (min-width: 931px) {
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type h1 { line-height: 1.1; }
.herstory.home.page .entry-content > .wp-block-columns:first-of-type .wp-block-buttons { padding-top: 20px; }

.herstory .herstory-page-cover-title {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 auto 12px;
  text-shadow: 0 1px 4px #000;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
    height: 15vh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column {
  box-sizing: border-box;
  margin: 0 !important;
}
.herstory.home.page .entry-content > .wp-block-columns:first-of-type h1 { margin-top: 9px; }
.herstory.home.page .entry-content > .wp-block-columns:first-of-type .wp-block-buttons { padding-top: 18px; }

@media (max-width: 930px) {
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column:first-child { grid-row: 2; }
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type > .wp-block-column:last-child { grid-row: 1; }
}
@media (max-width: 630px) {
  .herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
  }
  .herstory > .wp-site-blocks > header .herstory-logo { width: 150px; max-width: 100%; justify-self: center; margin: 22px 0 0; }
  .herstory > .wp-site-blocks > header nav.wp-block-navigation { order: 0; width: 100%; }
  .herstory > .wp-site-blocks > header .wp-block-navigation__container { width: 100%; flex-wrap: wrap; }
  .herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item { justify-content: center; flex: 0 0 30%; }
  .herstory > .wp-site-blocks > header .wp-block-navigation__container > .wp-block-navigation-item > a { margin: 4px 3px 0; padding: 10px 4px; }
  .herstory > .wp-site-blocks > header .wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
    left: 0;
    right: auto;
    transform: none;
  }
  .herstory-social a { font-size: 22px; }
  .herstory.home.page .entry-content > .wp-block-columns:first-of-type h1 { font-size: 28px; }
}
.herstory .herstory-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
}
.herstory .herstory-section-title::before,
.herstory .herstory-section-title::after {
  content: '';
  flex: 0 1 80px;
  height: 3px;
  border-block: 1px solid var(--hs-rose);
  opacity: .6;
}
.herstory.herstory-contact .entry-content > .wp-block-columns {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 380px;
  justify-content: center;
  padding: 35px 15px;
  text-align: center;
}
.herstory.herstory-contact .entry-content > .wp-block-columns > .wp-block-column:first-child { max-width: 850px; }
.herstory.herstory-contact .entry-content > .wp-block-columns > .wp-block-column:last-child {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.herstory.herstory-contact .entry-content > .wp-block-columns::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff9;
}
.herstory.herstory-contact .entry-content > .wp-block-columns :is(figure,img) {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.herstory.herstory-contact .entry-content .wp-block-buttons { justify-content: center; }
.herstory.herstory-contact .entry-content .wp-block-button__link {
  border-color: var(--hs-plum);
  background-color: var(--hs-plum);
}
.herstory.herstory-contact .entry-content .wp-block-button__link:hover {
  color: var(--hs-plum);
  background-color: #fff;
}
@media (max-width: 600px) {
  .herstory.herstory-contact .entry-content > .wp-block-columns { min-height: 320px; }
}

/* RWD-003: poprawa czytelności tekstu na małych ekranach */
@media (max-width: 630px) {
  .herstory.home.page .entry-content > .wp-block-columns:not(:first-of-type) p,
  .herstory .wp-block-post-template :is(.wp-block-post-excerpt,.heritage-summary),
  .herstory.single-post .entry-content,
  .herstory .herstory-intro,
  .herstory:is(.herstory-offer-single,.herstory-event-single) .entry-content > p,
  .herstory.herstory-about .entry-content :is(p,li) {
    text-align: left;
  }
}

/* RWD-004: optymalizacja układu na dużych ekranach */
@media (min-width: 1501px) {

  .herstory > .wp-site-blocks > header > .wp-block-group > .alignwide {
    max-width: 1600px;
    margin-inline: auto;
    height: auto;
    min-height: 120px;
  }

  .herstory.blog .wp-block-query,
  .herstory.home.page .entry-content > .wp-block-query {
    max-width: 1440px;
    margin-inline: auto;
  }

  .herstory.single-post .entry-content,
  .herstory.single-post .herstory-intro {
    max-width: 900px;
    margin-inline: auto;
  }

  .herstory.single-post .wp-block-post-featured-image.herstory-article-cover,
  .herstory.herstory-contact .entry-content > .wp-block-columns {
    max-width: 1440px;
  }
}

/* FUNC-002: wyrównanie dat w sekcji Więcej wpisów */
.herstory.single-post .wp-block-query .wp-block-post-date {
  margin: 0 0 0 auto !important;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}