/**
 * StanceArena — user-upload-pic.css
 * User-uploaded / attached images: parent frame + object-fit cover.
 * Flags (flagcdn): same frame, object-fit contain (no stretch).
 */
.user-uploaded-pic-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  height: auto;
  min-height: 0;
}

.user-uploaded-pic-frame > .user-uploaded-pic,
.user-uploaded-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: none;
}

.flag-pic-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  height: auto;
  min-height: 0;
}

.flag-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
