/* Each slide has its own focal point. The viewer opens the uncropped photo. */
body[data-design] .photo-gallery .gallery-photo {
  object-fit: cover;
  object-position: 50% var(--focus-y, 50%);
}

.photo-gallery::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 3.6rem;
  pointer-events: none;
  background: linear-gradient(to top, rgb(10 24 17 / .38), transparent);
}

@media (min-width: 761px) {
  body[data-design="neighbourhood"] .hero-photo.photo-gallery {
    height: clamp(23rem, 41vw, 43rem);
  }
}

@media (max-width: 760px) {
  body[data-design] .hero-photo.photo-gallery {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/2;
  }

  body[data-design="ruby"] .hero-photo.photo-gallery {
    clip-path: none;
  }

  body[data-design] .services .cloth-photo,
  body[data-design] .about .about-photo {
    height: auto;
    min-height: 0;
    max-height: 28rem;
    aspect-ratio: 1 / 1.12;
  }
}

@media (max-width: 480px) {
  body[data-design] .hero-photo.photo-gallery { aspect-ratio: 4/3; }
}

html[data-shade="garden"] { --bar-height: 0rem; }

@media (max-width: 760px) {
  body[data-design="signature"] .services .cloth-photo {
    justify-self: center;
    width: calc(100% - var(--section-pad) - var(--section-pad));
    max-height: none;
    aspect-ratio: 1 / 1.06;
    margin: 0;
  }
}
