.content__rivertime.empty_river .river_back,
.content__rivertime.empty_river .river_back_start,
.content__rivertime.empty_river .main-button-comment,
.content__rivertime.empty_river .rivertime-header__sort {
    display: none;
}

.content__rivertime.empty_river .rivertime {
    padding-left: unset;
    border-left: unset;
}

.river-form-post,
.edit-mode .river-form-post.river_mode_view {
    display: flex;
}

.edit-mode  .river-form-post.river_mode_view .river-form-edit .river-edit-text>div {
    border: none;
}

.river-form-post.river_mode_view .river-edit-img__history,
.river-form-post.river_mode_view .river-edit-img__year,
.river-form-post.river_mode_view .river-edit-main__btn,
.river-form-post.river_mode_view .river-edit-img.no-thumb {
    display: none;
}

.river-form-post.river_mode_view .river-edit-img.no-thumb+.river-edit-text {
    padding-left: 0;
    width: 100%;
    flex: 1;
}
.river-form-post.river_mode_view .river-edit-img.no-thumb+.edit-mode .post_river_panel {}

.edit-mode  .river-form-post.river_mode_edit .river-form-edit .river-edit-text>div {
    /* border: none; */
}
.edit-mode  .river-form-post.river_mode_edit .river-edit-img__history,
.edit-mode  .river-form-post.river_mode_edit .river-edit-img__year,
.edit-mode  .river-form-post.river_mode_edit .river-edit-main__btn {
    display: flex;
}


.photo-text-popup.photo-text-popup--active {
    opacity: 1;
    visibility: visible;
    width: 100%;

    box-shadow: 0px 2px 15px rgb(0 0 0 / 20%);
}

.photo-text-popup.photo-text-popup--active .post-img-and-text-wrapper {
    display: none;
}
.photo-text-popup {
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 25px;
    left: -25px;
    width: 100%;
    /* height: 100%; */
    max-width: 408px;
    padding: 18px;
    justify-content: center;
    align-items: flex-start;
    z-index: 999;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: opacity ease-out 300ms
}

.photo-text-popup legend {
    position: relative;
    width: 100%;
    font-family: "Source Serif Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 35px;

    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;

}

.photo-text-popup-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity ease-out 300ms
}

.photo-text-popup-close:hover {
    opacity: 0.7
}

.photo-text-popup fieldset {
    display: block;
    gap: 0
}

.photo-text-form-text-between-fields {
    font-size: 16px;
    line-height: 20px;
    margin: 15px 0;
}


.photo-text-form-field-wrap {
    width: 100%;
    position: relative;
    height: 100%;
}

.photo-text-form-field-wrap input[type="text"] {
    border-radius: 15px;
    background: #FAFAFA;
    height: 80px;
}

/* Wrapper */

.post_wrapper_river {
    padding: 14px;
}

.river-form-edit {
    display: flex;
    flex-wrap: wrap;
    transition: opacity ease-out 350ms;
    width: 100%;
}


.river-edit-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 28px;
    margin-bottom: 3px;
}

/* Edit icons */

.photo-text-form-image-panel {
    display: none;
    z-index: 5;
}

.open-photo-edit-text-popup svg {}

.open-photo-edit-image i {
    width: 20px;
    height: 20px;
}

.open-photo-edit-image i::before {
    background-color: #B7BDCE;
}

.river-edit-mob-top__close i {
    width: 30px;
    height: 30px;
}

.river-edit-mob-top__close i::before {
    background-color: #B7BDCE;
}


.river-mob-add i {
    width: 30px;
    height: 30px;
}

.river-mob-add i::before {
    background-color: #326E5B;
}

.river-form-edit i::before {
    background-color: #B7BDCE;
}

.river-form-edit .post_river_panel i {
    width: 30px;
    height: 30px;
}

.river-form-edit .post-river-edit__top i {
    transform: rotate(180deg);
}

/* Success Add */

.river-success {
    display: flex;
    opacity: 0;
    visibility: hidden;
}

.river-success-inner {
    display: flex;
    align-items: center
}

.river-success-inner i {
    display: flex;
    width: 20px;
    height: 20px;
}

.river-success-inner i::before {
    background-color: #326E5B;
}

.river-success-inner__text {
    color: #326E5B;
    font: 22rem/22rem "ProximaNova";
    font-weight: 700;
    margin: 1px 0 0px 7px
}


/* Buttons rive */
.edit-mode .nd-button {
    width: 162px;
}

/* Text editor */
.content__rivertime .ql-toolbar.ql-snow {
    margin-bottom: 10px;
    background: #FFF;
    width: fit-content;
}

.content__rivertime .ql-editor {
    border-radius: 8px;
    border: 1px solid rgba(183, 189, 206, 0.30);
    background: #FFF;
    max-height: 250px;
    overflow-y: auto;
}

.ql-container {
    border: none;
}



.photo-text {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    /* background-color: #326E5B; */
    padding: 6px 9px;
    font-size: 12px;
    line-height: 14px;
    z-index: 0;
    overflow: hidden;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: opacity ease-out 300ms
}

.photo-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2.5px);
    z-index: -1
}

.photo-text--hide {
    opacity: 0
}

.river-form-img:hover .photo-text {
    opacity: 1
}




.photo-text-form__help {
    display: flex;
    align-items: flex-start;
    border-radius: 8px;
    background: rgba(183, 189, 206, 0.30);
    padding: 8px 12px;
    margin-top: 15px;
    gap: 8px;
    width: 100%;
}

.photo-text-form__help p {
    color: var(--Black, #444);
    font-family: "Proxima Nova";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    max-width: 251px;
    margin: 0;
}


.photo-text-form__help i {
    width: 16px;
    height: 16px;
}

.photo-text-form__help i::before {
    background-color: #444;
}
.photo-text-form__help .photo-text-form__help--mobile {
    display: none;
}
/* Edit mode */

.post_wrapper_river.post_river_history {
    background: #EAF0EF;
}


.photo-text-form-buttons {
    margin-top: auto;
    width: 100%;
}

.river-edit-img {
    display: inline-flex;
    flex-direction: column;
    padding: 0 0 0 10px;
    align-self: start;
}

.photo-text--success {
    position: fixed;
    top: 130px;
    right: 40px;
    /* transform: translate( -50%, -50% ); */
    width: 237px;
    height: 56px;
    z-index:999;

    display: none;
    flex-direction: row;
    gap: 8px;
    border-radius: 15px;
    background: #FFF;
    box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.10);

    color: var(--green, #326E5B);
    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 19px 18px;
}
.photo-text--success i {
    display: block;
    width: 20px;
    height: 20px;
}
.photo-text--success i::before {
    background-color: #326E5B;
}






.loading {
    opacity: 0.5;
    pointer-events: none
}

.rivertime-link-sort {
    text-align: center;
}

.river_back_start {
    height: 1.5%;
    background-color: #285c4c;
    width: 2px;
    position: absolute;
    top: 0;
    left: -2px
}

.river_back {
    height:0;
    background-color: #285c4c;
    width: 2px;
    position: absolute;
    top: 0;
    left: -2px;
}

.rivertime {
    position: relative;
    padding-left: 21px;
    border-left: solid 2px #D9D9D9
}

.rivertime-header {
    display: block;
    margin-bottom: 27px
}
.rivertime-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* justify-content: space-between; */
    margin-bottom: 7px;
    gap: 15px;
}
.rivertime-header-top .icon-helper-info__text p {
    font-size: 16px;
}
.rivertime-header-edit {
    display: flex;
    margin-left: auto;
}

h1.rivertime-header__title {
    font: 600 32px Source;
    color: #444;
    margin-bottom: 15px;
    margin-top: 9px
}

.rivertime-link-sort__link{
    cursor: pointer;
    transition: 0.3s;
    margin: 0 10px;
    font-family: Source;
    color: #B7BDCE;
    font-size: 18px
}
.rivertime-link-sort__link.active,
.rivertime-link-sort__link:hover {
    color: #444444
}

.img_portrait_river {
    min-height: 360rem
}

.img_landscape_river {
    min-height: 200rem
}
.river-new-img,
.river-add-img {
    border-radius: 15px;
    overflow: hidden;
}
.river_title {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -webkit-flexbox;
    align-items: center;
    float: left;
    font: 600 32px 'Source Serif Pro';
    color: #B7BDCE;
    transition: 0.5s
}
.river_title.active {
    color: #326E5B
}

.river-btn-circle {
    box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
    border-radius: 50px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
}

.river-btn-circle svg {
    width: 21px;
    height: 21px
}

.river-btn-circle.rivertime-header-comments__img {
    margin-right: 15px;
    position: relative;
}

.river-btn-circle.rivertime-header-comments__img.active {
    background: #B7BDCE;
}

.river-btn-circle.rivertime-header-comments__img.active svg,
.river-btn-circle.rivertime-header-comments__img.active svg path{
    fill: #444;
}

.river-btn-circle.rivertime-header-comments__img svg {
    width: 25px;
    height: 25px;
}

.river-btn-circle.rivertime-header-comments__img .rivertime-header-comments__quan {
    position: absolute;
    width: 18px;
    height: 18px;
    right: 5px;
    top: 5px;
    background-color: #326E5B;
    border: 2px solid #fff;
    border-radius: 100%;
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    text-align: center;
}

    .river-edit-panel__close {
        width: 45px;
        height: 45px;
        margin: 0 10px 0 33px
    }
    .river-edit-panel__close svg {
        width: 16px;
        height: 16px
    }



    .river-edit-text-wp-editor,
    .wp-editor-wrap,
    .wp-editor-container,
    .mce-tinymce.mce-container.mce-panel,
    .mce-edit-area,
    .mce-container-body.mce-stack-layout {
        height: 100%
    }
    .river-edit-text-wp-editor .wp-editor-container {
        border: none
    }

    /* Add event Tiny MCE toolbar */
.mce-top-part.mce-container.mce-stack-layout-item.mce-first {
    display: inline-flex;
    border: 1px solid rgba(183, 189, 206, 0.3);
    margin: 0 auto 11px 0
}
.mce-top-part::before {
    display: none
}
.river-edit-text-wp-editor div.mce-toolbar-grp {
    background-color: #fff;
    border: none
}
.river-edit-text-wp-editor div.mce-toolbar-grp > div,
.river-edit-text-wp-editor .mce-toolbar .mce-btn-group {
    padding: 0
}
.mce-toolbar .mce-btn-group .mce-btn {
    padding: 5px
}
.mce-edit-area.mce-container.mce-panel.mce-stack-layout-item {
    border: 1px solid rgba(183, 189, 206, 0.3) !important;
    border-radius: 8px;
    overflow: hidden
}
.mce-container-body {
    display: flex;
    flex-direction: column
}
.mce-statusbar {
    display: none
}
.mce-edit-area.mce-container.mce-panel.mce-stack-layout-item iframe {
    height: 100% !important
}

.river-edit-btn {
    display: inline-flex;
    width: calc(100% - 55px);
    justify-content: end
}

.river-edit-btn__inner {
    display: flex;
    flex: 0 0 60%;
    justify-content: space-between
}

.river-edit-button,
.photo-text-form-button {
    background: #326E5B;
    border-radius: 100px;
    color: #fff;
    font: 700 16px Proximanova;
    padding: 13px 42px;
    transition: 0.3s
}
.river-edit-button:hover,
.photo-text-form-button:hover {
    background: #245042
}
.photo-text-form-button.transparent {
    background-color: transparent;
    color: #444;
    border: 1px solid #b7bdce
}
.photo-text-form-button.transparent:hover {
    background-color: #b7bdce
}

button:disabled{
    opacity: 0.7
}

.river-edit-panel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center
}

.river-edit-panel__title h3 {
    font: 16px Proximanova;
    color: #326E5B;
    border: 1px dashed #000000;
    border-radius: 4px;
    padding: 10px 23px
}

.river-edit-img__img {
    border-radius: 12px
}
.river-edit-img__img img {
    position: relative;
    height: 100%;
    border-radius: 12px;
    min-height: 175px;
}

.river-edit-main.post_wrapper_river {
    margin-left: 129px;
    flex-wrap: wrap;
    padding: 10px 0 20px 0px;
    margin-bottom: 30px
}

.river-edit-text__content {
    border: 1px solid rgba(183, 189, 206, 0.3);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    font-family: "Proxima Nova";
    font-size: 22rem;
    font-weight: 400;
    line-height: 19px;
    padding: 12px
}

.river-edit-text__content:-moz-placeholder,
.river-edit-text__content:-ms-input-placeholder,
.river-edit-text__content::-webkit-input-placeholder {
    font: 22rem Proximanova;
    color: #444444;
    opacity: 0.7
}

.river-edit-img__history p {
    display: inline-block;
    font-size: 18px;
    color: #444444;
    margin-left: 9px
}

input#river-history:focus,
input#river-history:active,
input.river-history:focus,
input.river-history:active {
    -webkit-appearance: checkbox
}
input#river-history[type=checkbox] + label,
input.river-history[type=checkbox] + label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(68, 68, 68, 0.5);
    border-radius: 4px;
    background: #fff;
    padding: 0;
    margin: 0
}
input#river-history[type=checkbox]:checked + label,
input.river-history[type=checkbox]:checked + label {
    background: #326E5B;
    border: 2px solid #326E5B
}
input#river-history[type=checkbox] + label,
input.river-history[type=checkbox] + label {
    transition: 0.3s;
    cursor: pointer
}
input#river-history:checked + label:after,
input.river-history:checked + label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 7px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg)
}
input#river-history + label,
input.river-history + label {
    position: relative
}

.river-edit-year__placeholder {
    font: 22rem Proximanova;
    color: #444444;
    opacity: 0.7
}

.river-edit-img__history {
    display: flex;
    margin: 28px 0 27px;
    align-items: center
}

input.river-edit-year__input {
    border: 1px solid rgba(183, 189, 206, 0.3);
    border-radius: 8px;
    width: 100%;
    height: 47px;
    padding: 0 10px
}

.content-wrapper {
    border-radius: 15rem;
    box-shadow: 0 2px 20px rgb(0 0 0 / 10%);
    margin: 2vh 0 0 0;
    border: 1px solid #F0F4F7;
    padding: 0 45px 1% 41px;
    background: #fff
}
.content-wrapper .content__rivertime {
    padding-top: 31px
}
@media (max-width: 376px) {
    .content-wrapper .content__rivertime {
        padding-top: 31px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

.river-edit-year {
    position: relative;
    margin: 53px 0 2px;
    flex-direction:column;
}

.river-edit-year__placeholder {
    position: absolute;
    top: 0;
    padding: 14px 0 0 10px;
    transition: all 200ms;
    left: 0;
    color: #444444;
    transition: 0.3s;
    font-size: 16px
}

.river-edit-year__input:focus + .river-edit-year__placeholder,
.year-lb,
.river-form-edit .river-edit-year__input:not(:focus):valid ~ .river-edit-year__placeholder,
#form-river-add .river-edit-year__input:not(:focus):valid ~ .river-edit-year__placeholder {
    font-size: 10px;
    top: -10px;
    color: #B7BDCE
}
.river-edit-year__input:focus,
.river-edit-year__input:valid,
.river-edit-year__input:valid {
    background-color: #fff !important;
    background-image: none !important
}
.river-edit-year__input:focus,
.river-edit-text__content:focus {
    border-color: #326E5B
}

.post_river_panel__inner {
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
    padding: 15px 0
}

.post_river_edit,
.post_river_delete {
    margin: 10px 0;
    cursor: pointer;
    transition: 0.3s;
    display: flex
}
.post_river_edit:hover,
.post_river_delete:hover,
.river-btn-circle:hover,
.post_river_top:hover,
.post_river_bottom:hover {
    opacity: 0.7
}

#form-river-add {
    display: flex;
    width: 100%;
    flex-wrap: wrap
}
#form-river-add .select_file_btn {
    display: none
}

.river-edit-main,
.post_river_panel__inner,
.river-edit-panel {
    display: none
}




/* .river-form-post .post_river_panel__inner {
    display: flex
} */

/* Event edit form */
.river-form-post .mce-tinymce.mce-container.mce-panel {
    background-color: transparent;
    border: none
}
.river-form-post .mce-container-body.mce-flow-layout {
    flex-direction: row;
    flex-wrap: wrap
}

[data="crop-image-container"] .select_file_btn {
    display: none
}

.text-error,
.year-error {
    display: block;
    opacity: 0;
    color: #FD2F2F;
    font-size: 14px;
    padding: 4px 0px 0 1px;
    pointer-events: none
}

#year-label,
.river-edit-text__content {
    transition: 0.5s;
    font-family: "ProximaNova"
}

/* Error fields border highlight. */
/* input[type="text"].river-form-error,
.river-form-error,
#wp-editor_id-wrap.river-form-error .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item,
.river-form-edit .river-edit-text > div.river-form-error .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item {
    border: 1px solid #FD2F2F !important
}
#wp-editor_id-wrap.river-form-error,
.river-form-edit .river-edit-text > div.river-form-error {
    border: none !important
} */



.river-form-post {
    /* display: none; */
    padding: 10px 0px 20px 0px
}

.river-form-post .river-edit-btn__inner {
    justify-content: end
}

.river-form-post .post_river_panel {
    margin-right: 0
}


/* .river-form-edit .river-edit-text > div {
    border: 1px solid rgba(183, 189, 206, 0.3)
} */
.river-form-edit .select_file_btn {
    top: 0;
    left: 0;
    bottom: auto;
    width: 40px;
    height: 40px
}
.river-form-edit .select_file_btn svg {
    width: 24px
}

.post_img_wrapper_river {
    margin-right: 0;
    height: 100%;
    width: 100%
}

.post_img_river__blank {
    height: auto
}

.edit-mode .post_wrapper_img,
.edit-mode .post_data_wrapper {
    cursor: pointer
}

.river-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    padding: 30px 24px 34px 60px;
    max-width: 662px;
    width: 90%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 15px;
    z-index: 99999;
    opacity: 1;
    color: #444444
}
.river-popup .river-popup-text,
.river-popup h3 {
    font-family: Source;
    font-size: 20px
}

.river-popup-fade {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999
}

.river-popup-text {
    margin: 55px 0 40px
}

.river-popup-btn {
    display: flex;
}
.river-popup-btn div {
    border-radius: 100px;
    cursor: pointer;
    padding: 16px 69px;
    font-size: 22rem;
    transition: 0.3s
}

.river-popup-btn__del {
    color: #fff;
    background: #D73F35
}
.river-popup-btn__del:hover {
    background: #BE382F
}

.river-popup-btn__close {
    color: #444444;
    border: 1px solid #B7BDCE;
    margin-right: 15px
}

.river-popup-close {
    position: absolute;
    top: 24px;
    right: 24px
}

.river-edit-form-mob {
    display: block;
    position: fixed;
    top: -40px;
    left: 0;
    padding: 30px 24px 34px 60px;
    width: 100%;
    z-index: 999
}

.river-edit-panel__mob,
.river-header-mob,
.river-form-fade,
.river-edit-mob-top,
.river-success-popup {
    display: none
}

.river-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 17px 14px 17px 17px
}

.river-success-popup__close {
    width: 12px;
    height: 12px
}

.river-success-popup__inner {
    display: flex;
    align-items: center
}
.river-success-popup__inner .river-success-inner__text {
    white-space: nowrap;
    margin: 1px 24px 0 7px
}

.river-form-fade {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999
}

.post_river_edit__mob{
    display: none
}

body.modal-open {
    overflow: hidden
}

.mce-branding.mce-label.mce-last {
    display: none
}

/***
    EVENT POST
***/
.post_wrapper_river {
    width: 100%;
    padding: 12px 12px 16px;
    margin-bottom: 25px;
    margin-left: 106px;
    transition: opacity ease-out 350ms
}
.post_wrapper_river.no-thumb {
    padding: 16px 12px
}
/* .post_wrapper_river.post_river_history {
    background: #eaf0ef
} */
.edit-mode-mobile .post_wrapper_river,
.post_wrapper_river .photo-text-below {
    padding-bottom: 0
}

.river-form-edit .photo-text-below {
    padding-bottom: 9px
}

.river-form-img {
    position: relative
}

.post_wrapper_river .post_data_wrapper {
    padding: 22px 0 0
}
.post_wrapper_river .post_data_wrapper p {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 10px
}
.post_wrapper_river .post_data_wrapper p:last-child {
    margin-bottom: 0
}
.posts_container.rivertime > div[data-order] .post_data_wrapper:first-child {
    padding-top: 5px
}

/* event image */
.post-img-and-text-wrapper,
.post_wrapper_img,
.river-edit-img__img {
    position: relative;
    width: 100%
}
.post-img-and-text-wrapper::before,
.river-edit-img__img::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 4px;
    width: 100%;
    height:100%;
    background-color: #d6e2de;
    border-radius: 15px
}

.river-edit-img-inner {
    width: 100%;
    position: relative
}

.post_img_wrapper_river {
    display: block;
    position: relative;
    width: calc(100% - 4px);
    height: auto;
    min-height: auto;
    min-width: auto;
    border-radius: 12px
}

label[data="crop-image-container"] {
    display: block
}

@media (max-width: 376px) {
    /* .river-edit-img__img,
    .river-form-img {
        min-height: 175px;
        height: 100% !important;
    } */
}

.main-button-comment i,
.rivertime-header-edit__img i{
    width: 28px;
    height: 28px;
}

.river-edit-panel_save {
    background-color: #8dbeaf;
}

.river-edit-panel__close i,
.river-edit-panel_save i {
    width: 30px;
    height: 30px;
}


.main-button-comment i::before,
.river-edit-panel__close i::before,
.rivertime-header-edit__img i::before {
    background-color: #B7BDCE;
}

.river-edit-panel_save i::before{
    background-color: #fff;
}

/***
    EDIT MODE
 ***/
.edit-mode .river-edit-main,
.edit-mode .post_river_panel__inner,
.edit-mode .river-edit-panel {
    display: flex
}

.edit-mode .rivertime-header-edit__img,
.edit-mode .rivertime-header-comments__img{
    display: none
}

/*** END OF EDIT MODE ***/

/***
    PHOTO TEXT POPUP
 ***/


.photo-text-form legend {
    position: relative;
    width: 100%;
    font-family: 'Source Serif Pro';
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
    background-color: #f5f2f3;
    padding: 15px 8px 12px;
    margin-bottom: 35px;
    text-align: center;
    z-index: 0;

    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}
.photo-text-form legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    background-color: inherit;
    transform: translateX(-50%);
    z-index: -1
}

.photo-text-form-save,
.photo-text-form-close {
    /* position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%); */
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity ease-out 300ms
}
.photo-text-form-save {
    width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--green, #326E5B);
    cursor: pointer;
    margin-left: auto;
    /* margin-right: 16px; */
    font-size: 16px;
    font-weight: 700;
    color: white;
    opacity: 1;
    pointer-events: all;
    font-family: "Proxima Nova";
}
.photo-text-form-save.disabled {
    pointer-events: none;
    opacity: 0.5;
}

    /* .photo-text-form-save:hover ,
    .photo-text-form-close:hover {
        opacity: 0.7
    } */

.photo-text-form-save i,
.photo-text-form-close i {
    display: block;
    width: 100%;
    height: 100%;
}
.photo-text-form-save i::before {
    background: #326E5B;
}
.photo-text-form-close i::before {
    background: #B7BDCE;
}


.photo-text-form fieldset {
    display: block;
    gap: 0
}

.photo-text-form-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 11px
}

.photo-text-form-image-panel {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    flex-wrap: wrap
}
.image-added + .photo-text-form-image-panel {
    display: flex
}
.photo-text-form-image-panel > div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background-color: #fafafa;
    cursor: pointer;
    transition: opacity ease-out 300ms;
    margin-right: 10px
}
.photo-text-form-image-panel > div:last-child {
    margin-right: 0
}
.photo-text-form-image-panel > div:hover {
    opacity: 0.7
}
.photo-text-form-image-panel > div svg {
    width: 19px;
    height: 19px
}



.photo-text-below {
    display: none;
    position: relative;
    padding: 9px 9px 9px 17px;
    font-size: 14px;
    line-height: 18px;
    z-index: 0
}
.photo-text-below::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 100%;
    height: 100%;
    background-color: #d6e2de;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: -1
}

.photo-text:not(:empty),
.photo-text-below:not(:empty) {
    display: block
}

fieldset .photo-text-form-field-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 15px
}
fieldset .photo-text-form-field-wrap:last-child {
    margin-bottom: 0
}

.photo-text-form .photo-text-form-input {
    height: 80px;
    background-color: #fafafa;
    border-color: #fafafa;
    padding: 33px 55px 27px 11px
}

.photo-text-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    color: #444;
    font-size: 16px;
    padding: 10px 21px 0 10px;
    opacity: 0.5
}
.photo-text-placeholder i {
    width: 19px;
    height: 19px;
    margin-left: auto;
    pointer-events: none
}

.photo-text-placeholder i::before {
    background-color: #B7BDCE;
}

.photo-text-form-button {
    width: 100%;
    margin-bottom: 20px
}
.photo-text-form-button:first-child {
    margin-top: 35px
}
.photo-text-form-button:last-of-type {
    margin-bottom: 0
}



/* ql-editor */



.page-template-river .ql-container.ql-snow {
    height: 100%;
    border:none;
}
.page-template-river .ql-editor {
    min-height: 150px;
    height:100%;
    overflow-y: scroll;
}
.page-template-river .ql-container .ql-editor.ql-blank::before {
    color: var(--Black, #444);

    font-family: "Proxima Nova";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
    opacity: 0.7;
}





/* Страница редактирования персон */



.nd-one-person__info-river {
    margin-top: 20px;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #f0f4f7;
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nd-one-person__info-river .river-edit-main {
    display: flex;
}
.nd-one-person__info-river .post_wrapper_river.river-edit-main {

    margin: 0;
}



/* Модальное окно удаление записи реки */


#modal_remove_river,
#modal_confirm_river {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.60);
    z-index: 556;
}
#modal_confirm_river p,
#modal_remove_river p {
    margin-bottom: 0;
}
#modal_confirm_river .modal_river,
#modal_remove_river .modal_river {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 660px;
    width: 100%;
    padding: 34px 15px 40px 68px;
    background-color: #FAFAFA;
    border-radius: 8px;

}
#modal_confirm_river .modal-river__header,
#modal_remove_river .modal-river__header {
    position: relative;
}
#modal_confirm_river .modal-river__header .modal-river__close,
#modal_remove_river .modal-river__header .modal-river__close{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    box-shadow: 0px 2px 15px rgb(0 0 0 / 20%);
    width: 45px;
}
#modal_confirm_river .modal-river__header .modal-river__close i::before,
#modal_remove_river .modal-river__header .modal-river__close i::before {
    background-color: #B7BDCE;
    width: 35px;
}
#modal_confirm_river .modal-river__title,
#modal_remove_river .modal-river__title {
    color: var(--Black, #444);
    font-family: "Source Serif Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
#modal_confirm_river .modal-river__text p,
#modal_remove_river .modal-river__text p{
    color: var(--Black, #444);
    font-family: "Source Serif Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px; /* 125% */
}

#modal_confirm_river .modal-river__bottom,
#modal_remove_river .modal-river__bottom {
    display: flex;
    gap: 15px;
}
#modal_confirm_river .modal-river__bottom button,
#modal_remove_river .modal-river__bottom button {
    max-width: 191px;
}
#modal_remove_river .modal-river__bottom #remove_river_item{
    background-color: #E24242;
    border: 1px solid #E24242;
}
#modal_remove_river .modal-river__bottom #remove_river_item:hover{
    background-color: #FD2F2F;
    border: 1px solid #FD2F2F;
}

#modal_confirm_river .modal-river__bottom #confirm_river_sign {
    background-color: #408c74;
    border: 1px solid #408c74;
}

#modal_confirm_river .modal-river__bottom #confirm_river_sign:hover{
    background-color: #408c74;
    border: 1px solid #408c74;
}



/*** END OF PHOTO TEXT POPUP ***/

@media (max-width: 1023px) {
    /***
        EDIT MODE
     ***/
    .edit-mode .rivertime-header-top {
        margin-bottom: 25px
    }

    .edit-mode .rivertime-header-edit {
        flex-wrap: wrap;
        width: 100%
    }

    .edit-mode .rivertime-header-edit__btn {
        width: 100%
    }
    /*** END OF EDIT MODE ***/

    .river-edit-panel__title {
        flex-grow: 1
    }
    .river-edit-panel__title h3 {
        text-align: center;
        padding: 10px
    }

    .river-edit-main.post_wrapper_river {
        margin-left: 0
    }
}

@media (max-width: 650px) {

    #form-river-add .select_file_btn {
        display: flex
    }
    #form-river-add .image-added .select_file_btn {
        display: none
    }

    .river-form-edit .select_file_btn {
        top: auto;
        transform: translateX(-50%)
     }

    .river-edit-panel__title h3,
    .river-edit-button {
        font-size: 16px
    }

    .river-edit-year__placeholder {
        font-size: 16px
    }

    .river-edit-year__input:focus + .river-edit-year__placeholder,
    .year-lb,
    .river-form-edit .river-edit-year__input:not(:focus):valid ~ .river-edit-year__placeholder {
        font-size: 10px;
        left: -4px;
        top: -11px;
        color: #B7BDCE
    }

    .post_img_river__blank {
        height: auto
    }

    .ndbutton {
        padding: 10px 20px
    }

    .river-success-inner__text {
        font: 16px/16px ProximaNova;
        font-weight: 700
    }

    .river-popup-btn div {
        font-size: 16px
    }

    input#river-history[type=checkbox] + label,
    input.river-history[type=checkbox] + label {
        border: 2rem solid rgba(68, 68, 68, 0.5)
    }

    .river-edit-img__history {
        margin: 0 0 29px;
        order: 1
    }
    .river-edit-img__history p {
        font-size: 18px
    }

    .river-edit-panel__title {
        margin: 12px 0 20px
    }

    .river-edit-panel__close {
        position: absolute;
        top: 0;
        right: 0;
        transform: translateY(-57px);
        margin: 0
    }

    .river-edit-panel_save {
        width: 100%
    }

    .river-edit-button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 42px
    }

    input#river-history[type=checkbox] + label,
    input.river-history[type=checkbox] + label {
        width: 20px;
        height: 20px
    }

    .river-edit-form-mob .river-edit-year__placeholder {
        padding: 16px 0 0 13px
    }

    /* .river-edit-img__img,
    .river-form-img {
        background-size: 16%
    } */

    .river-edit-main.post_wrapper_river.river-edit-form-mob {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-top: 60px;
        border-radius: 0;
        border: none;
        padding-bottom: 0;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.7)
    }



    .river-edit-img__img.area-image-place::before {
        display: none
    }
    .river-edit-img__img.area-image-place.text-added::before,
    .text-added .river-edit-img__img.area-image-place::before {
        display: block
    }

    .post-river-edit__bottom,
    .post-river-edit__top {
        display: flex
    }

    .river-edit-form-mob {
        margin-left: 0 !important
    }

    .river-edit-form-mob .river-edit-img,
    .river-edit-form-mob .river-edit-text,
    .river-edit-form-mob .post_river_panel {
        flex: auto
    }
    .river-edit-form-mob .river-edit-year__placeholder {
        padding: 16px 0 0 13px
    }
    .river-edit-form-mob .text-error,
    .river-edit-form-mob .year-error {
        padding: 4px 0px 5px 1px;
        margin-top: -2px;
        display: block
    }
    .river-edit-form-mob .river-edit-year {
        margin-bottom: 0;
        margin-top: 56px;
        order: 0
    }
    .river-edit-form-mob .year-error {
        padding: 3px 0 3px 1px
    }
    .river-edit-form-mob .river-edit-img__img {
        min-height: 180rem
    }

    .river-form-edit .select_file_btn svg {
        width: 34px
    }
    .river-form-edit .select_file_btn {
        width: 56px;
        height: 56px
    }

    /* .river-edit-mob-top {
        position: relative;
        display: flex;
        background: #F5F2F3;
        border: 1px solid #F0F4F7;
        align-items: center;
        padding: 20px 0;
        justify-content: center;
        border-radius: 15px 15px 0 0;
        width:100%;
    } */
    .river-edit-mob-top p {
        font: 700 20px Source;
        margin: 0
    }

    .river-edit-mob-top__close {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        z-index: 9999;
        cursor: pointer
    }

    .river-edit-main.post_wrapper_river {
        top: 60px;
        padding: 0 0 30px 0;
        margin: 0 !important
    }

    .rivertime-link-sort__link {
        font-size: 16px
    }

    h1.rivertime-header__title {
        font: 600 26px Source
    }

    .river_title {
        font-size: 26px;
        font-family: Source;
        padding-left: 10px;
        margin-top: 0px;
        margin-bottom: 15px
    }

    .post_wrapper_river {
        border-radius: 12px;
        margin-left: 10px !important
    }

    .post_img_wrapper_river {
        padding-top: 0;
        margin: 0
    }

    .post_data_wrapper p {
        font-size: 16rem;
        line-height: 24px
    }

    .rivertime-header {
        padding: 0
    }

    /*.rivertime-header-edit__img {
        display: none
    }*/

    .content-wrapper {
        padding: 10px 18px 1% 18px
    }

    .river-edit-panel__mob {
        display: inline-flex
    }

    .river-header-mob__close {
        margin-top: 7px
    }

    .river-header-mob .river-edit-panel__title h3 {
        text-align: center;
        margin-left: -1px
    }
    .river-header-mob .river-edit-button {
        width: 100%;
        display: inline-block;
        text-align: center;
        margin: 20px 0 20px
    }

    .river-mob-add {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 33px 0 5px;
        align-items: center
    }
    .river-mob-add p {
        color: #326E5B;
        font-size: 16px;
        margin-left: 15px;
        font-weight: 700
    }

    .post_river_panel__inner {
        flex-direction: row
    }

    .post_river_edit,
    .post_river_delete,
    .post_river_edit__mob {
        margin: 10px 20px
    }

    .river-popup {
        padding: 30px 30px 30px 30px
    }

    .river-popup-btn div {
        padding: 15px 50px
    }

    .river-popup .river-popup-text p,
    .river-popup h3 {
        font-size: 18px
    }

    .river-edit-form-mob .river-success{
        display: none
    }
    .river-edit-form-mob .river-edit-button {
        width: 100%
    }
    .river-edit-form-mob .river-edit-btn__inner {
        display: inline-block;
        width: 100%;
        flex: initial
    }
    .river-edit-form-mob .post_img_wrapper_river {
        margin-right: 0;
        height: 100%;
        width: 100%;
        min-height: 180rem;
        min-width: auto;
        margin-bottom: 0
    }
    .river-edit-form-mob .river-form-img {
        min-height: 180rem
    }
    .river-edit-form-mob .post_river_panel {
        display: none
    }
    .river-edit-form-mob .river-edit-btn {
        flex: initial;
        justify-content: center;
        padding-bottom: 25px
    }



    .river-edit-btn__inner {
        flex: 0 0 100%
    }

    /* .river-form-post.post_wrapper_river {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 60px 0 0;
        margin-left: 0 !important;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 0;
        border: none;
        z-index: 999
    }

    .river-form-post.post_wrapper_river .post_river_panel{
        display:none;
    } */
    .river-form-post .post_river_panel {
        display: none;
    }

    .river-form-post.river_mode_edit .post_river_panel {
        display: flex;
        justify-content: center;
        width: 100%
    }



    /***
        EDIT MODE
     ***/
    .edit-mode .river-edit-main {
        display: none
    }

    .edit-mode .river-header-mob {
        display: flex
    }

    .edit-mode .rivertime-header-edit__btn {
        width: 100%
    }

    /* .edit-mode .post_wrapper_river.river-edit-main {
        display: flex!important;
    } */
    /*** END OF EDIT MODE ***/


    .photo-text-form-save,
    .photo-text-form-close {
        display:none !important;
    }
}

@media (max-width: 480px) {
    .river-popup {
        padding: 30px 20px 20px 20px
    }

    .river-popup-btn div {
        padding: 10px 40px
    }

    .river-popup-close {
        top: 20px;
        right: 20px
    }

    /* .river-edit-img__img,
    .river-form-img {
        height: 175rem;
        background-size: 24%
    } */
}

@media (min-width: 651px) {
    .post_wrapper_river {
        width: auto;
        padding: 17px 31px 24px 14px;
        margin-bottom: 15px
    }
    .post_wrapper_river.no-thumb {
        padding: 19px 31px 19px 18px
    }
    .edit-mode .post_wrapper_river,
    .edit-mode .post_wrapper_river.no-thumb {
        padding-right: 0
    }

    /* Add event form */
    #form-river-add .post_river_panel {
        display: none
    }
    #form-river-add .river-edit-text {
        width: calc(100% - 250px)
    }
    #form-river-add .river-edit-btn {
        width: 100%
    }

    .post_wrapper_river.river-edit-main {
        padding: 14px 55px 15px 14px
    }

    .river-edit-main__img.river-edit-img {
        width: 250px;
        padding-left: 0
    }


    /* .post_wrapper_img:hover .photo-text,
    .river-edit-img-inner:hover .photo-text,
    .river-form-img:hover .photo-text {
        opacity: 1
    } */

    .river-edit-year {
        margin-top: 0
    }

    .post_wrapper_river .post_data_wrapper {
        width: calc(100% - 180px);
        align-self: unset;
        padding: 5px 0 0 31px
    }
    .post_wrapper_river.no-thumb .post_data_wrapper {
        width: 100%;
        padding: 0
    }
    .edit-mode .post_wrapper_river .post_data_wrapper {
        width: calc(100% - 235px);
        padding-right: 0
    }
    .edit-mode .post_wrapper_river.no-thumb .post_data_wrapper {
        width: calc(100% - 55px)
    }

    .post-img-and-text-wrapper {
        width: 180px;
        align-self: flex-start
    }
    .post-img-and-text-wrapper::before {
        top: 5px
    }

    .post_img_wrapper_river {
        width: 100%;
        height: auto;
        min-height: auto;
        min-width: auto;
        margin: 0
    }

    .post_river_panel {
        display: none;
        width: 55px;
        align-items: center;
        justify-content: center
    }

    .edit-mode .post_river_panel {
        display: flex
    }

    .river-edit-text {
        width: calc(100% - 235px)
    }

    /***
        EDIT MODE
     ***/
    /* .edit-mode .post_wrapper_river.river-edit-main {
        display: flex !important
    } */
    /*** END OF EDIT MODE ***/

    /***
        PHOTO TEXT POPUP
     ***/
    /* .photo-text-popup {
        align-items: center;
        background-color: transparent
    } */

    .photo-text-form {
        min-height: auto;
        padding: 18px;
        margin: auto 0
    }

    .photo-text-form legend {
        background-color: transparent;
        font-size: 24px;
        line-height: 30px;
        text-align: left;
        padding: 0
    }
    .photo-text-form legend::before {
        display: none
    }

    /* .photo-text-form-save,
    .photo-text-form-close {
        right: 0;
        width: 24px;
        height: 24px;
    } */

    .photo-text-form .photo-text-form-input {
        border-radius: 15px
    }

    .photo-text-form-image-wrap,
    .photo-text-form-buttons {
        display: none
    }
    /*** END OF PHOTO TEXT POPUP ***/
}

@media (min-width: 992px) {
    .post-img-and-text-wrapper {
        width: 250px
    }

    .post_wrapper_river .post_data_wrapper {
        width: calc(100% - 250px)
    }

    .edit-mode .post_wrapper_river .post_data_wrapper {
        width: calc(100% - 305px)
    }

    .river-edit-text {
        width: calc(100% - 305px)
    }
}



@media only screen and (max-width: 650px) {


    .content__rivertime {
        padding-top: unset;
        padding-bottom: 15rem;
        width: auto;
    }

    /* .posts_container {
        display: none;
    } */

    .post_wrapper_river {
        padding: 12px;
    }

    .river-edit-main.post_wrapper_river::before {
        content: "";
        background: #000;
        position: absolute;
        width: 100%;
    }

    .edit-mode .post_wrapper_river.river-edit-main {
        display: none;
        position: fixed;
        bottom: 50px;
        left: 0;
        overflow-y: auto;
        width: 100%;
        height: calc(100svh);
        ;
        overflow-y: auto;
        z-index: 5555;
        border: unset;
    }

    .edit-mode .post_wrapper_river.river-edit-main::before {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
    }

    .content__rivertime .river-edit-panel_save .nd-button {
        width: 100%;
    }

    .river-edit-main--mobile #form-river-add {
        padding: 25px;
        flex-wrap: nowrap;
        flex-direction: column;
        background-color: #fff;
    }


    .river-edit-text {
        margin-top: 24px;
        padding-left: unset;
        padding: 0 0 0 0;
    }

    .river-edit-img {
        padding: 0 0 0 0;
    }

    .content__rivertime .ql-toolbar.ql-snow {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow: hidden;
        overflow-x: scroll;
        width: auto;
    }

    .content__rivertime .ql-toolbar.ql-snow .ql-formats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .content__rivertime .ql-toolbar.ql-snow::-webkit-scrollbar {
        height: 2px;
    }

    .river-form-post .river-edit-text-wp-editor p {
        margin-bottom: 5rem;

        color: var(--Black, #444);
        font-feature-settings: 'clig' off, 'liga' off;
        font-family: "Proxima Nova";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        /* 125% */

    }

    .river-edit-text-wp-editor p a {
        font-weight: 400;
        color: #444;
        text-decoration: underline;
    }

    .river-edit-mob-top {
        position: relative;
        display: flex;
        background: #fff;
        z-index: 1;
        width: 100%;
        justify-content: center;
        padding: 15px;
        background: var(--beige, #F5F2F3);
    }

    .river-edit-img {
        width: 100%;
        align-self: auto;
        padding: 0 0 0;
    }

    .river-edit-main.post_wrapper_river::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 0;
    }

    .river-edit-btn {
        position: relative;
        width: 100% !important;
        padding: 0 0 25px;
    }

    .content__rivertime .nd-button.form-river-add {
        width: 100%;
    }

    .river-success {
        position: absolute;
        display: flex;
        opacity: 0;
        visibility: hidden;
        z-index: 2;
        background: #fff;
        left: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
        border-radius: 15px 15px 0px 0px;
        box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.10), 0px 2px 12px 0px rgba(0, 0, 0, 0.12);
    }

    .river-success p {
        font-family: "Proxima Nova";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }



    .photo-text-popup {
        top: unset;
        bottom: 0;
        left: 0;
        padding-bottom: 50px;
    }

    .photo-text--hide {
        opacity: 1
    }

    .river-form-img:hover .photo-text {
        opacity: 0
    }

    .river-form-img:hover .photo-text.photo-text--hide {
        opacity: 1;
    }

    .photo-text-popup.photo-text-popup--active {
        max-width: 100%;
        height: 100%;
        position: absolute;
        top: -55px;
        height: min-content;
    }
    .photo-text-popup legend {
        text-align: center;
    }

    /* Edit Form Mobile */

    /* .edit-mode  .river-form-post.river_mode_edit {
        position: fixed;
        bottom: 0;
        left: 0;
        overflow-y: auto;
        width: 100%;
        height: calc(90svh);
        ;
        overflow-y: auto;
        z-index: 5555;
        border: unset;
        margin-left: 0 !important;

        margin-bottom: 0;
        padding: 0;

        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .edit-mode  .river-form-post.river_mode_edit .river-edit-mob-top {
        display: block;
    }

    .edit-mode  .river-form-post.river_mode_edit::before {
        position: fixed;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
    }

    .edit-mode  .river-form-post.river_mode_edit .post_wrapper_river {
        border-radius: 12px;
        margin-left: unset !important;
    }

    .edit-mode  .river-form-post.river_mode_edit .river-form-edit {
        padding: 25px;
        background: #fff;
    }

    .edit-mode  .river-form-post.river_mode_edit .river-edit-year {
        flex-direction: column;
    }

    .edit-mode  .river-form-post.river_mode_edit .river-edit-main__btn {

        padding: 25px 0 0;
    } */

    .edit-mode  .river-form-post.river_mode_edit::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 0;
    }


    .photo-text-form__help p {
        max-width: 240px;
    }
    .photo-text-form__help .photo-text-form__help--mobile {
        display: flex;
    }
    .photo-text-form__help .photo-text-form__help--desktop {
        display: none;
    }


    .photo-text-popup.photo-text-popup--active .post-img-and-text-wrapper {
        display: flex;
    }

    .photo-text-popup .photo-text-form-field-wrap {

        margin-top: 30px;
        height: auto;
    }

    /* Модальное окно удаление записи реки */
    #modal_remove_river {
        align-items: flex-end;
    }
    #modal_remove_river .modal_river {
        border-radius: 8px 8px 0 0;
    }
    #modal_remove_river .modal_river {
        padding: 0;
    }
    #modal_remove_river .modal-river__header {
        position: relative;
        padding: 15px 40px;
        border: none;
    }
    #modal_remove_river .modal-river__header {
        color: var(--Black, #444);
        text-align: center;
        font-family: "Source Serif Pro";
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }
    #modal_remove_river .modal-river__text {
        margin: 0 25px;
        text-align: center;
    }
    #modal_remove_river .modal-river__bottom {
        display: flex;
        flex-direction: column-reverse;
        gap: 15px;
        padding: 0 25px;
        margin-bottom: 40px;
    }
    #modal_remove_river .modal-river__bottom button {
        max-width: 100%;
        width: 100%;
    }
    #modal_remove_river .modal-river__header .modal-river__close {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;
        box-shadow: none;
        width: 35px;
    }
}