/* Keep Harry's photography complete while retaining the reference scroll layout. */

/* The gallery keeps its existing card widths and horizontal movement. */
.work-card {
  display: flex;
  flex-direction: column;
  background: #171717;
}

.work-card > .work-image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  opacity: 1;
}

.work-card > .work-card-content {
  position: relative;
  inset: auto;
  flex: 1;
  align-items: stretch;
  gap: 1.25rem;
  background: none;
}

.work-card-content-top-layout {
  gap: 0.5rem;
  align-items: flex-start;
}

.work-label-wrap {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-card-content .op80 {
  text-shadow: none;
}

/* Small previews show the full frame, with no overlapping photographs. */
.about-card-bottom-layout-left {
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.65rem;
}

.about-card-bottom-layout-left > .about-card-img-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-card-bottom-layout-left .about-card-img {
  display: block;
  flex: 0 0 auto;
  width: clamp(56px, 4.4vw, 80px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.about-card-bottom-layout-left .about-card-img.is-riight-side {
  margin-left: 0;
}

/* Expanded details provide usable photographs instead of more thumbnails. */
.popup-card-wrap {
  max-height: min(680px, 65svh);
  border-radius: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.popup-card-top-item {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  align-items: center;
  gap: 16px;
}
.popup-card-top-item > :first-child { min-width: 0; }
.popup-close { flex: none; min-width: 36px; min-height: 36px; }

.popup-card-wrap .popup-card {
  gap: 1.5rem;
}

.popup-card-wrap .popup-card-item {
  max-height: 65svh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.popup-card-bottom-item > .about-card-img-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.popup-card-wrap .about-card-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 32svh;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

.popup-card-bottom-item .popup-heading,
.popup-card-bottom-item p {
  margin: 0;
}

/* The builder supplies the original portrait for the animated chat avatar. */
.cta-wrap > .cta_img {
  flex: 0 0 auto;
  width: clamp(52px, 5vw, 76px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
