/* Work list thumbnails that need more than a single cropped image.
   Loaded on /work after style.css. */

/* UIX: the elevation diagram, pinned left so any overflow is cut on the right. */
.work-card__media--elevation {
  background: #343434;
}

.work-card__media--elevation img {
  object-position: left center;
}

/* INHR+: the transparent device cutout standing on the bottom edge. */
.work-card__media--cutout {
  place-items: end center;
  padding-bottom: 0;
}

.work-card__media--cutout img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* Agent-ready: the case cover's three overlapping screens on the gradient stage. */
.work-card__media--stack {
  background:
    radial-gradient(100% 70% at 80% 110%, rgba(249, 186, 140, 0.8) 0%, transparent 60%),
    radial-gradient(80% 60% at 10% 120%, rgba(125, 87, 171, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #e0e0dd 0%, #ece4da 100%);
}

.work-card__media--stack img {
  position: absolute;
  width: 44%;
  height: auto;
  object-fit: initial;
  border-radius: clamp(3px, 0.5vw, 8px);
  box-shadow: 0 30px 80px -30px rgba(40, 30, 60, 0.45);
}

.work-card__media--stack .stack-shot--left { left: 6%; top: 8%; }
.work-card__media--stack .stack-shot--right { right: 6%; top: 14%; }
.work-card__media--stack .stack-shot--front {
  left: 50%;
  top: 25%;
  width: 48%;
  transform: translateX(-50%);
  box-shadow: 0 40px 100px -30px rgba(40, 30, 60, 0.55);
}

.work-card__link:hover .work-card__media--stack .stack-shot--front,
.work-card__link:focus-visible .work-card__media--stack .stack-shot--front {
  transform: translateX(-50%) scale(1.03);
}

@media (max-width: 899px) {
  .work-card__media--stack img { width: 56%; }
  .work-card__media--stack .stack-shot--left { top: 12%; }
  .work-card__media--stack .stack-shot--right { top: 19%; }
  .work-card__media--stack .stack-shot--front { width: 60%; top: 33%; }
}

/* About: the profile photo fills its 4:5 frame. */
.about__photo {
  margin: 0;
  overflow: hidden;
}

.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
