/* Beaver Roofing / Metal Sheet: single complete project gallery */
.metal-project{max-width:1260px;margin:0 auto 68px;padding:32px clamp(16px,4vw,42px);color:#101927}
.metal-project-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}
.metal-project-heading>div{max-width:760px}
.metal-project-heading h2{font-size:clamp(26px,3.2vw,39px);line-height:1.18;margin:6px 0 10px}
.metal-project-heading p:last-child{font-size:16px;line-height:1.65;color:#626c76}
.metal-project-heading .button{flex-shrink:0}
.metal-project figure{margin:0;overflow:hidden;border-radius:14px;background:#f3f5f7;border:1px solid #e2e5e9}
.metal-project figure button{display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in}
.metal-project figure img{display:block;width:100%;height:auto;object-fit:cover}
.metal-project figure figcaption{padding:12px 15px;background:#fff;font-size:14px;font-weight:700}
.metal-project-lead{margin-bottom:16px!important}
.metal-project-lead img{max-height:630px;object-fit:cover;object-position:center}
.metal-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.metal-project-grid img{aspect-ratio:4/3;background:#e9edf2;object-fit:cover}
.metal-project-dialog{position:fixed;inset:0;margin:auto;max-width:95vw;max-height:95dvh;padding:48px 46px 26px;border:0;border-radius:12px;background:#111b29;color:white;box-shadow:0 30px 80px #0009}
.metal-project-dialog::backdrop{background:#000e}
.metal-project-dialog img{display:block;max-width:100%;max-height:calc(95dvh - 120px);object-fit:contain;margin:auto}
.metal-project-dialog p{text-align:center;margin:12px 0 0}
.metal-project-dialog>button{position:absolute;border:0;background:#ffffff24;color:white;cursor:pointer;font-size:28px;border-radius:30px;width:40px;height:40px}
.metal-project-close{right:4px;top:4px}.metal-project-prev{top:50%;left:3px}.metal-project-next{top:50%;right:3px}
@media(max-width:820px){.metal-project-heading{align-items:flex-start;flex-direction:column}.metal-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.metal-project{padding:22px 14px}.metal-project-heading .button{width:100%;text-align:center}.metal-project-grid{grid-template-columns:1fr}.metal-project-grid img{aspect-ratio:auto}.metal-project-dialog{max-width:100vw;max-height:100dvh;padding:48px 28px 22px;border-radius:0}.metal-project-dialog>button{width:29px;font-size:24px}}

/* High-contrast Metal Sheet gallery: dark body and light project copy */
.service-detail-page .metal-project {
  color: #f7f9fc;
  background: linear-gradient(145deg, #142133 0%, #0d1624 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.20);
}
.service-detail-page .metal-project-heading h2 {
  color: #ffffff;
  letter-spacing: -0.02em;
}
.service-detail-page .metal-project-heading p:last-child {
  color: #e1e8f3;
}
.service-detail-page .metal-project .section-kicker {
  color: #ffda46;
}
.service-detail-page .metal-project figure figcaption {
  color: #152137;
  background: #f8fafc;
}
.service-detail-page.metal-sheet-page .service-detail-copy > p:not(.section-kicker) {
  color: #ecf1f7;
  line-height: 1.65;
}

/* Keep the featured first-project photo readable on phones and desktop. */
.service-detail-page.metal-sheet-page .service-detail-media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
