/* ========= Scoped styles for project cards ========= */
.wjk-scope {
  --bg: #eae2d2;
  --ink: #2b281f;
  --accent: #53492c;        /* title + CTA color */
  --muted: #6e6a62;

  /* shared with slider for consistent button styling */
  --nav-bg: rgba(255,255,255,.92);
  --nav-ink: #2b281f;

  --dot: rgba(255,255,255,.55);
  --dot-active: #fff;

  --radius: 18px;

  /* container fallbacks for load-more inner centering */
  --page-max: 1240px;
  --page-pad: 20px;
}

/* Grid */
.wjk-scope .wjk-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px,2.2vw,28px);
  padding: clamp(14px,2vw,24px);
}
@media (max-width: 980px){ .wjk-scope .wjk-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .wjk-scope .wjk-grid{ grid-template-columns: 1fr;} }

.wjk-scope .wjk-card{ color:var(--ink); }

/* Media block (taller like slider) */
.wjk-scope .wjk-media {
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  background:#ddd;

  aspect-ratio:4/5;      /* taller portrait-like ratio */
  min-height:420px;      /* keeps consistent height across grid */
}
@supports not (aspect-ratio:4/5){
  .wjk-scope .wjk-media::before{ content:""; display:block; padding-top:75%; }
}
.wjk-scope .wjk-track {
  display:flex; height:100%;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
  will-change:transform;
}
.wjk-scope .wjk-track img {
  width:100%; height:100%; object-fit:cover; flex:0 0 100%;
}

/* Dots */
.wjk-scope .wjk-dots {
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%);
  display:flex; gap:10px; z-index:2;
}
.wjk-scope .wjk-dot {
  width:10px; height:10px; border-radius:50%; background:var(--dot);
}
.wjk-scope .wjk-dot.is-active{ background:var(--dot-active); }

/* Prev/Next buttons (if you keep per-card nav) */
.wjk-scope .wjk-thumb-nav {
  all: unset;
  position:absolute; bottom:16px; width:84px; height:84px;
  display:grid; place-items:center;
  border-radius:14px;
  background:var(--nav-bg);
  color:var(--nav-ink);
  font-size:32px; line-height:1;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
  cursor:pointer; z-index:3;
  opacity:0; visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease, transform .15s ease;
}
.wjk-scope .wjk-thumb-nav.prev{ left:16px; }
.wjk-scope .wjk-thumb-nav.next{ right:16px; }
.wjk-scope .wjk-media:hover .wjk-thumb-nav,
.wjk-scope .wjk-media:focus-within .wjk-thumb-nav{ opacity:1; visibility:visible; }
.wjk-scope .wjk-thumb-nav:active{ transform:scale(.97); }

/* Hide nav + dots automatically when only one image */
.wjk-scope .wjk-media:not(:has(img:nth-child(2))) .wjk-thumb-nav,
.wjk-scope .wjk-media:not(:has(img:nth-child(2))) .wjk-dots {
  display:none !important;
}

/* Info below image (match slider-aligned variant if desired) */
.wjk-scope .wjk-info {
  padding: clamp(16px,1.8vw,22px) clamp(6px,1vw,8px);
}
.wjk-scope .wjk-title {
  margin:18px 0 0;
  font-weight:500;
  font-size:30px;            /* fixed size */
  color:var(--accent);
  font-family: Lora, serif;
}
.wjk-scope .wjk-desc {
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
  font-size:clamp(16px,1.4vw,18px);
}

/* DISCOVER CTA (underline like nav hover) */
.wjk-scope .wjk-cta {
  display:inline-block;
  font-family:"Montserrat", sans-serif;
  font-weight:500;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  text-decoration:none;
  position:relative;
  padding-bottom:4px;
}
.wjk-scope .wjk-cta::after {
  content:"";
  position:absolute; left:0; bottom:0;
  width:0%; height:2px;
  background:var(--accent);
  transition:width .3s ease;
}
.wjk-scope .wjk-cta:hover::after { width:100%; }

/* ===== Load More: dedicated centered section with feathered overlay ===== */

/* Section that sits below the grid; white bg with soft feather overlapping up */
.wjk-scope .wjk-loadmore-section{
  position: relative;
  background: rgba(255,255,255,.92);
  margin-top: -40px;            /* pull up to overlap prior section */
  padding-top: 56px;            /* reveal gradient feather */
  padding-bottom: 40px;
  z-index: 1;                   /* sit above the section above */
}
/* soft feather at the top edge */
.wjk-scope .wjk-loadmore-section::before{
  content:"";
  position:absolute; inset:0 0 auto 0;
  height: 56px;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,.92) 35%,
    rgba(255,255,255,.70) 70%,
    rgba(255,255,255,0) 100%
  );
}

/* center the button inside a max-width container */
.wjk-scope .wjk-loadmore-inner{
  max-width: var(--page-max);
  padding: 0 var(--page-pad);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}

/* Button styled to match slider nav (border, bg, shadow, radius) */
.wjk-scope .wjk-load-more{
  all: unset;
  display: inline-grid; place-items: center;
  background: var(--nav-bg);
  color: var(--nav-ink);
  border: 1px solid #4e4325;
  border-radius: 14px;
  cursor: pointer;

  /* size & type */
  padding: 16px 26px;                  /* pill button (text label) */
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* hover/active */
.wjk-scope .wjk-load-more:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}
.wjk-scope .wjk-load-more:active{
  transform: scale(.98);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

/* Hidden state retained for JS injection logic */
.wjk-scope .wjk-load-more[hidden]{ display: none !important; }

/* Keep batch-hidden cards out of layout */
.wjk-scope .wjk-card.is-hidden { display:none; }

/* Responsive tweaks for overlap & spacing */
@media (max-width: 640px){
  .wjk-scope .wjk-loadmore-section{
    margin-top: -28px;
    padding-top: 44px;
    padding-bottom: 32px;
  }
  .wjk-scope .wjk-loadmore-section::before{ height: 44px; }
  .wjk-scope .wjk-load-more{ padding: 14px 22px; font-size: 15px; }
}
