/* Artist detail portfolio: compact Southside-style masonry rhythm.
   Mobile: 1 column. Tablet: 2 columns. Desktop: 3 columns. */
section.bg-ink > div > div.grid:has(> figure > button img) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

section.bg-ink > div > div.grid:has(> figure > button img) > figure {
  width: 100%;
  aspect-ratio: 4 / 5 !important;
  border-radius: 14px !important;
}

section.bg-ink > div > div.grid:has(> figure > button img) > figure img,
section.bg-ink > div > div.grid:has(> figure > button img) > figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  section.bg-ink > div > div.grid:has(> figure > button img) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  section.bg-ink > div > div.grid:has(> figure > button img) > figure {
    border-radius: 16px !important;
  }
}

@media (min-width: 1024px) {
  section.bg-ink > div > div.grid:has(> figure > button img) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  section.bg-ink > div > div.grid:has(> figure > button img) > figure {
    aspect-ratio: 4 / 5 !important;
    border-radius: 18px !important;
  }
}

@media (min-width: 1440px) {
  section.bg-ink > div > div.grid:has(> figure > button img) {
    gap: 18px;
  }
}
