/* Isolated styles for subpages — does not alter homepage styles.css */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.page-card {
  background: rgba(207, 228, 187, 0.95);
  color: #111;
  padding: 1.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  margin-bottom: 1.5rem;
}
.page-card h1,
.page-card h2,
.page-card h3 {
  color: #222;
  margin: 0 0 0.75rem;
  text-align: left;
}
.page-card h1 { font-size: 1.75rem; }
.page-card h2 { font-size: 1.25rem; margin-top: 1.25rem; }
.page-card p,
.page-card li {
  color: #111;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.page-card ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.page-card a {
  color: #9a4e0e;
  font-weight: 600;
}
.page-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.page-nav-links a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
.page-hero-bar {
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 1.25rem 1rem;
}
.page-hero-bar .wrap {
  max-width: 900px;
  margin: 0 auto;
}
.page-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}
.page-gallery figure {
  margin: 0;
  flex: 1 1 260px;
  max-width: 400px;
}
.page-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.page-gallery figcaption {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: #222;
}
/* Our Crew at Work only: full photos at natural aspect ratio (no fixed-height crop) */
.page-gallery.page-gallery-uncropped img {
  height: auto;
  object-fit: contain;
}
.sources {
  font-size: 0.9rem;
}
.sources a { word-break: break-word; }
.note-box {
  background: rgba(255,255,255,0.92);
  border-left: 4px solid #e67e22;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  color: #111;
  max-width: 1000px;
  margin: 1.5rem auto;
}
.note-box a { color: #9a4e0e; font-weight: 600; }
.service-item a.service-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: #9a4e0e;
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .page-card { padding: 1.25rem; }
  .page-gallery img { height: 180px; }
  .page-gallery.page-gallery-uncropped img { height: auto; }
}

/* Homepage gallery: anchors wrapping imgs must match bare-img box (desktop 300x200; mobile full width max 400) */
.gallery-images > a {
  display: block;
  box-sizing: border-box;
  width: 300px;
  flex: 0 0 auto;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.gallery-images > a img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-images > a:focus-visible {
  outline: 3px solid #e67e22;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .gallery-images > a {
    width: 100%;
    max-width: 400px;
  }
  .gallery-images > a img {
    width: 100%;
    max-width: 400px;
    height: 200px;
  }
}

/* Service-photo additions only: full images, including every collage panel. */
.page-gallery.service-photo-collages { display: block; }
.page-gallery.service-photo-collages figure { max-width: 100%; margin: 0 0 1.25rem; }
.page-gallery.service-photo-collages img,
.page-gallery.service-photo-pairs img { height: auto; object-fit: contain; }
.page-gallery.service-photo-pairs figure { min-width: 0; }
.page-gallery.service-photo-pairs a,
.page-gallery.service-photo-collages a { display: block; }


/* Project gallery (job collages): compact grid, no crop of collage labels */
.project-collage-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.page-card ul.project-collage-grid { padding-left: 0; margin-left: 0; }
.project-collage-grid a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #18231d; }
.project-collage-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-collage-grid a:hover img, .project-collage-grid a:focus-visible img { outline: 2px solid #e67e22; outline-offset: 2px; }
.page-card h2.collage-service { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
footer a { color: #ddd; text-decoration: underline; }
footer a:hover, footer a:focus-visible { color: #fff; }
@media (max-width: 390px) {
  .project-collage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
