#es .es-stream {
    border: none;
    border-radius: 10px;
    padding: 0;
    background-color: #fff;
}

#es .es-stream .es-stream-content {
    padding-left: 15%;
    padding-right: 15%;
}

#es .es-actions-wrapper {
    padding: 0 16px 8px 16px;
    border-top: none;
}

#es .es-reaction-stats,
#es .es-comment,
#es .es-comments-form {
    padding: 8px 16px;
    border-top: solid 1px #e1e1e1;
}

#es .es-reaction-stats,
#es .es-comments-control__load,
#es .es-comments-wrap {
    background-color: #c5ceeb;
}

#es .es-reaction-stats__text>a {
    color: #2b47bd;
}

#es .es-stream-meta {
    padding: 8px 8px 0 8px;
}

#es .es-stream-mini .es-stream .es-stream-meta {
    padding: 5px;
}

#es .es-side-widget {
    border: none;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
}

#es .es-container__sidebar {
    position: sticky;
    top: 75px;
    align-self: start;
}

#es .es-container .es-content {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    width: 500px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

#es.is-mobile .es-container .es-content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: -ms-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
}

@media (min-width: 1200px) {
    #es.is-mobile .es-container {
        display: flex;
        position: relative;
        height: auto;
    }

    #es.is-mobile .es-container__sidebar {
        display: flex;
    }

    #es.is-mobile .es-container .es-content {
        clear: none;
        display: flex;
        position: relative;
        min-height: 0;
        left: auto;
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-flex: 0 1 auto;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
        width: 500px;
        height: auto;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

#es .es-stream-list>li+li {
    margin-top: 10px;
    padding-top: 0px;
    border-top: none;
}

#es .es-side-widget+.es-side-widget,
#es .es-side-widget+.widgets-wrapper {
    margin-top: 10px;
}

#es .es-profile-header {
    border: none;
    position: relative;
    background-color: #fff;
    border-radius: 6px;
}

#es .es-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2b47bd;
    line-height: 1;
    vertical-align: middle;
}

#es .es-action-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#es .es-reaction-option__link.is-active .es-action-icon--like {
    color: #e11d48 !important;
}

#es .es-action-icon--like.is-es-liked {
    color: #e11d48 !important;
}

#es .es-photo.ar-3x4>a {
    padding-top: 133.33333333333%;
}

#es .es-photo.ar-5x4>a {
    padding-top: 80%;
}

#es .es-photo.ar-4x5>a {
    padding-top: 125%;
}

#es .es-photo.ar-9x16>a {
    padding-top: 177.77777777778%;
}

#es .es-stream-photos-carousel {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #f5f6f8;
}

#es .es-stream-photos-single-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #f5f6f8;
}

#es .es-stream-photos-carousel__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

#es .es-stream-photos-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 220ms ease;
    will-change: transform;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide {
    float: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide {
    float: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-1x1 {
    aspect-ratio: 1 / 1;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-5x4 {
    aspect-ratio: 5 / 4;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-3x4 {
    aspect-ratio: 3 / 4;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-4x3 {
    aspect-ratio: 4 / 3;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-4x5 {
    aspect-ratio: 4 / 5;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-16x9 {
    aspect-ratio: 16 / 9;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__slide.ar-9x16 {
    aspect-ratio: 9 / 16;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-1x1 {
    aspect-ratio: 1 / 1;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-5x4 {
    aspect-ratio: 5 / 4;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-3x4 {
    aspect-ratio: 3 / 4;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-4x3 {
    aspect-ratio: 4 / 3;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-4x5 {
    aspect-ratio: 4 / 5;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-16x9 {
    aspect-ratio: 16 / 9;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__slide.ar-9x16 {
    aspect-ratio: 9 / 16;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__media {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 0;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__media {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 0;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__media u,
#es .es-stream-photos-carousel .es-stream-photos-carousel__media b {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__media u,
#es .es-stream-photos-single-cover .es-stream-photos-single-cover__media b {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__media b:before {
    display: none;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__media b:before {
    display: none;
}

#es .es-stream-photos-carousel .es-stream-photos-carousel__media img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    opacity: 1;
    object-fit: cover;
    border-radius: 0;
}

#es .es-stream-photos-single-cover .es-stream-photos-single-cover__media img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    opacity: 1;
    object-fit: cover;
    border-radius: 0;
}

#es .es-stream-photos-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(20, 24, 31, 0.72);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    cursor: pointer;
}

#es .es-stream-photos-carousel__button:hover,
#es .es-stream-photos-carousel__button:focus {
    background: rgba(20, 24, 31, 0.88);
    color: #fff;
}

#es .es-stream-photos-carousel__button:disabled {
    opacity: 0;
    pointer-events: none;
}

#es .es-stream-photos-carousel__button svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

#es .es-stream-photos-carousel__button--prev {
    left: 10px;
}

#es .es-stream-photos-carousel__button--next {
    right: 10px;
}

#es.is-mobile .es-stream-photos-carousel__button {
    width: 32px;
    height: 32px;
}

/* =============================================
   STORY FORM – flexbox layout
   .es-story-top: avatar + textarea side-by-side
   .es-story-header: buttons – full width
   .es-story-footer: actions – full width
   ============================================= */
#es .es-story.is-story-alwaysopen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* ---- Top row: avatar + body side-by-side ---- */
#es .es-story.is-story-alwaysopen .es-story-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

#es .es-story.is-story-alwaysopen .es-story-avatar {
    position: static;
    flex: 0 0 48px;
    width: 48px;
    padding: 0;
}

#es .es-story.is-story-alwaysopen .es-story-avatar .o-avatar-v2 {
    width: 48px;
    height: 48px;
}

#es .es-story.is-story-alwaysopen .es-story-body {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin-left: 0 !important;
    background: transparent;
}

#es .es-story.is-story-alwaysopen .es-story-text,
#es .es-story.is-story-alwaysopen .es-story-textbox,
#es .es-story.is-story-alwaysopen .mentions {
    min-height: 80px;
    width: 100%;
    max-width: none;
}

#es .es-story.is-story-alwaysopen .es-story-text {
    padding: 8px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
}

#es .es-story.is-story-alwaysopen .es-story-textfield {
    min-height: 80px;
    width: 100% !important;
    max-width: none;
    padding: 0;
    border: 0;
    resize: vertical;
    font-size: 16px;
    line-height: 1.45;
    background: transparent;
    box-sizing: border-box;
}

/* ---- Header (panel buttons) – full width, no columns ---- */
#es .es-story.is-story-alwaysopen .es-story-header {
    width: 100%;
    padding: 0;
    border: 0;
    margin-left: 0 !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
    text-align: center;
    outline: 0;
    box-shadow: none;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide.active {
    color: #2b47bd;
    border: 0 !important;
    background: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide.active::before,
#es .es-story.is-story-alwaysopen .es-story-panel-button--slide.active::after,
#es .es-story.is-story-alwaysopen .es-story-panel-button--slide.active .es-story-panel-button__shape::before,
#es .es-story.is-story-alwaysopen .es-story-panel-button--slide.active .es-story-panel-button__shape::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide .es-story-panel-button__shape {
    display: inline-flex !important;
    flex: 0 0 44px !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide .es-story-panel-button__shape > i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
    font-size: 22px !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-button--slide span {
    display: none;
}

#es .es-story.is-story-alwaysopen .es-story-body > .es-story-panel-content {
    margin-top: 0;
}

#es .es-story.is-story-alwaysopen[class*="plugin-"] .es-story-body > .es-story-panel-content {
    margin-top: 8px;
}

#es .es-story.is-story-alwaysopen [data-story-panel-content]:not(.active) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#es .es-story.is-story-alwaysopen [data-story-panel-content].active {
    margin-top: 0 !important;
}

#es .es-story.is-story-alwaysopen .es-story-panel-contents.active,
#es .es-story.is-story-alwaysopen .es-story-panel-contents .es-story-panel-content.active {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Footer – full width, single line of buttons, boxes wrap below ---- */
#es .es-story.is-story-alwaysopen .es-story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 0;
    border-top: none;
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0;
}

#es .es-story.is-story-alwaysopen .es-story-meta-contents {
    flex: 1 0 100%;
    width: 100%;
    order: 4;
    margin-top: 8px;
}

#es .es-story.is-story-alwaysopen .es-story-postto {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
}

#es .es-story.is-story-alwaysopen .es-story-postto>a {
    position: relative;
    display: inline-flex;
    min-height: 32px;
    padding: 0 20px 0 8px !important;
    align-items: center;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px;
    background: #fff !important;
    color: #1f2937;
    font-size: 12px;
    white-space: nowrap;
}

#es .is-story-selection .es-story-avatar-popbox-toggle {
    border-radius: 6px !important;
    display: inline-flex !important;
}

#es .es-story.is-story-alwaysopen .es-story-postto .es-story-panel-button__label {
    position: static !important;
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#es .es-story.is-story-alwaysopen .es-story-postto .es-story-avatar-popbox-toggle__icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
}

#es .es-story.is-story-alwaysopen .es-story-meta-buttons {
    display: flex;
    order: 1;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
    align-items: center;
}

#es .es-story.is-story-alwaysopen .es-story-meta-button {
    margin-right: 1px !important;
}

#es .es-story.is-story-alwaysopen .es-story-actions {
    display: flex;
    order: 3;
    flex: 0 0 auto;
    gap: 0;
    align-items: center;
    margin-left: auto;
}

#es .es-story.is-story-alwaysopen .es-story-actions__share,
#es .es-story.is-story-alwaysopen .es-story-actions__schedule {
    margin-right: 4px;
}

#es .es-story.is-story-alwaysopen .es-story-submit {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px;
    border-radius: 8px 0 0 8px;
}

#es .es-story.is-story-alwaysopen .es-story-privacy {
    margin-left: -1px;
}

#es .es-story.is-story-alwaysopen .es-story-privacy .es-privacy,
#es .es-story.is-story-alwaysopen .es-story-privacy [data-es-privacy-container] {
    min-height: 36px;
    border-radius: 0 8px 8px 0;
}

#es .es-story.is-story-alwaysopen .story-loading {
    width: 100%;
}

/* ---- Mobile / narrow overrides ---- */
#es.is-mobile .es-story.is-story-alwaysopen,
#es.w480 .es-story.is-story-alwaysopen {
    gap: 12px;
    padding: 12px;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-top,
#es.w480 .es-story.is-story-alwaysopen .es-story-top {
    gap: 12px;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-avatar,
#es.w480 .es-story.is-story-alwaysopen .es-story-avatar {
    flex: 0 0 40px;
    width: 40px;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-avatar .o-avatar-v2,
#es.w480 .es-story.is-story-alwaysopen .es-story-avatar .o-avatar-v2 {
    width: 40px;
    height: 40px;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-swiper-nav,
#es.w480 .es-story.is-story-alwaysopen .es-story-swiper-nav,
#es.is-mobile .es-story.is-story-alwaysopen [data-story-panel-buttons-mobile],
#es.w480 .es-story.is-story-alwaysopen [data-story-panel-buttons-mobile],
#es.is-mobile .es-story.is-story-alwaysopen [data-story-panel-buttons-wrapper],
#es.w480 .es-story.is-story-alwaysopen [data-story-panel-buttons-wrapper] {
    display: flex;
    width: 100%;
    overflow: visible;
}

#es .es-story-swiper-nav:not(.is-end-right)::after,
#es.is-mobile .es-story-swiper-nav:not(.is-end-right)::after,
#es.w480 .es-story-swiper-nav:not(.is-end-right)::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

#es.is-mobile .es-story.is-story-alwaysopen [data-story-panel-buttons-wrapper],
#es.w480 .es-story.is-story-alwaysopen [data-story-panel-buttons-wrapper] {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    transform: none !important;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-panel-button--slide,
#es.w480 .es-story.is-story-alwaysopen .es-story-panel-button--slide {
    flex: 0 0 44px;
    min-width: 44px;
    max-width: 44px;
    width: 44px;
    padding-left: 0;
    padding-right: 0;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-footer,
#es.w480 .es-story.is-story-alwaysopen .es-story-footer {
    align-items: stretch;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-postto,
#es.w480 .es-story.is-story-alwaysopen .es-story-postto,
#es.is-mobile .es-story.is-story-alwaysopen .es-story-meta-buttons,
#es.w480 .es-story.is-story-alwaysopen .es-story-meta-buttons,
#es.is-mobile .es-story.is-story-alwaysopen .es-story-actions,
#es.w480 .es-story.is-story-alwaysopen .es-story-actions {
    flex: 1 1 100%;
    margin-left: 0;
    margin-right: 1px;
}

#es.is-mobile .es-story.is-story-alwaysopen .es-story-actions .es-story-submit,
#es.w480 .es-story.is-story-alwaysopen .es-story-actions .es-story-submit {
    flex: 1 1 auto;
}

#es .es-story-panel-button__label {
    position: relative;
    cursor: pointer;
    border-radius: 32px;
    background: #fff;
    color: #444;
    font-weight: bold;
    padding: 0;
    padding-right: 24px;
}
