/* Profile portraits stay square inside their circular frame; photo metadata is
   normalized before saving by SettingsController. */
body.fansflex-app.ff-route-profile .profile-avatar-wrap {
  width: clamp(88px, 9vw, 120px) !important;
  height: clamp(88px, 9vw, 120px) !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

body.fansflex-app.ff-route-profile .profile-avatar-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}

body.fansflex-app.ff-route-profile .profile-cover-bg {
  background: linear-gradient(145deg, #e7f1f9 0%, #d9e7f2 52%, #c4d4e0 100%);
}

body.fansflex-app.ff-route-profile .profile-cover-bg > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

body.fansflex-app.ff-route-my-settings .settings-content .profile-cover-bg {
  background: linear-gradient(145deg, #e7f1f9 0%, #d9e7f2 52%, #c4d4e0 100%);
}

body.fansflex-app.ff-route-my-settings .settings-content .avatar-holder .card-img-top {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.fansflex-app :is(.user-avatar, .ff119-profile-link img) {
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}

/* Shared post author header: reserve a square avatar even if remote media fails. */
body.fansflex-app .post-box .post-header {
  padding: 14px 16px !important;
}
body.fansflex-app .post-box .post-header .ff126-post-heading {
  align-items: center;
  min-width: 0;
}
body.fansflex-app .post-box .post-header .ff126-post-heading > .avatar-wrapper {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: #fffaf2;
}
body.fansflex-app .post-box .post-header .ff126-post-heading .avatar {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}
body.fansflex-app .post-box .post-header .ff126-post-heading > .post-details {
  flex: 1 1 0%;
  width: auto !important;
  min-width: 0;
  padding-inline-start: 12px !important;
}
.ff126-post-heading-details { align-items: center; gap: 12px; min-width: 0; }
.ff126-post-identity { flex: 1 1 0%; min-width: 0; }
.ff126-post-name-row { min-width: 0; line-height: 1.4; }
.ff126-post-name-row > a { display: block; min-width: 0; font-size: 14px; }
.ff126-post-name-row .ff100-post-owner-label { flex-shrink: 0; margin-inline-start: 6px; white-space: nowrap; }
body.fansflex-app .post-box .post-header .ff126-post-handle {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
}
.ff126-post-meta { flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 50%; }
.ff126-post-time { padding-inline-end: 4px; }
.ff126-post-time > a { white-space: nowrap; font-size: 12px; }
@media (max-width: 575.98px) {
  .ff126-post-name-row .ff126-owner-copy {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 767.98px) {
  body.fansflex-app .post-box .post-header { padding: 12px !important; }
  body.fansflex-app .post-box .post-header .ff126-post-heading > .avatar-wrapper {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
  }
  body.fansflex-app .post-box .post-header .ff126-post-heading > .post-details { padding-inline-start: 10px !important; }
  .ff126-post-heading-details { gap: 8px; }
  .ff126-post-time > a { font-size: 11px; }
}
