/* v136 */
.custom-project-story-section{padding:34px 0 76px}.custom-project-story-layout{display:grid;grid-template-columns:minmax(320px,520px) minmax(0,1fr);gap:26px;align-items:start}.custom-project-story-banner{position:sticky;top:24px;overflow:hidden;padding:34px;border-radius:30px 30px 70px 30px;background:linear-gradient(145deg,rgba(255,253,249,.97),rgba(241,232,221,.96));border:1px solid rgba(104,78,53,.10);box-shadow:0 26px 58px rgba(49,31,18,.10),inset 0 1px 0 rgba(255,255,255,.9)}.custom-project-story-banner h2{margin:0 0 24px;max-width:12ch;font-size:clamp(2.5rem,4vw,4.4rem);line-height:.94}.custom-project-story-text{color:#62574e;font-size:1rem;line-height:1.72}.custom-project-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.custom-project-card{overflow:hidden;border-radius:26px 26px 48px 26px;background:linear-gradient(180deg,#fffdf9,#f4ebe0);border:1px solid rgba(90,66,43,.08);box-shadow:0 18px 38px rgba(42,28,16,.08);transition:.28s}.custom-project-card:hover{transform:translateY(-5px);box-shadow:0 28px 52px rgba(42,28,16,.12)}.custom-project-card-image{aspect-ratio:1.35/1;overflow:hidden;background:#ddd0c1}.custom-project-card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:.7s}.custom-project-card:hover img{transform:scale(1.04)}.custom-project-card-placeholder{height:100%;display:grid;place-items:center}.custom-project-card-copy{padding:20px}.custom-project-card h3{margin:0;font-size:1.75rem;line-height:1.02}.custom-project-card p{margin:12px 0 0;color:#675c53;font-size:.94rem;line-height:1.62}.custom-project-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.custom-project-meta span{padding:8px 12px;border-radius:999px;background:#fff;border:1px solid rgba(90,66,43,.08);font-size:.82rem}.custom-projects-empty{padding:34px;border-radius:24px;background:rgba(255,255,255,.55);text-align:center}@media(max-width:1100px){.custom-project-story-layout{grid-template-columns:minmax(300px,430px) 1fr}.custom-project-cards{grid-template-columns:1fr}}@media(max-width:820px){.custom-project-story-layout{grid-template-columns:1fr}.custom-project-story-banner{position:relative;top:auto}.custom-project-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.custom-project-story-section{padding:22px 0 48px}.custom-project-story-banner{padding:22px 18px}.custom-project-cards{grid-template-columns:1fr;gap:12px}.custom-project-card-copy{padding:15px}}
/* v138 — align the workshop story banner with the far left page edge */
.custom-project-story-layout{
  width: calc(100% - 12px) !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 12px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media(max-width:820px){
  .custom-project-story-layout{
    width: calc(100% - 8px) !important;
    margin-right: 8px !important;
  }
}


/* v141 — compact luxury project cards with refined wow effect */
.custom-project-story-layout{grid-template-columns:minmax(300px,430px) minmax(0,1fr);gap:20px}
.custom-project-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.custom-project-card{position:relative;padding:8px;border-radius:24px 24px 38px 24px;background:linear-gradient(180deg,rgba(255,253,249,.98),rgba(243,234,223,.98));border:1px solid rgba(91,66,42,.08);box-shadow:0 14px 28px rgba(43,28,16,.06),0 28px 52px rgba(43,28,16,.05),inset 0 1px 0 rgba(255,255,255,.84);transition:transform .38s cubic-bezier(.22,.8,.2,1),box-shadow .38s ease,border-color .38s ease}
.custom-project-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.36),rgba(255,255,255,0) 42%);pointer-events:none;z-index:1}
.custom-project-card:hover{transform:translateY(-8px);border-color:rgba(91,66,42,.16);box-shadow:0 22px 38px rgba(43,28,16,.09),0 38px 70px rgba(43,28,16,.10),inset 0 1px 0 rgba(255,255,255,.94)}
.custom-project-card-image{position:relative;aspect-ratio:1.28/1;border-radius:18px 18px 28px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.36);z-index:0}
.custom-project-card-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 48%,rgba(31,20,12,.14));pointer-events:none}
.custom-project-card:hover .custom-project-card-image img{transform:scale(1.065);filter:saturate(1.04) contrast(1.03)}
.custom-project-card-copy{position:relative;z-index:2;padding:14px 8px 8px}
.custom-project-card h3{font-size:1.3rem;line-height:1.02;letter-spacing:-.025em}
.custom-project-card p{margin-top:8px;font-size:.82rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.custom-project-meta{gap:6px;margin-top:12px}
.custom-project-meta span{padding:6px 9px;font-size:.72rem;background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px rgba(90,66,43,.04)}
@media(max-width:1280px){.custom-project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.custom-project-story-layout{grid-template-columns:1fr}.custom-project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.custom-project-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.custom-project-card{padding:6px;border-radius:18px 18px 28px 18px}.custom-project-card-image{aspect-ratio:1.05/1;border-radius:14px 14px 22px 14px}.custom-project-card-copy{padding:10px 4px 4px}.custom-project-card h3{font-size:.98rem}.custom-project-card p{font-size:.7rem;line-height:1.38;-webkit-line-clamp:2}.custom-project-meta{margin-top:8px;gap:4px}.custom-project-meta span{padding:5px 7px;font-size:.64rem}}


/* v142 — project cards open into a dedicated project view */
.custom-project-content{min-width:0}
.custom-project-card-link{display:block;color:inherit;text-decoration:none}
.custom-project-card-link:focus-visible .custom-project-card{outline:2px solid rgba(91,66,42,.35);outline-offset:4px}
.custom-project-card-link .custom-project-card{height:100%}
.custom-project-detail{padding:10px;border-radius:28px 28px 42px 28px;background:linear-gradient(180deg,rgba(255,253,249,.98),rgba(243,234,223,.98));border:1px solid rgba(91,66,42,.08);box-shadow:0 18px 36px rgba(43,28,16,.08),0 30px 56px rgba(43,28,16,.06)}
.custom-project-back{display:inline-flex;align-items:center;gap:8px;margin:4px 0 16px;padding:10px 16px;border-radius:999px;background:#fff;color:#3c2818;text-decoration:none;border:1px solid rgba(90,66,43,.08);box-shadow:0 10px 20px rgba(43,28,16,.05)}
.custom-project-detail-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.custom-project-detail-gallery.is-single{grid-template-columns:1fr}
.custom-project-detail-image{overflow:hidden;border-radius:22px;background:#ddd0c1;box-shadow:inset 0 1px 0 rgba(255,255,255,.36)}
.custom-project-detail-image.is-main{grid-column:1/-1}
.custom-project-detail-gallery.is-single .custom-project-detail-image.is-main{grid-column:auto}
.custom-project-detail-image img{display:block;width:100%;height:100%;object-fit:cover}
.custom-project-detail-copy{padding:18px 10px 8px}
.custom-project-detail-copy h1{margin:0;font-size:clamp(2rem,3.2vw,3.2rem);line-height:.96}
.custom-project-detail-meta{margin:14px 0 0}
.custom-project-detail-text{margin-top:16px;color:#675c53;font-size:1rem;line-height:1.72}
@media(max-width:820px){.custom-project-detail-gallery{grid-template-columns:1fr}.custom-project-detail-image.is-main{grid-column:auto}.custom-project-detail-copy{padding:16px 6px 4px}}

/* v143 — compact luxury project detail, approximately half-screen width */
.custom-project-detail{
  width:min(100%,760px);
  margin:0 auto;
  padding:10px;
  border-radius:26px 26px 40px 26px;
  box-shadow:0 18px 36px rgba(43,28,16,.07),0 28px 50px rgba(43,28,16,.05);
}
.custom-project-detail-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.custom-project-detail-image{
  border-radius:18px;
  aspect-ratio:1.18/1;
}
.custom-project-detail-image.is-main{
  grid-column:1/-1;
  aspect-ratio:1.55/1;
}
.custom-project-detail-gallery.is-single .custom-project-detail-image.is-main{
  grid-column:auto;
  aspect-ratio:1.4/1;
}
.custom-project-detail-copy{
  padding:16px 8px 6px;
}
.custom-project-detail-copy h1{
  font-size:clamp(1.9rem,2.8vw,2.8rem);
  line-height:.98;
}
.custom-project-detail-text{
  font-size:.95rem;
  line-height:1.65;
}
.custom-project-back{
  margin-bottom:12px;
  padding:9px 14px;
}
@media(max-width:980px){
  .custom-project-detail{width:min(100%,680px)}
}
@media(max-width:680px){
  .custom-project-detail{width:100%;padding:8px;border-radius:22px 22px 32px 22px}
  .custom-project-detail-gallery{grid-template-columns:1fr;gap:8px}
  .custom-project-detail-image,
  .custom-project-detail-image.is-main,
  .custom-project-detail-gallery.is-single .custom-project-detail-image.is-main{grid-column:auto;aspect-ratio:1.2/1;border-radius:16px}
  .custom-project-detail-copy{padding:14px 4px 4px}
  .custom-project-detail-copy h1{font-size:clamp(1.7rem,8vw,2.2rem)}
  .custom-project-detail-text{font-size:.9rem;line-height:1.58}
}

/* v144 — keep all project text inside the luxury frame */
.custom-project-detail,
.custom-project-detail-copy,
.custom-project-detail-copy h1,
.custom-project-detail-text,
.custom-project-detail-meta,
.custom-project-detail-meta span{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.custom-project-detail-copy{
  overflow:hidden;
}
.custom-project-detail-copy h1,
.custom-project-detail-text{
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
.custom-project-detail-copy h1{
  font-size:clamp(1.8rem,2.5vw,2.55rem);
  line-height:1.02;
}
.custom-project-detail-text{
  width:100%;
  padding-right:2px;
}
.custom-project-detail-meta{
  align-items:flex-start;
}
.custom-project-detail-meta span{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media(max-width:680px){
  .custom-project-detail-copy h1{
    font-size:clamp(1.55rem,7.2vw,2rem);
  }
  .custom-project-detail-text{
    font-size:.88rem;
    line-height:1.55;
  }
}

/* v145 — compact and elegant mobile custom projects page */
@media(max-width:680px){
  .custom-project-story-section{
    padding:14px 0 34px !important;
  }

  .custom-project-story-layout{
    width:calc(100% - 10px) !important;
    margin-right:10px !important;
    gap:12px !important;
  }

  .custom-project-story-banner{
    position:relative !important;
    top:auto !important;
    padding:16px 14px !important;
    border-radius:20px 20px 30px 20px !important;
    box-shadow:0 12px 26px rgba(49,31,18,.07),inset 0 1px 0 rgba(255,255,255,.86) !important;
  }

  .custom-project-story-banner h2{
    margin:0 0 10px !important;
    max-width:none !important;
    font-size:clamp(1.75rem,8.4vw,2.35rem) !important;
    line-height:.94 !important;
  }

  .custom-project-story-text{
    font-size:.84rem !important;
    line-height:1.48 !important;
    max-height:10.4em !important;
    overflow:auto !important;
    padding-right:4px !important;
    scrollbar-width:thin;
  }

  .custom-project-content{
    width:100% !important;
  }

  .custom-project-cards{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .custom-project-card{
    padding:5px !important;
    border-radius:16px 16px 24px 16px !important;
  }

  .custom-project-card-image{
    aspect-ratio:1.08/1 !important;
    border-radius:12px 12px 18px 12px !important;
  }

  .custom-project-card-copy{
    padding:8px 3px 3px !important;
  }

  .custom-project-card h3{
    font-size:.9rem !important;
    line-height:1.04 !important;
  }

  .custom-project-card p{
    margin-top:5px !important;
    font-size:.66rem !important;
    line-height:1.34 !important;
    -webkit-line-clamp:2 !important;
  }

  .custom-project-meta{
    margin-top:7px !important;
    gap:4px !important;
  }

  .custom-project-meta span{
    padding:4px 6px !important;
    font-size:.58rem !important;
  }

  .custom-project-detail{
    width:100% !important;
    padding:7px !important;
    border-radius:20px 20px 28px 20px !important;
  }

  .custom-project-back{
    margin:2px 0 10px !important;
    min-height:38px !important;
    padding:8px 12px !important;
    font-size:.82rem !important;
  }

  .custom-project-detail-image,
  .custom-project-detail-image.is-main,
  .custom-project-detail-gallery.is-single .custom-project-detail-image.is-main{
    aspect-ratio:1.32/1 !important;
    border-radius:14px !important;
  }

  .custom-project-detail-copy{
    padding:12px 4px 3px !important;
  }

  .custom-project-detail-copy h1{
    font-size:clamp(1.45rem,7vw,1.9rem) !important;
    line-height:1 !important;
  }

  .custom-project-detail-text{
    margin-top:10px !important;
    font-size:.82rem !important;
    line-height:1.48 !important;
  }
}
