/* Real-photo layer added on top of the existing portfolio-inspired visual system. */
.real-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  isolation: isolate;
  background: #cfc7bb;
}
.hero-media::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(24,24,24,.20), rgba(24,24,24,.03) 48%),
    linear-gradient(0deg, rgba(24,24,24,.62), rgba(24,24,24,.04) 52%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-position: center;
  transform: scale(1.015);
}
.photo-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, rgba(24,24,24,.05), transparent 48%);
  pointer-events: none;
}

.photo-visual {
  background: #161616;
}
.project-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 800ms cubic-bezier(.22,1,.36,1), filter 500ms ease;
}
.project:hover .project-photo {
  transform: scale(1.035);
}
.photo-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34)),
    linear-gradient(90deg, rgba(246,143,75,.08), transparent 45%);
  content: "";
  pointer-events: none;
}
.photo-index {
  position: absolute;
  z-index: 3;
  top: 2rem;
  left: 2rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(24,24,24,.18);
  color: rgba(255,255,255,.92);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  backdrop-filter: blur(10px);
}
.photo-credit {
  position: absolute;
  z-index: 4;
  right: 1.4rem;
  bottom: 1.25rem;
  color: rgba(255,255,255,.66);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.photo-credit:hover,
.photo-credit:focus-visible {
  color: #fff;
}
.hero-media .photo-credit {
  right: 2.5rem;
  bottom: 6.3rem;
}

@media (max-width: 900px) {
  .hero-photo {
    object-position: center center;
  }
  .hero-media .photo-credit {
    right: 1.5rem;
    bottom: 5.6rem;
  }
}

@media (max-width: 640px) {
  .photo-index {
    top: 1rem;
    left: 1rem;
  }
  .photo-credit {
    right: 1rem;
    bottom: 1rem;
    font-size: .5rem;
  }
  .hero-media .photo-credit {
    right: 1rem;
    bottom: 5.2rem;
  }
  .project-photo {
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-photo {
    transition: none;
  }
  .project:hover .project-photo {
    transform: none;
  }
}
