/* ============================================================
   CHRZESCIJANIE.ORG — MODERN FULL THEME OVERRIDES
   Loaded after CMSMasters + Elementor generated styles.
   ============================================================ */
:root {
  --chr-bg: #FFFAF6;
  --chr-surface: #FFFFFF;
  --chr-surface-soft: #F6F7F4;
  --chr-ink: #1E2523;
  --chr-muted: #68716E;
  --chr-sage: #A8BEBC;
  --chr-sage-dark: #6F918D;
  --chr-green: #244C43;
  --chr-green-deep: #173A32;
  --chr-yellow: #FFCB2F;
  --chr-yellow-dark: #E8AF00;
  --chr-border: rgba(30, 37, 35, .10);
  --chr-shadow: 0 16px 45px rgba(24, 50, 43, .10);
  --chr-shadow-hover: 0 24px 64px rgba(24, 50, 43, .16);
  --chr-radius-sm: 14px;
  --chr-radius: 22px;
  --chr-radius-lg: 30px;
  --chr-transition: .28s cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }
body.chrzescijanie-modern-full { color: var(--chr-ink); }
body.chrzescijanie-modern-full * { box-sizing: border-box; }
body.chrzescijanie-modern-full a,
body.chrzescijanie-modern-full button,
body.chrzescijanie-modern-full img,
body.chrzescijanie-modern-full .elementor-widget-container {
  transition: transform var(--chr-transition), box-shadow var(--chr-transition), border-color var(--chr-transition), background-color var(--chr-transition), color var(--chr-transition), opacity var(--chr-transition);
}
body.chrzescijanie-modern-full ::selection { background: rgba(255,203,47,.55); color: var(--chr-green-deep); }

/* ---------- HEADER ---------- */
body.chrzescijanie-modern-full .cmsmasters_header {
  position: sticky !important;
  top: 0;
  z-index: 9990;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--chr-border) !important;
  box-shadow: 0 6px 26px rgba(24,50,43,.05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}
body.admin-bar.chrzescijanie-modern-full .cmsmasters_header { top: 32px; }
html.chr-scrolled body.chrzescijanie-modern-full .cmsmasters_header { box-shadow: 0 12px 38px rgba(24,50,43,.11) !important; }
body.chrzescijanie-modern-full .cmsmasters-menu__list > li > a span.cmsmasters-menu__item {
  border-radius: 12px !important;
}
@media (min-width: 1025px) {
  body.chrzescijanie-modern-full .cmsmasters-menu__list > li > a span.cmsmasters-menu__item { padding: 11px 14px !important; }
  body.chrzescijanie-modern-full .cmsmasters-menu__list > li:hover > a span.cmsmasters-menu__item,
  body.chrzescijanie-modern-full .cmsmasters-menu__list > li.current-menu-item > a span.cmsmasters-menu__item,
  body.chrzescijanie-modern-full .cmsmasters-menu__list > li.current-menu-ancestor > a span.cmsmasters-menu__item {
    background: #F4F6F4 !important;
    color: var(--chr-green-deep) !important;
  }
  body.chrzescijanie-modern-full .cmsmasters-menu__list ul {
    padding: 10px !important;
    border: 1px solid var(--chr-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--chr-shadow) !important;
    overflow: hidden !important;
  }
  body.chrzescijanie-modern-full .cmsmasters-menu__list ul a span.cmsmasters-menu__item { border-radius: 10px !important; }
}

/* ---------- BUTTONS: VISIBLE CHANGE EVERYWHERE ---------- */
body.chrzescijanie-modern-full .elementor-button,
body.chrzescijanie-modern-full a.elementor-button,
body.chrzescijanie-modern-full .cmsmasters-button,
body.chrzescijanie-modern-full .wp-element-button,
body.chrzescijanie-modern-full .button,
body.chrzescijanie-modern-full a.button,
body.chrzescijanie-modern-full button:not(.swiper-pagination-bullet):not([class*="close"]),
body.chrzescijanie-modern-full input[type="submit"],
body.chrzescijanie-modern-full .forminator-button,
body.chrzescijanie-modern-full .give-btn,
body.chrzescijanie-modern-full .tribe-common-c-btn {
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(24,50,43,.09) !important;
}
body.chrzescijanie-modern-full .elementor-button,
body.chrzescijanie-modern-full a.elementor-button,
body.chrzescijanie-modern-full .cmsmasters-button {
  overflow: hidden !important;
}
body.chrzescijanie-modern-full .elementor-button:hover,
body.chrzescijanie-modern-full a.elementor-button:hover,
body.chrzescijanie-modern-full .cmsmasters-button:hover,
body.chrzescijanie-modern-full .wp-element-button:hover,
body.chrzescijanie-modern-full .button:hover,
body.chrzescijanie-modern-full a.button:hover,
body.chrzescijanie-modern-full button[type="submit"]:hover,
body.chrzescijanie-modern-full input[type="submit"]:hover,
body.chrzescijanie-modern-full .forminator-button:hover,
body.chrzescijanie-modern-full .give-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--chr-shadow) !important;
}

/* Current yellow CTAs keep their color but look modern */
body.chrzescijanie-modern-full .elementor-button[style*="background"],
body.chrzescijanie-modern-full .elementor-widget-button .elementor-button {
  border: 1px solid rgba(20,30,27,.06) !important;
}

/* ---------- IMAGES / GRAPHICS ---------- */
body.chrzescijanie-modern-full .cmsmasters-main .elementor-widget-image img:not(.emoji),
body.chrzescijanie-modern-full .cmsmasters-main .elementor-widget-image-box img,
body.chrzescijanie-modern-full .cmsmasters-main .wp-block-image img,
body.chrzescijanie-modern-full .cmsmasters-main figure img:not(.emoji),
body.chrzescijanie-modern-full .cmsmasters-main .wp-post-image,
body.chrzescijanie-modern-full .cmsmasters-main .attachment-post-thumbnail {
  border-radius: var(--chr-radius) !important;
}
body.chrzescijanie-modern-full .cmsmasters-main .elementor-widget-image a,
body.chrzescijanie-modern-full .cmsmasters-main .wp-block-image,
body.chrzescijanie-modern-full .cmsmasters-main figure {
  border-radius: var(--chr-radius) !important;
}
body.chrzescijanie-modern-full .cmsmasters-main .elementor-widget-image a:hover img,
body.chrzescijanie-modern-full .cmsmasters-main .wp-block-image a:hover img {
  transform: translateY(-3px) scale(1.008);
  box-shadow: var(--chr-shadow);
}

/* ---------- HOME: HERO ---------- */
body.home.chrzescijanie-modern-full .chr-modern-hero {
  width: calc(100% - 36px) !important;
  max-width: 1740px !important;
  margin: 18px auto 34px !important;
  border-radius: var(--chr-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--chr-shadow) !important;
}
body.home.chrzescijanie-modern-full .chr-modern-hero .elementor-background-overlay,
body.home.chrzescijanie-modern-full .chr-modern-hero::before,
body.home.chrzescijanie-modern-full .chr-modern-hero::after { border-radius: inherit !important; }
body.home.chrzescijanie-modern-full .chr-modern-hero .elementor-button { border-radius: 16px !important; }

/* ---------- HOME: MAPA / ARTYKUŁY / FILMY ---------- */
body.home.chrzescijanie-modern-full .chr-feature-card {
  position: relative !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  isolation: isolate;
  box-shadow: 0 14px 36px rgba(24,50,43,.10) !important;
  transform: translateZ(0);
}
body.home.chrzescijanie-modern-full .chr-feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--chr-shadow-hover) !important;
}
body.home.chrzescijanie-modern-full .chr-feature-card img { border-radius: 28px !important; }
body.home.chrzescijanie-modern-full .chr-feature-card .elementor-widget-container,
body.home.chrzescijanie-modern-full .chr-feature-card .elementor-widget-wrap,
body.home.chrzescijanie-modern-full .chr-feature-card .e-con-inner { border-radius: inherit; }
body.home.chrzescijanie-modern-full .chr-feature-card h2,
body.home.chrzescijanie-modern-full .chr-feature-card h3,
body.home.chrzescijanie-modern-full .chr-feature-card .elementor-heading-title {
  text-wrap: balance;
}
body.home.chrzescijanie-modern-full .chr-feature-card a { position: relative; z-index: 2; }

/* Older Elementor sections often use rectangular inner color panels. Round those too. */
body.home.chrzescijanie-modern-full .chr-feature-card [class*="elementor-element"] > .elementor-widget-container {
  border-radius: 18px !important;
}

/* ---------- HOME: MISSION ---------- */
body.home.chrzescijanie-modern-full .chr-mission-section {
  width: calc(100% - 36px) !important;
  max-width: 1540px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: var(--chr-radius-lg) !important;
  overflow: hidden !important;
  background: var(--chr-bg) !important;
  box-shadow: 0 12px 34px rgba(24,50,43,.07) !important;
}
body.home.chrzescijanie-modern-full .chr-mission-section img,
body.home.chrzescijanie-modern-full .chr-mission-section .elementor-widget-image img {
  border-radius: 26px !important;
}
body.home.chrzescijanie-modern-full .chr-mission-section .elementor-button { border-radius: 16px !important; }

/* ---------- COMMON CARDS / LISTS ---------- */
body.chrzescijanie-modern-full .cmsmasters-archive-post__outer,
body.chrzescijanie-modern-full .elementor-post,
body.chrzescijanie-modern-full article[class*="cmsmasters-blog"],
body.chrzescijanie-modern-full .tribe-events .tribe-events-calendar-list__event-row,
body.chrzescijanie-modern-full .woocommerce ul.products li.product,
body.chrzescijanie-modern-full .give-form-wrap {
  border-radius: var(--chr-radius) !important;
  overflow: hidden !important;
  border: 1px solid var(--chr-border) !important;
  box-shadow: 0 8px 28px rgba(24,50,43,.07) !important;
  background: #fff !important;
}
body.chrzescijanie-modern-full .cmsmasters-archive-post:hover .cmsmasters-archive-post__outer,
body.chrzescijanie-modern-full .elementor-post:hover,
body.chrzescijanie-modern-full article[class*="cmsmasters-blog"]:hover,
body.chrzescijanie-modern-full .woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--chr-shadow) !important;
}
body.chrzescijanie-modern-full .cmsmasters-archive-post-media img,
body.chrzescijanie-modern-full .elementor-post__thumbnail img,
body.chrzescijanie-modern-full .woocommerce ul.products li.product img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
body.chrzescijanie-modern-full .cmsmasters-archive-post:hover .cmsmasters-archive-post-media img,
body.chrzescijanie-modern-full .elementor-post:hover .elementor-post__thumbnail img,
body.chrzescijanie-modern-full .woocommerce ul.products li.product:hover img { transform: scale(1.025); }

/* ---------- SINGLE ARTICLES: #FFFAF6 ---------- */
body.single-post.chrzescijanie-modern-full,
body.single-post.chrzescijanie-modern-full .cmsmasters-main,
body.single-post.chrzescijanie-modern-full .cmsmasters-main__outer,
body.single-post.chrzescijanie-modern-full .cmsmasters-main__inner,
body.single-post.chrzescijanie-modern-full .cmsmasters-content,
body.single-post.chrzescijanie-modern-full .cmsmasters-single,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post,
body.single-post.chrzescijanie-modern-full article.post,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-title,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_first,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_second,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content {
  background-color: #FFFAF6 !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-main__outer {
  padding-top: clamp(34px, 5vw, 72px) !important;
  padding-bottom: clamp(50px, 7vw, 96px) !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-title,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_first,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_second,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content {
  width: min(900px, calc(100% - 32px)) !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-title__tag {
  font-size: clamp(40px, 5vw, 70px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-media {
  width: min(1180px, calc(100% - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  box-shadow: var(--chr-shadow) !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-media__inner,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-media img { border-radius: 30px !important; }
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content {
  padding: clamp(26px, 4vw, 48px) !important;
  border-radius: 28px !important;
  color: #29312F !important;
  font-size: clamp(17px, 1.15vw, 19px) !important;
  line-height: 1.82 !important;
  box-shadow: 0 16px 44px rgba(24,50,43,.055) !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content p { margin-bottom: 1.35em !important; }
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content h2 {
  margin-top: 1.65em !important;
  margin-bottom: .62em !important;
  font-size: clamp(30px, 3.4vw, 45px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.025em !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content h3 {
  margin-top: 1.5em !important;
  margin-bottom: .55em !important;
  font-size: clamp(25px, 2.7vw, 34px) !important;
  line-height: 1.18 !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content blockquote,
body.single-post.chrzescijanie-modern-full blockquote.wp-block-quote {
  margin: 2em 0 !important;
  padding: 26px 30px !important;
  border: 0 !important;
  border-left: 5px solid var(--chr-yellow) !important;
  border-radius: 0 20px 20px 0 !important;
  background: #FFF3CE !important;
  color: var(--chr-green-deep) !important;
  box-shadow: 0 8px 24px rgba(24,50,43,.05) !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content img:not(.emoji),
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content figure,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content .wp-block-image,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content .wp-block-cover,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content .wp-block-media-text {
  border-radius: 22px !important;
}
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content img:not(.emoji) {
  background-color: #FFFAF6 !important;
}
/* Gamma-generated images: guarantee correct warm background even when transparent. */
body.single-post.chrzescijanie-modern-full img[src*="gamma.app"],
body.single-post.chrzescijanie-modern-full img[src*="imgproxy.gamma.app"],
body.single-post.chrzescijanie-modern-full a[href*="gamma.app"] img {
  display: block !important;
  background: #FFFAF6 !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 34px rgba(24,50,43,.08) !important;
}
body.single-post.chrzescijanie-modern-full figure:has(img[src*="gamma.app"]),
body.single-post.chrzescijanie-modern-full figure:has(img[src*="imgproxy.gamma.app"]) {
  padding: 12px !important;
  background: #FFFAF6 !important;
  border-radius: 26px !important;
}

/* Full-width Elementor posts can otherwise bypass the article background. */
body.single-post.chrzescijanie-modern-full.elementor-page .cmsmasters-single-post-content,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content > .elementor,
body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content > .elementor > .elementor-element {
  background-color: #FFFAF6 !important;
}

/* ---------- FORMS ---------- */
body.chrzescijanie-modern-full input[type="text"],
body.chrzescijanie-modern-full input[type="email"],
body.chrzescijanie-modern-full input[type="tel"],
body.chrzescijanie-modern-full input[type="url"],
body.chrzescijanie-modern-full input[type="password"],
body.chrzescijanie-modern-full input[type="search"],
body.chrzescijanie-modern-full input[type="number"],
body.chrzescijanie-modern-full textarea,
body.chrzescijanie-modern-full select,
body.chrzescijanie-modern-full .forminator-input,
body.chrzescijanie-modern-full .forminator-textarea {
  border-radius: 14px !important;
  border: 1px solid rgba(36,76,67,.18) !important;
  background: #fff !important;
}
body.chrzescijanie-modern-full input:focus,
body.chrzescijanie-modern-full textarea:focus,
body.chrzescijanie-modern-full select:focus {
  outline: 0 !important;
  border-color: var(--chr-sage-dark) !important;
  box-shadow: 0 0 0 4px rgba(111,145,141,.14) !important;
}

/* ---------- MAPS / VIDEO ---------- */
body.chrzescijanie-modern-full .elementor-widget-google_maps iframe,
body.chrzescijanie-modern-full .chrzescijanie-map iframe,
body.chrzescijanie-modern-full .map-section iframe,
body.chrzescijanie-modern-full iframe[src*="google.com/maps"],
body.chrzescijanie-modern-full iframe[src*="map.thelastreformation.com"],
body.chrzescijanie-modern-full .elementor-video,
body.chrzescijanie-modern-full .elementor-wrapper iframe,
body.chrzescijanie-modern-full .wp-block-embed iframe {
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 34px rgba(24,50,43,.08) !important;
}

/* ---------- FOOTER ---------- */
body.chrzescijanie-modern-full .cmsmasters-footer-widgets,
body.chrzescijanie-modern-full .cmsmasters-footer {
  background: #202322 !important;
}
body.chrzescijanie-modern-full .cmsmasters-footer img,
body.chrzescijanie-modern-full .cmsmasters-footer-widgets img { border-radius: 14px !important; }
body.chrzescijanie-modern-full .cmsmasters-footer [class*="social"] a,
body.chrzescijanie-modern-full .cmsmasters-footer-widgets [class*="social"] a,
body.chrzescijanie-modern-full .cmsmasters-socials a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08) !important;
}
body.chrzescijanie-modern-full .cmsmasters-footer [class*="social"] a:hover,
body.chrzescijanie-modern-full .cmsmasters-footer-widgets [class*="social"] a:hover,
body.chrzescijanie-modern-full .cmsmasters-socials a:hover {
  background: rgba(255,203,47,.20) !important;
  transform: translateY(-3px) !important;
}

/* ---------- SCROLL TO TOP ---------- */
body.chrzescijanie-modern-full .cmsmasters-scroll-top,
body.chrzescijanie-modern-full [class*="scroll-top"] {
  border-radius: 16px 16px 0 0 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  body.home.chrzescijanie-modern-full .chr-modern-hero,
  body.home.chrzescijanie-modern-full .chr-mission-section { width: calc(100% - 24px) !important; }
  body.chrzescijanie-modern-full .cmsmasters-menu { border-radius: 0 0 18px 18px !important; box-shadow: var(--chr-shadow) !important; }
}
@media (max-width: 782px) {
  body.admin-bar.chrzescijanie-modern-full .cmsmasters_header { top: 46px; }
}
@media (max-width: 767px) {
  body.home.chrzescijanie-modern-full .chr-modern-hero { margin-top: 10px !important; border-radius: 22px !important; }
  body.home.chrzescijanie-modern-full .chr-feature-card { border-radius: 22px !important; margin-bottom: 18px !important; }
  body.home.chrzescijanie-modern-full .chr-mission-section { border-radius: 22px !important; }
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-title,
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_first,
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-meta_second,
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content { width: calc(100% - 20px) !important; }
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-content { padding: 22px !important; border-radius: 20px !important; }
  body.single-post.chrzescijanie-modern-full .cmsmasters-single-post-title__tag { font-size: clamp(34px, 10vw, 48px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.chrzescijanie-modern-full *,
  body.chrzescijanie-modern-full *::before,
  body.chrzescijanie-modern-full *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ============================================================
   FINAL FIX — keeps the working modern redesign and fixes only
   desktop header/menu + Gamma right-side background.
   ============================================================ */

/* HEADER: modern rounded look, but no sticky/lifting behaviour. */
@media (min-width: 1025px) {
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters_header {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background: #f5f7f6 !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid {
    overflow: visible !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__outer {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 78px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    background: #fff !important;
    border: 1px solid rgba(30,37,35,.06) !important;
    border-radius: 26px !important;
    box-shadow: 0 12px 34px rgba(24,50,43,.08) !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    width: 100% !important;
    min-height: 78px !important;
    height: auto !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-logo {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 78px !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-logo img {
    max-width: 180px !important;
    max-height: 54px !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__content-wrap {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 78px !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__content {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 78px !important;
    overflow: visible !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-menu,
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-menu__nav,
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-menu,
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-menu__nav {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 78px !important;
    overflow: visible !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 78px !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: auto !important;
    height: 78px !important;
    margin: 0 17px 0 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    transform: none !important;
    top: auto !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li:last-child {
    margin-right: 0 !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li > a {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li > a .cmsmasters-menu__item {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }

  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__add-content {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 78px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* The desktop burger is not needed while the full menu fits one row. */
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-burger-menu-button {
    display: none !important;
  }
}

/* At narrower desktop widths keep one row by tightening the gaps, not wrapping. */
@media (min-width: 1025px) and (max-width: 1320px) {
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-logo {
    flex-basis: 145px !important;
    width: 145px !important;
    min-width: 145px !important;
  }
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid-logo img { max-width: 138px !important; }
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__inner { gap: 12px !important; }
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid__content-wrap { gap: 10px !important; }
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li { margin-right: 8px !important; }
  body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-header-mid .cmsmasters-menu__list > li > a .cmsmasters-menu__item {
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: .94em !important;
  }
}

/* GAMMA ARTICLES: no sidebar, no page artwork leaking at the right edge. */
html:has(body.chr-gamma-article),
body.chr-gamma-article,
body.chr-gamma-article #main,
body.chr-gamma-article .cmsmasters-main,
body.chr-gamma-article .cmsmasters-main__outer,
body.chr-gamma-article .cmsmasters-main__inner,
body.chr-gamma-article .cmsmasters-content-wrap,
body.chr-gamma-article .cmsmasters-content,
body.chr-gamma-article .cmsmasters-single-post,
body.chr-gamma-article article.cmsmasters-single-post,
body.chr-gamma-article .cmsmasters-single-post-content,
body.chr-gamma-article .chr-gamma-content-shell {
  background-color: #FFFAF6 !important;
  background-image: none !important;
}

body.chr-gamma-article .cmsmasters-main {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  overflow-x: hidden !important;
}

body.chr-gamma-article .cmsmasters-main__outer,
body.chr-gamma-article .cmsmasters-main__inner,
body.chr-gamma-article .cmsmasters-content-wrap,
body.chr-gamma-article .cmsmasters-content,
body.chr-gamma-article article.cmsmasters-single-post,
body.chr-gamma-article .cmsmasters-single-post-content,
body.chr-gamma-article .chr-gamma-content-shell {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.chr-gamma-article .cmsmasters-main__outer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.chr-gamma-article .cmsmasters-content-wrap {
  display: block !important;
}

body.chr-gamma-article .cmsmasters-content {
  flex: 0 0 100% !important;
}

body.chr-gamma-article .cmsmasters-sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* The imported Gamma design controls its own spacing; the shell supplies only the warm page canvas. */
body.chr-gamma-article .cmsmasters-single-post-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-shadow: none !important;
}

body.chr-gamma-article .chr-gamma-content-shell {
  position: relative !important;
  min-height: 1px !important;
  overflow-x: clip !important;
}

/* Final safety mask created by JS only when a narrow right-edge artefact is detected. */
body.chr-gamma-article .chr-gamma-right-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 50 !important;
  display: block !important;
  pointer-events: none !important;
  background: #FFFAF6 !important;
}

body.chr-gamma-article .chr-gamma-edge-off {
  background-image: none !important;
  background-color: #FFFAF6 !important;
}

body.chr-gamma-article img.chr-gamma-edge-decorative {
  visibility: hidden !important;
}

/* FOOTER LOGO: dark becomes the footer, lettering becomes white. */
body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-footer-logo img,
body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-footer img.chr-footer-logo,
body.chrzescijanie-modern-full.chr-modern-final .cmsmasters-footer-widgets img.chr-footer-logo {
  filter: invert(1) brightness(.96) contrast(1.08) !important;
  mix-blend-mode: screen !important;
  background: transparent !important;
}
