.work-photo {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 clamp(44px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d0d;
}

.work-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08) 38%, rgba(17, 17, 17, 0.78) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.18), transparent 34%, rgba(17, 17, 17, 0.08));
}

.work-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  filter: brightness(0.82) contrast(0.92) saturate(0.78);
}

.work-photo--patch img,
.work-photo--conversion img,
.work-photo--products img { object-position: 50% 50%; }

.work-photo figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(18px, 2.6vw, 34px);
  left: clamp(18px, 2.6vw, 38px);
  display: flex;
  gap: 18px;
  align-items: baseline;
  color: #96928a;
  font-size: 11px;
  line-height: 1.5;
}

.work-photo figcaption b {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .work-photo {
    aspect-ratio: 4 / 5;
    margin-bottom: 42px;
  }

  .work-photo--patch img,
  .work-photo--conversion img,
  .work-photo--products img { object-position: 50% 50%; }

  .work-photo figcaption {
    display: grid;
    gap: 6px;
    font-size: 10px;
  }
}
