/* =========================================================
   Gallery pages – match the "פרסומים ברשת" page design
   Applies to: portfolio category archives, the main gallery
   archive, and the "אומנות / דיוקן" gallery page.
   ========================================================= */
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) {
  --ng-red: #b52626;
  --ng-border: #bd2b2b;
  --ng-card: #F6EEE7;
  --ng-page: #fbf7f1;
}

/* Page background – same illustration as פרסומים ברשת */
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-content {
  background: var(--ng-page) url('/wp-content/uploads/2026/06/ChatGPT-Image-Jun-21-2026-01_15_15-PM-1.webp') center top / cover no-repeat fixed;
  padding-bottom: 70px;
}

/* Title area: no turquoise bar, big red heading */
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title {
  background: transparent !important;
  padding-block: 90px 40px;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title-bg {
  display: none;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title .entry-title {
  color: var(--ng-red);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.15;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title .wd-breadcrumbs,
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title .wd-breadcrumbs a {
  color: #222;
  font-size: 18px;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title .wd-breadcrumbs .wd-last {
  color: var(--ng-red);
}

/* Project cards */
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .entry-header {
  background: var(--ng-card);
  border: 1px solid var(--ng-border);
  border-radius: 24px;
  padding: 12px 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
  overflow: hidden;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .entry-thumbnail {
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
}
/* Title sits under the image, always visible */
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .portfolio-info {
  position: static;
  inset: auto;
  padding: 14px 6px 0;
  pointer-events: auto;
  text-align: center;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .wrap-meta {
  display: none;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .wd-entities-title {
  opacity: 1;
  transform: none;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .wd-entities-title a {
  color: #111;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-project .wd-entities-title a:hover {
  color: var(--ng-red);
}

/* Load more button */
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-portfolio-load-more {
  background: var(--ng-red);
  color: #fff;
  border-radius: 30px;
  padding-inline: 32px;
}
:is(body.tax-project-cat, body.post-type-archive-portfolio) .wd-portfolio-load-more:hover {
  background: var(--ng-border);
  color: #fff;
}

/* Category filter links (main gallery archive) */
body.post-type-archive-portfolio .wd-nav-portfolio a {
  color: #222;
}
body.post-type-archive-portfolio .wd-nav-portfolio .wd-active a,
body.post-type-archive-portfolio .wd-nav-portfolio a:hover {
  color: var(--ng-red);
}

/* "אומנות / דיוקן" – Elementor gallery images as framed tiles */
body.postid-29898 .elementor-gallery-item {
  border: 1px solid var(--ng-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}
body.postid-29898 .elementor-widget-gallery {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 15px;
}

@media (max-width: 1024px) {
  :is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-content {
    background-attachment: scroll;
  }
  :is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title {
    padding-block: 50px 25px;
  }
  :is(body.tax-project-cat, body.post-type-archive-portfolio, body.postid-29898, body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29081, body.page-id-29703, body.blog, body.category) .wd-page-title .entry-title {
    font-size: 44px;
  }
}

/* שירים שלי שהולחנו (page 29862) – video cards in the gallery style */
body.page-id-29862 .nurit-youtube-wrap{background:transparent !important;}
body.page-id-29862 .nurit-youtube-wrap:before{display:none !important;}
body.page-id-29862 .nurit-youtube-wrap{padding-top:10px !important;}

/* Content pages (שירה / בלוג / קורסים) – let the site background show through */
:is(body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29703) .nurit-youtube-wrap{background:transparent !important;}
:is(body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29703) .nurit-youtube-wrap:before{display:none !important;}
:is(body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29703) .nurit-poetry-page{background:transparent !important;}
:is(body.page-id-29862, body.page-id-29782, body.page-id-29878, body.page-id-29703) .nurit-youtube-title .elementor-heading-title{color:var(--ng-red) !important;}
body.page-id-29703 .nurit-poetry-page > .elementor-widget-heading:first-child{display:none;}
:is(body.blog, body.category) .wd-post .wd-post-inner{background:var(--ng-card);border:1px solid var(--ng-border);border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.10);}
:is(body.blog, body.category) .wd-post .wd-post-thumb{border-radius:14px;overflow:hidden;margin:12px 12px 0;}
:is(body.blog, body.category) .wd-post .wd-post-title a{color:#111;}
:is(body.blog, body.category) .wd-post .wd-post-title a:hover{color:var(--ng-red);}
:is(body.blog, body.category) .wd-post-cat a{background:var(--ng-red);}
:is(body.blog, body.category) .wd-post-date{background:var(--ng-red);}
:is(body.blog, body.category, body.page-id-29081) .wd-sidebar .widget{background:rgba(255,255,255,.85);border:1px solid var(--ng-border);border-radius:18px;padding:18px;}
