.cmts-projects{width:100%;min-width:0}
.cmts-projects-heading{margin:0 0 8px}
.cmts-projects-intro{margin:0 0 26px}
.cmts-projects-filters{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 28px}
.cmts-projects .cmts-projects-filter{border:0;border-radius:16px;padding:13px 24px;cursor:pointer;background:var(--cmts-filter-bg);color:var(--cmts-filter-text);transition:background-color .15s,color .15s;min-height:44px;text-transform:none;white-space:normal}
.cmts-projects .cmts-projects-filter.is-active{background:var(--cmts-green);color:var(--cmts-active-text)}
.cmts-projects button:focus-visible,.cmts-projects a:focus-visible{outline:2px solid var(--cmts-green);outline-offset:4px}
.cmts-projects-grid{display:grid;align-items:start}
.cmts-projects-card{min-width:0}
.cmts-projects-media{width:100%;aspect-ratio:1.43;overflow:hidden;margin-bottom:16px}
.cmts-projects-media>img{display:block;width:100%;height:100%;object-fit:cover}
.cmts-projects-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.cmts-projects-placeholder>svg{width:64px;height:52px}
.cmts-projects-category{margin:0 0 8px;color:var(--cmts-green);text-transform:uppercase;letter-spacing:.08em}
.cmts-projects-title{margin:0 0 12px;overflow-wrap:anywhere}
.cmts-projects .cmts-projects-link{display:inline-flex;align-items:center;gap:12px;padding:0;border:0;background:transparent;color:var(--cmts-green);text-decoration:none;text-align:left;cursor:pointer;min-height:36px}
.cmts-projects-link span{transition:transform .15s}
.cmts-projects-link:hover span{transform:translateX(4px)}
.cmts-projects [hidden]{display:none!important}
.cmts-projects-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cmts-projects-dialog{width:min(900px,calc(100% - 32px));max-height:90vh;padding:30px;border:0;border-radius:16px;overflow:auto}
.cmts-projects-dialog::backdrop{background:rgba(0,0,0,.65)}
.cmts-projects-dialog>img{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}
.cmts-projects-dialog>h3{padding-right:40px}
.cmts-projects .cmts-projects-close{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-content:center;border:0;border-radius:50%;font-size:28px;line-height:1;background:var(--cmts-filter-bg);color:var(--cmts-filter-text);cursor:pointer}
@media(max-width:767px){.cmts-projects-filters{gap:8px}.cmts-projects .cmts-projects-filter{padding:12px 16px}.cmts-projects-media{margin-bottom:12px}.cmts-projects-dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){.cmts-projects *{transition:none!important}}

/* Keep theme and Elementor button states within the widget palette. */
.cmts-projects .cmts-projects-filter:is(:hover,:focus,:active),
.cmts-projects .cmts-projects-filter.is-active:is(:hover,:focus,:active){background:var(--cmts-green);color:var(--cmts-active-text);border:0;box-shadow:none;text-decoration:none;}
.cmts-projects .cmts-projects-link:is(:hover,:focus,:active,:visited){background:transparent;color:var(--cmts-green);border:0;box-shadow:none;text-decoration:none;}
.cmts-projects .cmts-projects-close:is(:hover,:focus,:active){background:var(--cmts-green);color:var(--cmts-active-text);border:0;box-shadow:none;}
