/* Chimney Masters content photos (v1).
   Loaded after styles.css on content pages only. Kept as a separate,
   versioned file so the shared stylesheet stays unchanged. */

/* Shared figure style: one look across every page */
.cm-figure{
  margin:26px 0 8px;
  width:100%;
  max-width:760px;
  border-radius:var(--radius,18px);
  border:1px solid var(--border,#d8cec0);
  border-bottom:4px solid var(--red,#9f2f2f);
  overflow:hidden;
  background:var(--charcoal,#252525);
  box-shadow:0 12px 30px rgba(19,23,24,.12);
}
.cm-figure img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/10;
  object-fit:cover;
  object-position:center;
}

/* Smaller thumbnail variant for the services overview */
.cm-figure--thumb{
  max-width:340px;
  margin:6px 0 14px;
  border-radius:14px;
  box-shadow:0 7px 20px rgba(20,23,24,.08);
}

/* Contact page: photo in the left column, under the service-area text */
.form-grid .cm-figure{max-width:100%;margin-top:22px}

/* Homepage hero: single background photo with a dark overlay
   so the white headline and copy stay fully readable */
.hero.has-photo .hero-photo{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:62% 45%;
}
.hero.has-photo:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(17,20,21,.94) 0%,rgba(17,20,21,.86) 42%,rgba(30,22,22,.62) 72%,rgba(53,29,31,.5) 100%),
    linear-gradient(0deg,rgba(17,20,21,.45) 0%,rgba(17,20,21,0) 40%);
}
.hero.has-photo .container{z-index:2}

@media(max-width:720px){
  .cm-figure{margin:20px 0 6px;border-radius:14px}
  .cm-figure--thumb{max-width:100%}
  .hero.has-photo .hero-photo{object-position:58% 40%}
  .hero.has-photo:before{
    background:linear-gradient(180deg,rgba(17,20,21,.84) 0%,rgba(17,20,21,.9) 55%,rgba(17,20,21,.94) 100%);
  }
}
