/* Each project is one native synced pattern, shared by portfolio and service pages. */
.ctb-work-page { font-family: Arial,sans-serif; }
.ctb-work-hero.wp-block-cover { padding: 48px clamp(20px,4vw,48px); margin: 0; min-height: 230px; }
.ctb-work-hero .wp-block-cover__inner-container { max-width: 1080px; margin-inline: auto; padding-inline: 0; }
.ctb-work-hero .ctb-eyebrow { margin: 0 0 12px; }
.ctb-work-hero h1 { font-size: clamp(32px,4vw,44px); margin: 0; letter-spacing: -.02em; }
.ctb-work-page .ctb-section { padding-block: 44px; background: #fff; }
.ctb-work-page .ctb-work-projects { background: var(--wp--preset--color--muted,#f5f5f6); }
.ctb-work-page .ctb-section > * { max-width: 1080px; margin-inline: auto; }
.ctb-work-page .ctb-section > h2 { font-size: 30px; margin-block: 0 24px; }
.ctb-project-grid { gap: 24px; align-items: stretch; }
.ctb-project-card.wp-block-group { padding: 24px; border: 1px solid #ebdcde; border-radius: 8px; background: var(--wp--preset--color--paper,#fff); color: var(--wp--preset--color--charcoal,#3f3f46); height: auto; min-width: 0; box-shadow: 0 4px 16px #18181b08; }
/* A single preview fills its column; stacked portfolio cards retain their natural height. */
.ctb-row > .wp-block-column > .ctb-project-card:only-child { height: 100%; }
.ctb-project-card > * { margin-block-start: 16px; }
.ctb-project-card > :first-child { margin-block-start: 0; }
.ctb-project-card .ctb-project-image { margin: 0 0 20px; padding: 8px; background: #fff; border-bottom: 1px solid #f4edee; }
.ctb-project-card .ctb-project-image img { display: block; width: 100%; height: 180px; max-height: 180px; object-fit: contain; }
.ctb-project-card .ctb-project-category { color: var(--wp--preset--color--blue,#a8192c); font: 700 12px/1.5 Arial,sans-serif; letter-spacing: .04em; margin-bottom: 8px; }
.ctb-project-card .ctb-project-title { color: var(--wp--preset--color--ink,#18181b); font: 700 25px/1.22 Arial,sans-serif; letter-spacing: -.015em; text-wrap: initial; margin-top: 0; }
.ctb-project-card :where(p,li) { font-size: 16px; line-height: 1.6; }
.ctb-project-card ul { padding-left: 20px; }
.ctb-project-card li + li { margin-top: 6px; }
.ctb-project-card .ctb-project-details { border-top: 1px solid #eddddf; border-bottom: 0; padding: 14px 0 0; }
.ctb-project-card .ctb-project-details summary { font-size: 16px; color: var(--wp--preset--color--blue,#a8192c); font-weight: 700; }
.ctb-project-card .ctb-project-details > *:not(summary) { margin-top: 14px; }
.ctb-project-card .ctb-project-link { font-weight: 700; }
.ctb-project-card a { color: var(--wp--preset--color--blue,#a8192c); }
.ctb-project-monogram { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--wp--preset--color--muted,#f5f5f6); color: var(--wp--preset--color--blue,#a8192c); font-weight: 700; }
.ctb-work-reviews {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 16px;
 margin-top: 32px;
 padding-top: 24px;
 border-top: 1px solid #eddddf;
 text-align: center;
}
.ctb-work-reviews .wp-block-buttons { justify-content: center; }
.ctb-work-reviews .wp-block-image { margin: 0; padding: 8px; background: #fff; }
.ctb-work-reviews .wp-block-image img {
 display: block;
 width: 132px;
 max-height: none;
 height: auto;
 margin-inline: auto;
}
@media (max-width: 781px) {
 .ctb-work-page .ctb-section { padding-block: 32px; }
 .ctb-project-grid.wp-block-group { grid-template-columns: minmax(0,1fr); }
 .ctb-project-card.wp-block-group { padding: 20px; }
 .ctb-project-card .ctb-project-title { font-size: 23px; }
 .ctb-work-hero.wp-block-cover { min-height: 200px; padding-block: 36px; }
}

/* Synced website-project section: usable on any page, independent of its template. */
.fc-featured-projects.ctb-section {
 padding-block: clamp(44px, 6vw, 76px);
 background: radial-gradient(circle, #a8192c16 .8px, transparent 1px) 0 0 / 22px 22px, #fbf2f3;
 border-block: 1px solid #eedcde;
}
.fc-featured-projects > .ctb-row { max-width: 1080px; }
.fc-featured-projects > .ctb-row:first-child { text-align: center; }
.fc-featured-projects > .ctb-row:first-child h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 36px); }
.fc-featured-projects > .ctb-row:first-child p:not(.ctb-eyebrow) { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.65; }
.fc-featured-projects .ctb-eyebrow { margin: 0 0 12px; color: #ad1b2e; font-size: 12px; }
.fc-featured-project-grid.ctb-row { align-items: stretch !important; gap: 24px; }
.fc-featured-project-grid .ctb-project-card { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.fc-featured-project-grid .ctb-project-card > .ctb-project-link { margin-top: auto; padding-top: 20px; }
.fc-featured-project-grid .ctb-project-card .ctb-project-title { font-size: 25px; }
.fc-featured-project-grid .ctb-project-card .ctb-project-category { min-height: 36px; }
.fc-featured-project-grid .ctb-project-card .ctb-project-image img { height: 160px; max-height: 160px; }
.fc-featured-projects > .ctb-row:last-child .wp-block-buttons { justify-content: center; }
@media (min-width: 782px) and (max-width: 1024px) {
 .fc-featured-project-grid.ctb-row { flex-wrap: wrap !important; }
 .fc-featured-project-grid > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
}
@media (max-width: 781px) {
 .fc-featured-projects.ctb-section { padding-block: 40px; }
 .fc-featured-project-grid .ctb-project-card { padding: 20px; }
 .fc-featured-project-grid .ctb-project-card .ctb-project-category { min-height: 0; }
}
