/* ICHA V4.6 — Our Work editorial image pass
 * Scope: CMS-managed imagery inside the existing Our Work overlay/drawer only.
 * No card, page-layout or global visual changes.
 */

.v2-detail-editorial-lead,
.v2-detail-editorial-gallery figure {
  margin: 0;
}

.v2-detail-editorial-lead {
  margin: 0 0 clamp(28px, 4vw, 38px);
}

.v2-detail-editorial-lead img,
.v2-detail-editorial-gallery img {
  display: block;
  width: 100%;
  background: #f2f2ef;
  object-fit: cover;
}

.v2-detail-editorial-lead img {
  aspect-ratio: 16 / 9;
  max-height: 430px;
}

.v2-detail-editorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(36px, 5vw, 50px) 0 0;
  padding-top: clamp(28px, 4vw, 38px);
  border-top: 1px solid var(--v1-rule);
}

.v2-detail-editorial-gallery figure:only-child {
  grid-column: 1 / -1;
}

.v2-detail-editorial-gallery img {
  aspect-ratio: 4 / 3;
  height: 100%;
  min-height: 190px;
  max-height: 320px;
}

.v2-detail-editorial-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  color: #686868;
  font-size: .73rem;
  line-height: 1.45;
}

.v2-detail-editorial-credit {
  font-weight: 700;
}

@media (max-width: 640px) {
  .v2-detail-editorial-gallery {
    grid-template-columns: 1fr;
  }

  .v2-detail-editorial-gallery figure:only-child {
    grid-column: auto;
  }

  .v2-detail-editorial-gallery img {
    min-height: 0;
    max-height: none;
  }
}
