.qhs-portfolio{--qhs-ink:#172321;--qhs-accent:#b88c39;--qhs-paper:#f5f3ed;max-width:1200px;margin:0 auto;padding:clamp(20px,4vw,56px);color:var(--qhs-ink);font-family:inherit;font-size:18px;line-height:1.65;box-sizing:border-box}.qhs-portfolio *{box-sizing:border-box}.qhs-portfolio h1{font-size:clamp(36px,5vw,64px);line-height:1.08;max-width:850px;margin:16px 0 24px;letter-spacing:-.035em}.qhs-portfolio h2{font-size:clamp(24px,3vw,32px);line-height:1.25;margin:0 0 18px}.qhs-portfolio a{color:inherit}.qhs-eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.qhs-lead{font-size:clamp(19px,2vw,24px);max-width:760px}.qhs-portfolio-hero{padding:clamp(24px,5vw,60px);background:var(--qhs-paper);border-top:4px solid var(--qhs-accent);border-radius:18px}.qhs-portfolio .qhs-portfolio-button{display:inline-block;background:#171b1a;color:#fff!important;border:0;border-radius:8px;padding:13px 20px;text-decoration:none;font:inherit;font-weight:600;cursor:pointer;line-height:1.4}.qhs-portfolio a:focus-visible,.qhs-portfolio button:focus-visible,.qhs-portfolio select:focus-visible{outline:3px solid #916611;outline-offset:4px}.qhs-portfolio-filters{display:flex;gap:16px;align-items:end;margin:36px 0;flex-wrap:wrap}.qhs-portfolio-filters label{flex:1;min-width:180px;font-weight:600}.qhs-portfolio-filters select{display:block;width:100%;font:inherit;padding:11px;border:1px solid #b8bdb6;border-radius:8px;background:white;color:var(--qhs-ink);min-height:52px}.qhs-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.qhs-project-card{border:1px solid #dedfd7;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.qhs-card-cover{display:block;background:var(--qhs-paper);aspect-ratio:4/3}.qhs-card-cover img{display:block;width:100%;height:100%;object-fit:cover}.qhs-card-body{padding:24px}.qhs-card-body h2{font-size:24px}.qhs-card-body h2 a{text-decoration:none}.qhs-project-placeholder{display:grid;place-items:center;height:100%;font-size:38px;color:#77663f;letter-spacing:.12em}.qhs-card-body p{overflow-wrap:anywhere}.qhs-card-body>a{font-weight:700;text-underline-offset:5px}.qhs-case-intro{padding-bottom:24px;border-bottom:1px solid #ddd}.qhs-case section{margin:36px 0}.qhs-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px}.qhs-portfolio figure{margin:0}.qhs-comparison figure{position:relative;background:var(--qhs-paper);border-radius:12px;overflow:hidden}.qhs-comparison img{display:block;width:100%;height:360px;object-fit:contain}.qhs-comparison figcaption{padding:12px 20px;font-weight:700}.qhs-case-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}.qhs-case-sections p{white-space:normal;overflow-wrap:anywhere}.qhs-project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.qhs-project-gallery img{display:block;width:100%;height:auto;border-radius:10px}.qhs-project-cta{padding:32px;background:var(--qhs-paper);border-left:4px solid var(--qhs-accent);border-radius:12px;margin:40px 0}.qhs-portfolio-pagination ul{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0}.qhs-portfolio-empty{padding:30px;background:var(--qhs-paper)}.qhs-media-preview img{max-width:140px;height:auto;border-radius:8px}@media(max-width:960px){.qhs-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qhs-case-sections{grid-template-columns:1fr}.qhs-case-sections section{margin:20px 0}.qhs-comparison img{height:280px}}@media(max-width:600px){.qhs-project-grid,.qhs-comparison,.qhs-project-gallery{grid-template-columns:1fr}.qhs-portfolio-filters{display:grid;grid-template-columns:1fr}.qhs-portfolio-filters label{min-width:0}.qhs-portfolio{padding:20px 16px}.qhs-card-body{padding:20px}.qhs-comparison img{height:auto;max-height:460px}.qhs-portfolio-hero{padding:26px 22px}}
.qhs-portfolio .qhs-card-body h3{font-size:24px;line-height:1.25;margin:0 0 18px}.qhs-portfolio .qhs-card-body h3 a{text-decoration:none}.qhs-local .qhs-town-projects{max-width:none;padding:0;margin:40px 0}.qhs-project-town-link{margin:20px 0;font-weight:600}.qhs-project-video-link{margin:14px 0 0}

/* Project cover follows the last gallery photo's proportions and column width. */
body.single-qhs_project .post-thumbnail,
body.single-qhs_project .featured-image{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden;margin-bottom:24px}
body.single-qhs_project .qhs-project-featured-image{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:calc((min(100vw,1200px) - clamp(40px,8vw,112px) - 20px)/2);max-width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden;margin:20px auto 28px;padding:0;background:#f5f3ed;border-radius:10px;aspect-ratio:var(--qhs-cover-ratio,16 / 9)!important}
body.single-qhs_project .qhs-project-featured-image img{display:block!important;position:absolute!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;transform:none!important;margin:0!important;inset:0!important}
body.single-qhs_project .qhs-project-featured-image{position:relative!important}
@media(max-width:600px){body.single-qhs_project .qhs-project-featured-image{width:calc(100% - 32px);margin:16px auto 20px}}

/* Project case studies do not use the theme's blog sidebar. Footer widgets stay intact. */
body.single-qhs_project #secondary,
body.single-qhs_project #sidebar,
body.single-qhs_project .site-content > .widget-area,
body.single-qhs_project .site-content .content-area + .widget-area{display:none!important}
body.single-qhs_project #primary{float:none!important;width:100%!important;max-width:100%!important;margin-right:0!important}
