/* ============================================
   SUB PAGE HERO COLLAGE — Editorial
   ============================================ */

.sphc { position: relative; overflow: hidden; }

/* Split Layout */
.sphc__split {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  width: 100%;
  min-height: 250px;
}

@media (min-width: 991px) {
  .sphc__split {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 300px;
  }
  .sphc__split--flipped { flex-direction: row-reverse; }
}

/* Content Side */
.sphc__content-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

@media (min-width: 991px) {
  .sphc__content-side { padding: 64px 48px; }
}

.sphc__content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Eyebrow */
.sphc__eyebrow {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* Heading */
.sphc__heading {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
@media (min-width: 768px)  { .sphc__heading { font-size: 48px; } }
@media (min-width: 1200px) { .sphc__heading { font-size: 56px; } }

/* Subheading */
.sphc__subheading {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.5;
  max-width: 480px;
}
@media (min-width: 768px) { .sphc__subheading { font-size: 17px; } }

/* CTA */
.sphc__cta-wrap { margin-top: 8px; }

.sphc__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  background: transparent;
  text-decoration: none;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: inherit;
  transition: border-color 0.3s ease;
}
.sphc__cta:hover { border-color: rgba(255,255,255,0.5); }
.sphc__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sphc__cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Light bg overrides for CTA */
.bg-white .sphc__cta,
.bg-neutral-light .sphc__cta {
  border-color: rgba(0,0,0,0.15);
  color: inherit;
}
.bg-white .sphc__cta:hover,
.bg-neutral-light .sphc__cta:hover {
  border-color: rgba(0,0,0,0.4);
}

/* Collage Side */
.sphc__collage-side {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

/* Image Grid / Masonry */
.sphc__grid {
  width: 100%;
  height: calc(100% + 60px);
  column-count: 3;
  column-gap: 4px;
  padding: 0;
  margin-top: -30px;
  margin-bottom: -30px;
}

@media (min-width: 991px) {
  .sphc__grid {
    height: calc(100% + 80px);
    column-gap: 4px;
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

/* Grid Items — sharp edges */
.sphc__grid-item {
  position: relative;
  overflow: hidden;
  background-color: rgba(0,0,0,0.05);
  margin-bottom: 4px;
  break-inside: avoid;
  display: block;
}

/* Masonry varied heights */
.sphc__grid-item:nth-child(1) { height: 100px; }
.sphc__grid-item:nth-child(2) { height: 140px; }
.sphc__grid-item:nth-child(3) { height: 120px; }
.sphc__grid-item:nth-child(4) { height: 160px; }
.sphc__grid-item:nth-child(5) { height: 90px; }
.sphc__grid-item:nth-child(6) { height: 130px; }
.sphc__grid-item:nth-child(7) { height: 110px; }
.sphc__grid-item:nth-child(8) { height: 150px; }
.sphc__grid-item:nth-child(9) { height: 120px; }
.sphc__grid-item:nth-child(10) { height: 140px; }
.sphc__grid-item:nth-child(n+11) { height: 125px; }

@media (min-width: 991px) {
  .sphc__grid-item:nth-child(1) { height: 140px; }
  .sphc__grid-item:nth-child(2) { height: 190px; }
  .sphc__grid-item:nth-child(3) { height: 160px; }
  .sphc__grid-item:nth-child(4) { height: 210px; }
  .sphc__grid-item:nth-child(5) { height: 120px; }
  .sphc__grid-item:nth-child(6) { height: 180px; }
  .sphc__grid-item:nth-child(7) { height: 150px; }
  .sphc__grid-item:nth-child(8) { height: 200px; }
  .sphc__grid-item:nth-child(9) { height: 160px; }
  .sphc__grid-item:nth-child(10) { height: 190px; }
  .sphc__grid-item:nth-child(n+11) { height: 170px; }
}

.sphc__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sphc__placeholder-img {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.08);
}

/* Mobile: hide last 3 images */
@media (max-width: 990px) {
  .sphc__grid-item:nth-child(7),
  .sphc__grid-item:nth-child(8),
  .sphc__grid-item:nth-child(9) { display: none; }
}
