/* Case management uses the same compact portrait presentation as the gallery. */
.ipstudio-case-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.ipstudio-case-card {
  flex: none;
  width: 220px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ipstudio-case-cover {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}

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

.ipstudio-case-player {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.ipstudio-case-player video {
  display: block;
  width: min(100%, 270px, calc((100dvh - 220px) * 9 / 16));
  height: auto;
  max-height: none;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  object-fit: contain;
}
