/* The existing Learnerix posts, with media leading the reading order. */
.lx-feed-column { width: min(640px, calc(100vw - 32px)) !important; min-width: 0; }
.lx-post-list { min-width: 0; }
.lx-feed-post { width: 100%; min-width: 0; background: #fff; border: 1px solid #e6e2eb; border-radius: 16px; }
.lx-post-header { display: flex; align-items: center; gap: 8px; padding: 16px; }
.lx-post-header > div:first-child { flex: 1; min-width: 0; }
.lx-post-header > div:empty { display: none; }
.lx-post-header h5, .lx-post-header h6 { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.lx-post-header h5 { color: #251e32; font-size: 15px; font-weight: 600; }
.lx-post-header h6 { color: #6b6375 !important; font-size: 12px; }
.lx-post-header .ant-avatar { flex-shrink: 0; }
.lx-post-options.ant-btn { width: 40px; height: 40px; padding: 0; color: #5f556e; border-radius: 50%; }
.lx-post-options.ant-btn:hover { background: #f5f2fa; }
.lx-post-media { position: relative; overflow: hidden; background: #f5f3f7; }
.lx-post-media .lx-post-image, .lx-post-media .lx-post-video {
  display: block; width: 100% !important; height: auto; max-height: 620px !important;
  margin: 0 !important; border-radius: 0 !important; object-fit: contain !important;
}
.lx-post-media .lx-post-video { background: #17131d; min-height: 220px; }
.lx-post-gallery { --lx-gallery-height: 500px; }
.lx-post-gallery .carousel__slider { height: var(--lx-gallery-height) !important; margin: 0 !important; }
.lx-post-gallery .lx-post-image, .lx-post-gallery .lx-post-video { height: var(--lx-gallery-height) !important; max-height: var(--lx-gallery-height) !important; }
.lx-post-gallery .carousel__slider-tray-wrapper { overflow: hidden; }
.lx-post-gallery .carousel__slide { padding-bottom: 0 !important; height: var(--lx-gallery-height) !important; }
.lx-post-gallery .carousel__inner-slide { position: static; }
.lx-post-gallery > div:last-child:not(.carousel__slider) { min-height: 40px; background: #fff; }
.lx-post-actions { display: flex; align-items: center; gap: 10px; padding: 6px 12px 0; }
.lx-post-actions .ant-btn { min-height: 42px; padding: 4px 8px; color: #5d526a; font-size: 14px; }
.lx-post-actions .ant-btn .anticon { font-size: 22px; vertical-align: -3px; }
.lx-post-actions .ant-btn.orange-link { color: #ad431a; }
.lx-post-caption-wrap { padding: 4px 18px 18px; }
.lx-post-caption { margin: 0; color: #342b40; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.lx-post-read-more.ant-btn { height: auto; padding: 4px 0 0; color: #62468b; font-size: 13px; }
.lx-feed-post:not(.has-media) .lx-post-actions { padding-top: 0; }
.lx-feed-post:not(.has-media) .lx-post-caption-wrap { padding-top: 8px; }
.lx-post-composer { border: 1px solid #e6e2eb; border-radius: 16px; background: #fff; padding-top: 8px; }
.lx-post-composer .ant-mentions { border: 0; border-radius: 16px !important; box-shadow: none; }
.lx-post-composer .ant-mentions > textarea { padding: 12px 16px; min-height: 72px; }
.lx-composer-actions { gap: 12px; }
.lx-composer-actions > div:first-child { display: flex; align-items: center; flex: 1; width: auto !important; gap: 6px; }
.lx-composer-actions > div:last-child { flex: 0 0 auto; width: auto !important; }
.lx-post-composer .lx-composer-media-button.ant-btn:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ant-btn-link):not(.ant-btn-text) { margin-left: 0 !important; min-height: 38px; border: 0; box-shadow: none; padding-inline: 10px; color: #665978; }
.lx-composer-media-button .anticon { margin-right: 6px; font-size: 18px; }
.lx-post-composer .ant-btn-primary { min-width: 92px; }
.lx-feed-post :is(button, a):focus-visible, .lx-post-composer :is(button, textarea):focus-visible { outline: 2px solid #684b96; outline-offset: 3px; }
@media(max-width:600px) {
  .lx-feed-column { width: calc(100vw - 24px) !important; }
  .lx-feed-post, .lx-post-composer { border-radius: 12px; }
  .lx-post-header { padding: 12px; }
  .lx-post-header h5 { font-size: 14px; }
  .lx-post-media .lx-post-image, .lx-post-media .lx-post-video { max-height: 560px !important; }
  .lx-post-gallery { --lx-gallery-height: calc(100vw - 24px); }
  .lx-post-caption-wrap { padding: 4px 14px 14px; }
  .lx-composer-actions { padding-inline: 8px !important; gap: 4px; }
  .lx-composer-actions > div:first-child { gap: 0; }
  .lx-post-composer .lx-composer-media-button.ant-btn:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ant-btn-link):not(.ant-btn-text) { padding-inline: 7px; font-size: 12px; }
  .lx-composer-media-button .anticon { margin-right: 3px; font-size: 16px; }
  .lx-post-composer .ant-btn.ant-btn-primary:not(.ant-btn-circle):not(.ant-btn-icon-only) { min-width: 72px; width: 72px !important; padding-inline: 12px; }
}
