/* Documentary project photograph: the entire installation remains visible. */
.project-feature .project-visual {
  min-height: 565px;
  background: #173c2b;
  isolation: isolate;
}

.project-feature .project-photo {
  inset: -30px;
  background: url('damar-village-retouched.webp') center center / cover no-repeat;
  filter: blur(22px) brightness(.48) saturate(1.18);
  transform: scale(1.07);
  transition: transform 1.2s ease;
}

.project-feature:hover .project-photo { transform: scale(1.11); }

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 49, 32, .32), transparent 50%, rgba(8, 37, 23, .56));
  pointer-events: none;
  z-index: 0;
}

.project-installation-image {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: auto;
  height: calc(100% - 44px);
  max-width: calc(100% - 70px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  box-shadow: 0 22px 55px rgba(1, 17, 10, .44);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.project-feature:hover .project-installation-image {
  transform: translate(-50%, -50%) scale(1.02);
}

.project-feature .photo-tag,
.project-photo-link {
  z-index: 2;
  bottom: 23px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.project-feature .photo-tag {
  left: 22px;
  padding: 11px 14px;
  background: #e5f3a5;
  color: #164e2b;
}

.project-photo-link {
  position: absolute;
  right: 22px;
  padding: 11px 14px;
  background: rgba(12, 38, 23, .82);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background .2s, transform .2s;
}

.project-photo-link:hover,
.project-photo-link:focus-visible {
  background: #257448;
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .project-feature .project-visual { min-height: 475px; }
  .project-installation-image { height: calc(100% - 34px); max-width: calc(100% - 35px); }
  .project-feature .photo-tag, .project-photo-link { font-size: 8px; padding: 10px 11px; bottom: 14px; }
  .project-feature .photo-tag { left: 12px; }
  .project-photo-link { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-photo, .project-installation-image, .project-photo-link { transition: none !important; }
}
