/* Hetman – pojedynczy wpis PRO */
html:has(.hetman-single-page),
body.hetman-custom-single-active {
  margin: 0 !important;
  min-height: 100%;
  background: #04100b !important;
}

body.hetman-custom-single-active {
  overflow-x: clip;
}

body.hetman-custom-single-active #wpadminbar { z-index: 2147483647; }
body.admin-bar .hetman-single-page #siteHeader { top: 32px; }

.hetman-single-page,
.hetman-single-page > header,
.hetman-single-page > main,
.hetman-single-page > footer {
  visibility: visible !important;
  opacity: 1 !important;
}

.hetman-single-page {
  --hetman-single-gutter: clamp(14px, 3vw, 58px);
  --hetman-single-max: 1580px;
  --hetman-reading-max: 980px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 8%, rgba(11,138,83,.17), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.045), transparent 24%),
    linear-gradient(180deg, rgba(3,13,8,.92), rgba(3,10,7,.99));
}

.hetman-single-page > header,
.hetman-single-page > main,
.hetman-single-page > footer { position: relative; z-index: 1; }

.hetman-single-page .container {
  width: min(calc(100% - (var(--hetman-single-gutter) * 2)), var(--hetman-single-max)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.hetman-single-page #siteHeader {
  position: sticky !important;
  top: 0;
}

.hetman-single-main { min-height: 60vh; }

.hetman-post-hero {
  position: relative;
  padding: clamp(26px, 4vw, 40px) 0 0;
}

.hetman-post-hero-container { padding-block: 0; }

.hetman-post-hero-stage {
  width: min(100%, 1520px);
  margin-inline: auto;
  position: relative;
}

.hetman-post-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  isolation: isolate;
}

.hetman-post-hero-figure {
  position: relative;
  width: min(100%, var(--hetman-image-render-max, 1520px));
  max-width: 1520px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 26px);
}
.hetman-post-hero-figure.is-fit-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
}
.hetman-post-hero-figure.is-fit-contain {
  aspect-ratio: var(--hetman-image-ratio, 16 / 10);
}

.hetman-post-hero-media::before,
.hetman-post-hero-media::after {
  content: none;
}

.hetman-post-hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-position: center top;
  filter: saturate(.99) contrast(1.02);
  image-rendering: auto;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  cursor: zoom-in;
}
.hetman-post-hero-figure.is-fit-cover .hetman-post-hero-photo { object-fit: cover; }
.hetman-post-hero-figure.is-fit-contain .hetman-post-hero-photo { object-fit: contain; }
.hetman-post-hero-figure.is-quality-low .hetman-post-hero-photo { filter: none; }
.hetman-post-hero-figure.is-shape-portrait .hetman-post-hero-copy,
.hetman-post-hero-figure.is-shape-square .hetman-post-hero-copy { max-width: min(82%, 620px); }
.hetman-post-hero-figure.is-quality-low h1 { font-size: clamp(1.8rem, 3.6vw, 3.6rem); }

.hetman-post-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,10,7,.01) 0%, rgba(3,10,7,.05) 42%, rgba(3,10,7,.52) 100%);
  border-radius: inherit;
}

.hetman-post-date-badge {
  position: absolute;
  top: clamp(16px, 1.8vw, 22px);
  right: clamp(16px, 1.8vw, 22px);
  z-index: 3;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(3,12,7,.78);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.hetman-post-hero-copy {
  position: absolute;
  left: clamp(24px, 2.2vw, 32px);
  right: clamp(24px, 2.2vw, 32px);
  bottom: clamp(22px, 2.4vw, 30px);
  z-index: 3;
  width: auto;
  max-width: min(760px, calc(100% - 48px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hetman-post-kicker,
.hetman-related-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9eee3;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hetman-post-kicker::before,
.hetman-related-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0b8a53;
  box-shadow: 0 0 0 5px rgba(11,138,83,.12), 0 0 22px rgba(11,138,83,.45);
}

.hetman-post-hero h1 {
  max-width: 1000px;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(2.05rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 950;
  text-wrap: balance;
  text-shadow: 0 14px 28px rgba(0,0,0,.48);
}

.hetman-post-content-section { padding: clamp(34px, 4.2vw, 48px) 0 22px; }
.hetman-post-content-container { width: min(calc(100% - (var(--hetman-single-gutter) * 2)), 1180px) !important; }

.hetman-post-content-card {
  padding: clamp(24px, 4.3vw, 64px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: clamp(20px, 2.5vw, 30px);
  background: rgba(7,18,12,.78);
  box-shadow: 0 22px 52px rgba(0,0,0,.18);
}

.hetman-post-content {
  width: min(100%, var(--hetman-reading-max));
  margin-inline: auto;
  color: #e5f0ea;
  font-size: clamp(1rem, 1.05vw, 1.13rem);
  line-height: 1.82;
}

.hetman-post-content > *:first-child { margin-top: 0; }
.hetman-post-content > *:last-child { margin-bottom: 0; }
.hetman-post-content p { margin: 0 0 1.45em; }
.hetman-post-content h2,
.hetman-post-content h3,
.hetman-post-content h4 {
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hetman-post-content h2 { margin: 2em 0 .75em; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.hetman-post-content h3 { margin: 1.8em 0 .65em; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.hetman-post-content a { color: #71d7a2; text-decoration: underline; text-underline-offset: 3px; }
.hetman-post-content strong { color: #fff; }
.hetman-post-content ul,
.hetman-post-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.hetman-post-content li + li { margin-top: .48em; }
.hetman-post-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid #0b8a53;
  border-radius: 0 18px 18px 0;
  background: rgba(11,138,83,.1);
  color: #f4fbf7;
}

.hetman-post-content figure {
  width: 100%;
  max-width: 100%;
  margin: 2.1em auto;
  text-align: center;
}

.hetman-post-content img,
.hetman-post-content video,
.hetman-post-content iframe {
  max-width: 100%;
  border-radius: 18px;
}

.hetman-post-content img:not(.emoji):not(.avatar) {
  width: auto;
  max-width: min(100%, var(--hetman-content-image-max, 1120px));
  max-height: min(84vh, 980px);
  height: auto;
  display: block;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.hetman-post-content img.is-low-resolution {
  image-rendering: auto;
}

.hetman-post-content p > img:only-child,
.hetman-post-content a > img:only-child,
.hetman-post-content figure img {
  margin-top: .4em;
  margin-bottom: .4em;
}

.hetman-post-content .wp-caption-text,
.hetman-post-content figcaption {
  margin-top: 12px;
  color: #9db3a7;
  font-size: .82rem;
  text-align: center;
}
.hetman-post-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.hetman-post-content th,
.hetman-post-content td { padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); }

.hetman-post-switcher { padding: 16px 0 clamp(36px, 4.2vw, 56px); }
.hetman-post-switcher-grid {
  width: min(calc(100% - (var(--hetman-single-gutter) * 2)), 1180px) !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hetman-post-switcher-grid > :only-child { grid-column: 1 / -1; width: min(100%, 560px); }
.hetman-post-switch--newer:only-child { justify-self: end; }

.hetman-post-switch {
  min-height: 122px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), rgba(7,18,12,.9);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.hetman-post-switch:hover {
  transform: translateY(-4px);
  border-color: rgba(23,183,108,.52);
  background: linear-gradient(180deg, rgba(11,138,83,.16), rgba(255,255,255,.025)), rgba(7,18,12,.94);
}
.hetman-post-switch--newer { justify-content: flex-end; text-align: right; }
.hetman-post-switch-icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #0b8a53;
  box-shadow: 0 12px 28px rgba(11,138,83,.24);
  font-size: 1.72rem;
  font-weight: 950;
}
.hetman-post-switch-copy { min-width: 0; display: grid; gap: 8px; }
.hetman-post-switch-copy small {
  color: #a9c0b3;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hetman-post-switch-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.04rem, 1.45vw, 1.26rem);
  line-height: 1.24;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hetman-related { padding: clamp(34px, 4.5vw, 56px) 0 clamp(54px, 6vw, 84px); border-top: 1px solid rgba(255,255,255,.08); }
.hetman-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.hetman-related-head h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 950;
  text-wrap: balance;
}
.hetman-related-note {
  margin: 10px 0 0;
  color: #b7cbbf;
  font-size: .92rem;
  line-height: 1.55;
  max-width: 720px;
}
.hetman-related-controls { display: flex; gap: 12px; }
.hetman-related-arrow {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 1.75rem !important;
  font-weight: 950;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.hetman-related-arrow:hover:not(:disabled) { transform: translateY(-3px); background: #0b8a53 !important; }
.hetman-related-arrow:disabled { opacity: .32; cursor: default; }

.hetman-related-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
}
.hetman-related-viewport::-webkit-scrollbar { display: none; }
.hetman-related-track { display: flex; gap: 16px; align-items: stretch; }
.hetman-related-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(7,18,12,.92);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
  transition: transform .24s ease, border-color .24s ease;
}
.hetman-related-card:hover { transform: translateY(-5px); border-color: rgba(23,183,108,.42); }
.hetman-related-card.is-current {
  scroll-snap-align: center;
  border-color: rgba(25,194,116,.88);
  box-shadow: 0 0 0 2px rgba(11,138,83,.28), 0 22px 50px rgba(0,0,0,.28);
}
.hetman-related-card.is-current:hover { transform: none; border-color: rgba(25,194,116,1); }
.hetman-related-card.is-current:hover .hetman-related-media img { transform: none; }
.hetman-related-card-link { height: 100%; display: flex; flex-direction: column; color: inherit; }
.hetman-related-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
}
.hetman-related-media::before,
.hetman-related-media::after {
  content: none;
}
.hetman-related-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  image-rendering: auto;
  transition: none;
}
.hetman-related-card.is-fit-cover .hetman-related-media img,
.hetman-related-card.is-fit-contain .hetman-related-media img,
.hetman-related-card.is-quality-low .hetman-related-media img {
  object-fit: contain !important;
  object-position: center center !important;
}
.hetman-related-card.is-fit-cover:hover .hetman-related-media img,
.hetman-related-card.is-fit-contain:hover .hetman-related-media img,
.hetman-related-card.is-quality-low:hover .hetman-related-media img {
  transform: none;
}
.hetman-related-date {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(3,12,7,.78);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hetman-related-current-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #0b8a53;
  color: #fff;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hetman-related-body {
  flex: 1;
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hetman-related-body h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.16;
  letter-spacing: -.04em;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hetman-related-read {
  margin-top: auto;
  color: #b7d9c7;
  font-size: .76rem;
  font-weight: 900;
}
.hetman-related-read b { margin-left: 4px; color: #fff; }

.hetman-single-page .footer-pro { margin-top: 0; }

.hetman-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 28px);
  background: rgba(2,10,6,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hetman-image-lightbox.is-open { display: flex; }
.hetman-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.hetman-image-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  max-height: min(92vh, 980px);
  padding: clamp(12px, 1.8vw, 16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(7,18,12,.96);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.hetman-image-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  font-size: 1.3rem !important;
  font-weight: 900;
  cursor: pointer;
}
.hetman-image-lightbox__close:hover { background: rgba(11,138,83,.9) !important; }
.hetman-image-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.hetman-image-lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 110px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}
.hetman-image-lightbox__figure figcaption {
  color: #d3e5db;
  font-size: .86rem;
  text-align: center;
}


@media (min-width: 1600px) {
  .hetman-related-media { aspect-ratio: 16 / 9.6; }
}

@media (max-width: 1100px) {
  .hetman-related-card { flex-basis: calc((100% - 36px) / 3); }
}

@media (max-width: 782px) {
  body.admin-bar .hetman-single-page #siteHeader { top: 46px; }
}

@media (max-width: 760px) {
  .hetman-single-page { --hetman-single-gutter: clamp(9px, 3vw, 14px); }
  .hetman-single-page #siteHeader { position: relative !important; top: auto !important; }
  .hetman-post-hero { padding-top: 16px; }
  .hetman-post-hero-media {
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }
  .hetman-post-hero-figure { border-radius: 18px; }
  .hetman-post-hero-figure.is-fit-cover { aspect-ratio: 4 / 3; }
  .hetman-post-hero-figure.is-fit-contain { aspect-ratio: var(--hetman-image-ratio, 4 / 3); }
  .hetman-post-hero-photo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .hetman-post-hero-figure.is-quality-low h1 { font-size: clamp(1.42rem, 6.2vw, 1.95rem); }
  .hetman-post-date-badge {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding-inline: 12px;
    font-size: .69rem;
  }
  .hetman-post-hero-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hetman-post-hero h1 { margin-top: 8px; font-size: clamp(1.56rem, 6.9vw, 2.15rem); }
  .hetman-post-content-card { padding: 23px 17px; border-radius: 20px; }
  .hetman-post-content { font-size: .98rem; line-height: 1.72; }
  .hetman-post-content img:not(.emoji):not(.avatar) { max-width: 100%; max-height: min(72vh, 620px); }
  .hetman-post-switcher-grid { grid-template-columns: 1fr; }
  .hetman-post-switcher-grid > :only-child,
  .hetman-post-switch { width: 100%; grid-column: auto; justify-self: stretch; }
  .hetman-post-switch {
    min-height: 116px;
    padding: 18px 16px;
    border-radius: 20px;
  }
  .hetman-post-switch--newer { text-align: left; justify-content: flex-start; }
  .hetman-post-switch--newer .hetman-post-switch-copy { order: 2; }
  .hetman-post-switch--newer .hetman-post-switch-icon { order: 1; }
  .hetman-post-switch-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 1.62rem;
  }
  .hetman-related-head { align-items: center; }
  .hetman-related-head h2 { font-size: clamp(1.5rem, 7vw, 2.05rem); }
  .hetman-related-note { font-size: .85rem; max-width: none; }
  .hetman-related-arrow { width: 52px; height: 52px; border-radius: 16px !important; font-size: 1.35rem !important; }
  .hetman-related-card { flex-basis: calc((100% - 16px) / 2); }
  .hetman-related-current-label { font-size: .56rem; padding-inline: 8px; }
  .hetman-related-media { aspect-ratio: 16 / 10; }
  .hetman-related-track { gap: 16px; }
  .hetman-image-lightbox__dialog { padding: 12px; border-radius: 18px; }
  .hetman-image-lightbox__close { width: 44px; height: 44px; }
}

@media (max-width: 520px) {
  .hetman-related-head { align-items: flex-start; flex-direction: column; }
  .hetman-related-controls { align-self: flex-end; }
  .hetman-related-card { flex-basis: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  .hetman-related-viewport { scroll-behavior: auto; }
  .hetman-post-switch,
  .hetman-related-card,
  .hetman-related-arrow,
  .hetman-related-media img { transition: none !important; }
}

/* Ostateczne nadpisanie tła SG zachowanego w źródłowym shellu. */
html .hetman-page.home-page.hetman-single-page {
  --hetman-page-art: none !important;
  background:
    radial-gradient(circle at 7% 8%, rgba(11,138,83,.17), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.045), transparent 24%),
    linear-gradient(180deg, rgba(3,13,8,.96), rgba(3,10,7,.995)) !important;
}
html .hetman-page.home-page.hetman-single-page::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 8% 4%, rgba(11,138,83,.11), transparent 31%),
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.03), transparent 25%),
    linear-gradient(180deg, rgba(2,9,6,.08), rgba(2,9,6,.42)) !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
html .hetman-page.home-page.hetman-single-page::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
  opacity: .55 !important;
  mask-image: linear-gradient(180deg, #000, transparent 92%) !important;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%) !important;
}


/* HETMAN POST PRO 1.0.3 — bezwarunkowa widoczność pojedynczego wpisu.
   Arkusz źródłowy SG ukrywa .hetman-page podczas bootowania. Pojedynczy wpis
   nie korzysta z tego intro, dlatego zawsze musi być widoczny. */
html .hetman-page.hetman-single-page {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html.hetman-page-booting .hetman-page.hetman-single-page,
html:not(.hetman-content-ready) .hetman-page.hetman-single-page {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Automatyczna mini galeria dla serii co najmniej 3 zdjęć we wpisie. */
.hetman-post-content .hetman-mini-gallery {
  width: min(100%, 1120px);
  margin: clamp(24px, 4vw, 44px) auto;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 14vw, 220px);
  gap: 10px;
  list-style: none;
}

.hetman-post-content .hetman-mini-gallery__item {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: zoom-in;
}

.hetman-post-content .hetman-mini-gallery__item img,
.hetman-post-content .hetman-mini-gallery img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.hetman-post-content .hetman-mini-gallery--count-3 {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, clamp(150px, 14vw, 220px));
}
.hetman-post-content .hetman-mini-gallery--count-3 > .is-featured {
  grid-row: 1 / span 2;
}

.hetman-post-content .hetman-mini-gallery--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hetman-post-content .hetman-mini-gallery--count-4 > .is-featured {
  grid-column: auto;
  grid-row: auto;
}

.hetman-post-content .hetman-mini-gallery--count-5 > .is-featured,
.hetman-post-content .hetman-mini-gallery--count-6 > .is-featured,
.hetman-post-content .hetman-mini-gallery--count-7 > .is-featured,
.hetman-post-content .hetman-mini-gallery--count-8 > .is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.hetman-post-content .hetman-mini-gallery figcaption,
.hetman-post-content .hetman-mini-gallery .wp-element-caption,
.hetman-post-content .hetman-mini-gallery .gallery-caption {
  display: none !important;
}

@media (max-width: 760px) {
  .hetman-post-content .hetman-mini-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 36vw, 180px);
    gap: 8px;
  }

  .hetman-post-content .hetman-mini-gallery--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(170px, 52vw, 260px) clamp(120px, 36vw, 180px);
  }
  .hetman-post-content .hetman-mini-gallery--count-3 > .is-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hetman-post-content .hetman-mini-gallery--count-5 > .is-featured,
  .hetman-post-content .hetman-mini-gallery--count-6 > .is-featured,
  .hetman-post-content .hetman-mini-gallery--count-7 > .is-featured,
  .hetman-post-content .hetman-mini-gallery--count-8 > .is-featured {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
}

@media (max-width: 430px) {
  .hetman-post-content .hetman-mini-gallery {
    grid-auto-rows: clamp(112px, 34vw, 150px);
  }
}
