:root {
  --photo-radius: 24px;
}

/* Preserve the complete boat-and-bridge composition at every screen width. */
#services > div[style*="background-image"] {
  background-image: url('/assets/inventory-bridge.webp') !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

#services > div[style*="background-image"] > div {
  display: none;
}

/* These backgrounds previously repeated boats already featured elsewhere. */
.hero-bg {
  background-image: radial-gradient(ellipse at 80% 45%, #123039, #080a0b 75%) !important;
}

#why::before {
  content: none;
}

#consign-cta,
#contact {
  background-image: linear-gradient(135deg, #14232a, #0d0d0d) !important;
}

.boat-sale-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #075A82;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Include background-based photos, not just standard image elements. */
img,
.boat-card-img,
.about-neil-photo,
.about-collage > div,
#services > div[style*="background-image"],
.inventory-photography > div:first-child,
.inventory-photography > div:nth-child(2) > div:first-child {
  border-radius: var(--photo-radius) !important;
}

.hero-bg,
#why,
#consign-cta,
#contact {
  border-radius: var(--photo-radius);
  overflow: hidden;
}

#why::before,
#consign-cta::before,
#contact::before {
  border-radius: inherit;
}

.about-collage {
  gap: 12px !important;
  border-radius: 0 !important;
}

.boat-card {
  border-radius: var(--photo-radius);
}

.inventory-photography > div:nth-child(2) {
  gap: 24px !important;
  overflow: visible !important;
}

.inventory-photography > div:nth-child(2) > div:last-child {
  border-radius: var(--photo-radius);
}

.service-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 22px 0;
}

.process-photography {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.process-photography figure {
  min-width: 0;
  margin: 0;
}

.process-photography img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.process-photography figcaption {
  color: #cccccc;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 14px;
}

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 56%;
  margin-top: 32px;
}

@media (max-width: 600px) {
  :root {
    --photo-radius: 20px;
  }

  .process-photography {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .service-card {
    padding: 32px 24px;
  }
}