.cmh-project-gallery-wrap{display:grid;gap:24px}
.cmh-gallery-filters{display:flex;flex-wrap:wrap;gap:10px}
.cmh-gallery-filter{padding:10px 17px;border:1px solid rgba(0,0,0,.14);border-radius:999px;background:#fff;color:#171717;font:inherit;font-weight:700;cursor:pointer}
.cmh-gallery-filter.is-active{border-color:#171717;background:#171717;color:#fff}
.cmh-project-gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:270px;gap:16px}
.cmh-project-card{grid-column:span 4;overflow:hidden;border-radius:18px;background:#252525}
.cmh-project-card--featured{grid-column:span 8}
.cmh-project-card__button{position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:#252525;cursor:pointer;text-align:left;overflow:hidden}
.cmh-project-card__button img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cmh-project-card__button:hover img,.cmh-project-card__button:focus-visible img{transform:scale(1.045)}
.cmh-project-card__overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:end;padding:22px;color:#fff;background:linear-gradient(0deg,rgba(0,0,0,.82),transparent 70%)}
.cmh-project-card__category{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.68)}
.cmh-project-card__overlay strong{font-size:1.35rem}
.cmh-project-card__overlay small{margin-top:5px;font-size:.88rem}
.cmh-gallery-modal-open{overflow:hidden}
.cmh-project-modal[hidden]{display:none}
.cmh-project-modal{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:20px}
.cmh-project-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.76)}
.cmh-project-modal__dialog{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);width:min(1120px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:22px;background:#fff}
.cmh-project-modal__close{position:absolute;z-index:2;top:12px;right:12px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(0,0,0,.72);color:#fff;font-size:28px;cursor:pointer}
.cmh-project-modal__media{display:grid;align-items:center;background:#111}
.cmh-project-modal__media img{display:block;width:100%;height:100%;max-height:720px;object-fit:contain}
.cmh-project-modal__content{padding:clamp(28px,5vw,50px)}
.cmh-project-modal__category{font-size:.74rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#956c2e}
.cmh-project-modal__content h2{margin:6px 0 14px;font-size:clamp(2rem,4vw,3.5rem);line-height:1.04}
.cmh-project-modal__content p{color:#666}
.cmh-project-modal__content dl{display:grid;gap:12px;margin:24px 0}
.cmh-project-modal__content dl div{display:grid;grid-template-columns:100px 1fr;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,.1)}
.cmh-project-modal__content dt{font-weight:800}
.cmh-project-modal__content dd{margin:0;color:#666}
.cmh-project-modal__cta{display:inline-flex;width:100%;min-height:50px;align-items:center;justify-content:center;padding:12px 20px;border-radius:999px;background:#171717;color:#fff;font-weight:800;text-decoration:none}
.cmh-project-modal__cta:hover{background:#b7863e;color:#fff}
@media(max-width:900px){.cmh-project-gallery{grid-template-columns:repeat(2,1fr);grid-auto-rows:250px}.cmh-project-card,.cmh-project-card--featured{grid-column:auto}.cmh-project-modal__dialog{grid-template-columns:1fr}.cmh-project-modal__media img{max-height:430px}}
@media(max-width:620px){.cmh-project-gallery{grid-template-columns:1fr;grid-auto-rows:240px}.cmh-project-modal{padding:10px}.cmh-project-modal__dialog{max-height:calc(100vh - 20px)}}
