
.page-hero {
  position: relative; min-height: 55vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 140px 4vw 80px;
  flex-direction: column; gap: 1.5rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(232,118,26,.12) 0%, transparent 70%),
    linear-gradient(175deg, #0d1f4a 0%, #0A1628 60%, #050d1a 100%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,190,26,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,190,26,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 2; text-align: center; }
  .gallery-page {
    background: #0a0f18;
  }

.svc-section {
  background: var(--navy);
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}
 
/* Even sections (2nd, 4th, 6th...) — Demolition, Finishing, Plumbing, Glass */
.svc-section.svc-alt {
  background: #050d1a;
  box-shadow: 0 0 0 100vmax #050d1a;
  clip-path: inset(0 -100vmax);
  padding-top: 1em;
}
  /* --- Content / sections (unchanged from before) --- */
  .gallery-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    padding-bottom: 0;
  }
 
  .service-section {
    margin-bottom: 2.5rem;
    padding-bottom: 20px;
    /* scroll-margin-top: calc(var(--site-nav-height, 80px) + 20px); */
  }
  .service-section:last-child {
    margin-bottom: 0;
  }
  .service-section h2 {
    color: #f4f4f2;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 12px;
    border-bottom: 0.5px solid #1c2432;
  }
 
  .image-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
 
  /* --- Images: proper aspect ratio instead of a fixed height,
     so photos never look stretched, squashed, or cropped oddly
     regardless of their original dimensions. Plus a soft shadow
     for depth against the dark background. --- */
  .img-tile {
    /* background: #131a26; */
    border-radius: 12px;
    border: 0.5px solid #1c2432;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, border-color 0.35s ease,
                opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(24px);
  }
 
  .img-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
 
  .img-tile.in-view {
    opacity: 1;
    transform: translateY(0);
  }
 
  .img-tile:hover {
    transform: scale(1.015);
    border-color: var(--blue2);
  }
 
  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 768px) {
    /* .gallery-header {
      padding: 3rem 1.5rem 2.5rem;
    } */
    /* .gallery-title {
      font-size: 26px;
    } */
    .gallery-content {
      padding: 2rem 1.25rem;
      padding-bottom: 0;
    }
    .service-section h2 {
      font-size: 17px;
    }
    .img-tile {
      aspect-ratio: 16 / 11;
      border-radius: 10px;
    }
  }
 
  @media (max-width: 420px) {
    .gallery-title {
      font-size: 22px;
    }
    .img-tile {
      aspect-ratio: 4 / 3;
      border-radius: 8px;
    }
  }
 
  @media (prefers-reduced-motion: reduce) {
    .img-tile {
      transition: none;
      opacity: 1;
      transform: none;
    }
  }