/* Shared photo styles for home, services, about and contact. Uses the site's design tokens. */

.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--navy-light);
  box-shadow: 0 18px 40px -22px var(--accent-tint);
}
.photo--banner { aspect-ratio: 21 / 9; margin-top: 3rem; object-position: 50% 78%; }
.photo--side { aspect-ratio: 4 / 3; object-position: 50% 22%; margin-top: 2rem; }
.photo--split { aspect-ratio: 16 / 10; }

/* Text + photo header (services) */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

/* Home hero: in the flow on small screens, floated to the right on wide ones */
.hero-photo { margin-top: 2.5rem; max-width: 560px; aspect-ratio: 3 / 2; position: relative; z-index: 1; }
@media (min-width: 1360px) {
  .hero-photo {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: min(30vw, 440px);
    max-width: none;
    margin: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Two-column text blocks that collapse on small screens (replaces inline 1fr 1fr grids) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col--center { align-items: center; }
.two-col--wide { gap: 5rem; align-items: stretch; }
.two-col > *, .about-grid > * { min-width: 0; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .photo--banner { aspect-ratio: 16 / 9; }
}
