/*
    HISTORY PAGE LAYOUT
*/


/*------------TIMELINE--------*/

:focus {
    /* outline: 0px !important;
    -webkit-appearance: none;
    box-shadow: none !important */
}

ol li {
    list-style: none;
}


/*body {overflow-y: hidden;} */

/* .horizontal-timeline .events-content li {
    margin: 40rem 0;
    background-color: #F8F9FC;
    padding: 35rem;
    border-radius: 15rem;
}

.horizontal-timeline .events-content li p {
    text-align: left;
}

.horizontal-timeline .timeline {
    margin: 80rem auto;
    overflow-y: visible;
    position: static;
    align-items: end;
} */

#filter_date_ajax {
    padding: 15rem;
    background: transparent;
    border: solid 1px black;
    font-family: Montserrat;
    margin-left: auto;
    display: block;
    font-size: 20rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

select>option {
    background-color: white;
    font-family: Montserrat;
    border-radius: 0!important;
    padding: 5rem 2rem;
}


/*---------------------------------*/


.content_main_new {
    width: 100%;
    padding: 40rem;
    padding-right: 0;
}

.cat_link_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 30rem;
    padding: 40rem 0;
    min-height: 300rem;
}

.cat_link_title {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    padding: 30rem;
    /* border: solid 1px lightgray; */
    background: #F8F9FC;
    border-radius: 10rem;
    min-height: 300rem;
}

.cat_link_title a {
    width: 100%;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.cat_link_title img {
    max-width: 130rem;
    height: auto;
    margin-bottom: 15rem;
    opacity: .75;
    transition: all .4s ease-in-out;
}

.cat_link_title h3 {
    text-align: center;
    margin: 0 auto;
    transition: all .5s ease-in-out;
    color:#2F6E5B;
}

.cat_link_title p {
    margin-top: 12rem;
}

.cat_link_title a:hover h3 {
    transform: scale(1.3);
    color: #2F6E5B;
}

.cat_link_title a:hover img {
    transform: scale(1.1);
}



/*
    HISTORY THEME ALBUM LAYOUT
*/

.post_wrapper {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: row nowrap;
    margin: 60rem 0;
    background-color: #F8F9FC;
    padding: 35rem;
    border-radius: 15rem;
}

.post_wrapper_river {
    /* display:none;*/
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -webkit-flexbox;
    flex-flow: row nowrap;
    margin: 18rem 0;
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    box-shadow: 0px 2px 15px rgb(0 0 0 / 12%);
    border-radius: 12px;
    margin-left: 145rem;
}

.post_wrapper_timeline {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: row nowrap;
    /* background-color: #F8F9FC;
    padding: 35rem;
    border-radius: 15rem; */
}

.post_img_box{
    background-image: url(/wp-content/themes/nasldnew/assets/img/svg/logo.svg);
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
    margin-right: 40rem;
    width: 25%;
}

.post_img_box img{
	-o-object-fit:cover;
	   object-fit:cover;
}
.post_img_wrapper {
    opacity: 1;
    /* width: 35%;
    min-width: 400rem; */
    /*  min-height: 350rem; */
    background-position: center center;
    /* margin-right: 40rem; */
    background-repeat: no-repeat;
    background-size: cover;
    -o-object-fit: cover;
       object-fit: cover;
}

.post_img_wrapper_river {
    width: 25%;
    min-width: 280rem;
     min-height: 350rem;
     margin-right: 40rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    -o-object-fit: cover;
       object-fit: cover;
}
.img_portrait {
    min-height: 300rem;
	max-height: 320rem;
}

.img_landscape {
    max-height: 200rem;
	min-height:200rem;

}

.post_data_wrapper {
    width: 100%;
}
.post_wrapper_river .post_data_wrapper{
    width: 100%;
    display: flex;
    align-self: center;
    flex-direction: column;
    padding: 20px 0px 20px 20px;
}
.post_data_wrapper h2 {
    font-size: 28rem;
}

.post_title_id_wrapper {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    width: 100%!important;
}

.post_title_id_wrapper h2 {
    text-align: left;
    font-size: 28rem;
}

.post_data_wrapper p,
.post_title_id_wrapper p {
    font-size: 20rem;
}

.post_data_wrapper h5,
.post_title_id_wrapper h5 {
    font-size: 22rem;
    margin: 15rem 0;
    text-align: left;
}

/*
.posts_container {
    padding-left: 24rem;
    border-left: solid 2px #F8F9FC;
}
*/

/*
HISTORY LAYOUT MOBILE
*/

@media screen and (max-width: 650px) {
    .content_main_new {
        width: 100%;
        flex-flow: column;
        padding: 0 10rem;
    }
    .content__header {
        flex-flow: row;
        justify-content: flex-start;
    }
    .histories__types {
        flex-flow: column;
    }
    .histories__type {
        margin: 5rem 0!important;
        padding: 5rem 0;
    }
    .post_wrapper {
        padding: 20rem;
        margin: 20rem 0rem;
        flex-flow: column;
    }
    .post_img_wrapper {
        min-width: 100%;
        min-height: 160rem;
        margin-bottom: 10rem;
    }
    .img_portrait {
        min-height: 280rem;
    }
    .img_landscape {
        min-height: 180rem;
    }
    .cat_link_wrapper {
        grid-template: auto / 1fr;
        padding: 0;
    }
    .sort-by-list__list {
        margin: 0;
    }
}


/*
    MY FAMILY PAGE LAYOUT
*/

.family_container {
    display: grid;
    grid-template: auto / 1fr 1fr 1fr;
    gap: 40rem;
}

.link-to {
    width: 100%;
    min-height: 380rem;
    position: relative;
    overflow: hidden;
}

.link_to_family {
    width: 100%;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    align-items: center;
    justify-content: flex-end;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: all .75s ease-in-out;
}

.link_to_family h4 {
    color: #e0e0e0;
    font-size: 20rem;
    margin-bottom: 20rem;
    transition: all .75s ease-in-out .25s;
}

.link-to:hover .link_to_family {
    transform: scale(1.3, 1.3);
}

.link-to:hover .link_to_family>h4 {
    transform: translate(0, -40rem);
    text-shadow: 1rem 0rem 6rem rgba(0, 0, 0, .75);
    color: white;
}

@media screen and (max-width:650px) {
    .family_container {
        grid-template: auto / 1fr;
    }
}


/*
* FIX PERSON PAGE (GENEALOGICAL TREE)
*/


/*
 * FIX GT TREE
 * */

#gt-content {
    max-height: 800px;
}

.gt-popover {
    overflow: visible;
    font-size: 14rem;
}

.gt-gender-emoji {
    display: none!important;
}

.gt-popover-container .close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #363636;
    cursor: pointer;
}

div.gt-container .gt-expand-compress .gt-expand-icon {
    width: unset;
}

.genealogical-tree-member td,
.genealogical-tree-member tr {
    /*border-spacing: 30px;*/
    padding: 5rem 0;
}

.tree_link img {
    display: none!important;
}


/*  PHOTO IN CIRCLE  */

div.gt-tree div.ind>.ind-cont>div.image>.image-cont>img {
    max-height: 60px;
    -o-object-fit: cover;
    object-fit: cover;
}

.relative__about>h3,
.relative__about>h4 {
    display: none;
}

.relative__about>p {
    display: none;
}

.genealogical-tree-member tr td {
    min-width: 240rem;
    text-transform: capitalize;
    font-size: 14rem;
}

table.indi.genealogical-tree-member td>img {
    display: none;
}


/*
.genealogical-tree-member tr:nth-child(3) {
    display: none;
}

.genealogical-tree-member tr:nth-child(4) td:nth-child(-n+2) {
    display: none;
}
/*
.genealogical-tree-member tr:nth-child(n+7) {
    display: none;
}*/

.relative__add table,
.relative__add h3 {
    display: none;
}

.relative__avatar img {
    -o-object-fit: cover;
    object-fit: cover;
    max-height: 100%;
    max-width: 100%;
    width:auto;
}


/*
 * FORM FOR EDIT SINGLE IMAGE
 * */

.transform {
    transform: rotate(180deg);
}
.hide_show {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    width: 100%;
    justify-content: space-between;
    /*  */
    align-items: baseline;
}
.hide_show_name {
    font-size: 16rem;
    cursor: pointer;
}
.persone_data {
    padding-top: 10rem;
    max-height: 17vh;
    overflow: auto;
    padding-right: 10rem;
    overflow: auto;
    scrollbar-gutter: stable;
   /* transform: scaleY(0);
     position: absolute;
    background: white;
    padding: 20rem;
    z-index: 10;
    margin-top: 130rem;
    box-shadow: 5rem 5rem 15rem #acacac;
    min-width: 300px;
    max-width: 360px;
    transition:all .3s ease; */
} /*
.persone_data_open {
    transform: scaleY(1);
    transition:all .3s ease;
}*/

.btn_block {
    display:flex; justify-content:space-between;
}


.wrapper_btns_edit_names_photo {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    width: 100%;
    justify-content: space-between;
    margin-top: -20rem;
}
.editor_wrap {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: space-between;
    background-color: white;
    padding: 35rem;
    padding-top: 60rem;
    position: absolute;
    z-index: 101010;
    left: -400px;
    top: 10px;
    bottom: 10px;
    transition: all .3s ease-in-out;
    border-radius: 15rem;
    width: 420px;
}
.att_id {
    font-size: 16rem;
    color: #2F6E5B;
}
.editor_wrap_top {
    position: absolute;
    top: 30rem;
    /* right: 324rem; */
    left: 40rem;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: space-between;
    width: 100%;
    max-width: 360px;
}

.edit_img_init {
    color: #2F6E5B;
    cursor:pointer;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    align-content: center;
    align-items: center;
    font-size: 16rem;
}
.edit_img_init p {

    margin: auto 0;
    margin-right: 10rem;

}

.editor_wrap-open {
    transform: translate(400px, 0);
}

.editor_id{
    color:#2F6E5B;
    font-weight: 400;
    margin-bottom: 30px;
}

.editor_form-open {
    position: absolute;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: center;
    top: 45%;
    width: 60rem;
    height: 60rem;
    border-radius: 30rem;
    background-color: #2F6E5B;
    padding: 0rem;
    z-index: 0;
    right: -30rem;
    cursor: pointer;
}

#editor_form-close.editor_form-open svg {
    margin: auto;
    color: white;
    max-width: 36rem;
}

.editor_form-open svg {
    margin: auto;
    color: white;
    max-width: 36rem;
    margin-top: 15rem;
}

.editor_form {
    width: 100%;
    max-width: 400px;
    overflow: auto;
    padding: 5rem;
    padding-right: 20rem;
    margin-top: 10rem;
    height: 100%;
    overflow-y: auto;
}

.editor_form::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    background: #fff;
}

.editor_form::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #2F6E5B;
}

.editor_form input,
.editor_form textarea {
    width: 100%;
    margin-top: 10rem;
    margin-bottom: 15px;
    padding-bottom: 5rem;
    border: none;
    font-family: Montserrat;
    max-width: 360px;
    cursor: inherit;
    resize: none;
    font-size: 18rem;
    color:#5b5757;
    min-height: fit-content;
}
/*
.editor_form textarea {
    min-height: 132rem;
}
.editor-form__textarea{
    min-height: 50rem !important;
}
/*
.editor_form textarea::placeholder {
    color: #363636;
    font-size: 20rem;
} */
.editor_form textarea::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
.editor_form textarea::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #2F6E5B;
 /*  -webkit-box-shadow: 0 0 1px #2F6E5B; */
}

.editor_form label {
    /* font-size: 16rem; */
    color: #2F6E5B;
}
/*
.editor_form input[type="button"],
.editor_form input[type="reset"] {
    border: none;
    padding: 10rem 25rem;
}
*/


.download-link_wrapper {
    position: absolute;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: row wrap;
    justify-content: flex-end;
    align-content: center;
    bottom: 0;
    right: 0;
    padding: 15rem;
    background-color: #363636;
    color: #bbb;
}

.download-link_wrapper p {
    padding: 0 5rem;
    margin: 0;
}

@media screen and ( max-width:650px) {
    .editor_form-open {
        top: 45%;
        width: 36rem;
        height: 36rem;
        border-radius: 30rem;
        right: -20rem;
    }
    .editor_form-open svg {
        margin: 5rem;
        max-width: 28rem;
        margin-top: 9rem;
    }
    .editor_form input,
    .editor_form textarea {
        font-size: 12rem;
        margin-bottom: 8rem;
    }
    .editor_wrap {
        max-width: 310px;
        left: -290px;
        padding: 20rem;

    }
    .editor_wrap-open {
        transform: translate(290px, 0);
    }
    #editor_form input[type=submit] {
        margin: 0;
        padding: 5rem;
        font-size: 10rem;
    }
    #editor_form input[type=reset] {
        margin-top: 5rem;
        background-color: white;
        padding: 5rem;
        font-size: 8rem;
    }
}
.tax_single_att {
    margin-top: 30rem;
}
.tax_single_att p {
    font-size: 14rem;
}
/*
 * FIX PORTAIT PHOTOS IN AVATAR
 * */

.content__avatar img {
   /* width: 100rem;
    height: 100rem; */
    -o-object-fit: cover;
    object-fit: cover;
}


/* FIX PHOTOS IN FRIEND SINGLE PAGE *
 *
*/

.relative img {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    min-height: 100%;
}


/* contemporaries
 *
 */
.mapplic-element {
	display:flex;
}

.mapplic-container {
	max-width: 1400rem!important;
    height: 100%;
    margin: auto!important;
	margin-top:0;
}
/* LEVEL SWITCHER */

.mapplic-level-switcher {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    margin-right: 0px;
    margin-top: 0px;
}

.mapplic-icon.mapplic-icon-fullscreen{
	background:#fff;
}

.mapplic-fullscreen-button{
	opacity: 0;
}

.mapplic-level-switcher button.mapplic-selected {
    background-color: #2F6E5B!important;
    color: #fff!important;
    transform: scale(1.1)!important;
    z-index: 9!important;
}

.mapplic-level-switcher button {
    color: #2F6E5B!important;
    font-family: 'Montserrat'!important;
}




/*слайдеры*/
.content__slide img{
	background:#fff;
    width: 99%;
    margin: 0 auto;
}

.content__slide {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-direction: column;
    gap: 5px;
}
/* AVATAR'S SIZE */


/* Ordinary */

@media screen and (min-width:1199px) {
    a.mapplic-pin,
    a.mapplic-pin.pin-sm,
    a.mapplic-pin.pin-label {
        width: 36px;
        height: 36px;
    }
}

  @media screen and (min-width:1200px){
    a.mapplic-pin.pin-lg {
    width: 180rem;
    height: 180rem;
    }
  }
  @media screen and (max-width:1200px){
    a.mapplic-pin.pin-lg {
    width: 130rem;
    height: 130rem;
    }
  }
  @media screen and (max-width:728px){
  a.mapplic-pin.pin-lg{
      width: 90px;
    height: 90px;
  }
  }
  @media screen and (max-width:650px) {
    a.mapplic-pin,
    a.mapplic-pin.pin-sm,
    a.mapplic-pin.pin-label {
        width: 28px;
        height: 28px;
    }
}
  @media screen and (max-width:480px) {
    a.mapplic-pin,
    a.mapplic-pin.pin-sm,
    a.mapplic-pin.pin-label {
        width: 24px;
        height: 24px;
    }
}
.mapplic-legend {
    margin-bottom: 0!important;
    margin-left: 0!important;
    left: -6px!important;
}

a.mapplic-pin {
    background-size: cover;
}


/*----------------------
 * 											MEDIA FEATURES
 * ------------------
*/

.media_container_level_1 {
    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr;
    grid-gap: 20rem;
    min-width: 100%;
    /*background-color: lightgrey;*/
}

@media (max-width:650px) {
    .media_container_level_1 {
        display: grid;
        grid-template: 1fr / 1fr;
    }
}
/*
.media_item_nav {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: grey;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    min-height: 320rem;
    overflow: hidden;
}

@media (max-width:650px) {
    .media_item_nav {
        min-height: 200rem;
    }
    .media_item_nav svg {
        max-height: 40rem;
        margin-bottom: 5rem;
    }
}

.media_item_nav h6 {
    margin-top: 12rem;
    color: white;
    font-size: 14rem;
}

.media_item_nav a {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.media_item_nav a h3 {
    transition: all .4s ease;
    text-align: center;
    color: white;
    padding-bottom: 10rem;
}

.media_icons {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    width: 90%;
    flex-flow: row nowrap;
    justify-content: center;
    margin-top: 10rem;
    align-items: baseline;
}

.media_icon {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    align-items: center;
    align-content: center;
    max-width: 0 20rem;
    padding: 0 8px;
    min-width: 92px;
}

.media_item_nav a svg {
    transition: all .4s ease;
}

.media_item_nav a:hover h3 {
    transform: scale(1.2, 1.2);
}

.media_item_nav a:hover svg {
    transform: scale(1.2, 1.2);
}

.media_item_nav a {
    width: 100%;
    height: 100%;
} */


/*------------------LEVEL 2---------------------------*/

.alboms_wrapper_level-2 {
    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr;
    grid-gap: 20rem;
    min-width: 100%;
}

.albom_level-2 {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: grey;
    /* border-radius: 1rem; */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    min-height: 320rem;
    padding: 5rem;
}

.albom_level-2 a {
    color: white;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column nowrap;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    /* overflow: hidden; */
}

.albom_level-2 a h3 {
    transition: all .4s ease;
    text-align: center;
    color: white;
    padding-bottom: 10rem;
}

.albom_level-2 a svg {
    transition: all .4s ease;
}

.albom_level-2 a:hover h3 {
    transform: scale(1.2, 1.2);
}

.albom_level-2 a:hover svg {
    transform: scale(1.2, 1.2);
}

@media (max-width: 650px) {
    .alboms_wrapper_level-2 {
        display: grid;
        grid-template: 1fr / 1fr;
    }
    .albom_level-2 {
        min-height: 200rem;
    }
    /*  .albom_level-2 h3 {
         font-size: 7rem;
    }
    .albom_level-2 h6 {
        /* font-size: 5rem;
    } */
}




@media (max-width: 650px) {
    .gallery_wrapper {
        padding: 0rem;
    }
    .gallery_item {
        /*  min-width: 100%;*/
        height: auto;
    }
    .gallery_item img {
        max-height: 130rem;
        max-width: 100%;
    }
    .gallery_item h6 {
        opacity: 1;
        transform: scale(1, 1);
        font-size: 50%;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, .25);
    }
}



/* MODALS
 *
 *
/* ALL Modals background */

.modal {
    display: none;
    /* display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox; */
    justify-content: center;
    align-items: center;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 999999;
    /* Sit on top */
    /* padding: 13%; */
    /* Location of the box */
    left: 0;
    top: 0;
    /* width: 100%; */
    /* Full width */
    /* height: 100%; */
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */

}


/* Close ALL Modals Button */
.login_form .close {
    position: absolute;
    top: -20rem;
    right: -20rem;
    color: #f1f1f1;
    font-size: 40rem;
    line-height: 0;
    /*font-weight: regular;*/
    transition: 0.3s;
    padding: 23rem 11rem;
    background-color: rgb(129, 0, 0);
    /* #2f6e5b;*/
    border-radius: 50%;
    z-index: 9999;
}
a#history-button .close {
/* a#bread-button .close{ */
    /* position: absolute; */
    /* top: -20rem; */
    /* right: -20rem; */
    color: #f1f1f1;
    font-size: 40rem;
    line-height: 0;
    /*font-weight: regular;*/
    transition: 0.3s;
    padding: 23rem 11rem;
    background-color: rgb(129, 0, 0);
    /* #2f6e5b;*/
    border-radius: 50%;
    z-index: 9999;
}


/* a#bread-button .close { */
    /* position: absolute; */
    /* top: -20rem; */
    /* right: -20rem; */
    /* color: #f1f1f1; */
    /* font-size: 40rem; */
    /* line-height: 0; */
    /*font-weight: regular;*/
    /* transition: 0.3s; */
    /* padding: 23rem 11rem; */
    /* background-color: rgb(129, 0, 0); */
    /* #2f6e5b; */
    /* border-radius: 50%; */
    /* z-index: 9999; */
/* } */

@media screen and (max-width:650px) {
    .close {
        top: 8rem;
        right: 8rem;
        font-size: 20rem;
        padding: 10rem 4rem;
    }
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Modal content for comments */

.modal_message_content {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    background-color: white;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    border-radius: 12rem;
    position: absolute;
    padding: 10rem 15rem;
    box-shadow: 0px 2px 12px rgb(0 0 0 / 12%);
    z-index: 1;
    top: -10%;
    right: 0;
}


.block .content-right-box .link-wrap {
    width: 100%!important;
}

.modal_message_content .logo_form {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -webkit-flexbox;
    justify-content: center;
    margin-bottom: 40rem;
}

@media (max-width: 650px){
    .modal_message_content .logo_form{
        margin-bottom: 12px;
    }
}

.modal_message_content .logo_form svg {
    width: 90%;

}
.modal_message_content p {
    text-align: center;
    /* word-wrap: break-word; */
    font-size: 22rem;
    color: #2F6E5B;
}
@media (max-width: 650px){
    .modal_message_content p{
        font-size: 16px;
    }
}
/* Add Animation - Zoom in the Modal */

.modal_message_content {
    /* -webkit-animation-name: zoom; */
    /* animation-name: zoom; */
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}


/* Initial modal content button */

.comment_btn {
    padding: 5rem;
    background-color: #2F6E5B;
    position: fixed;
    top: 50%;
    right: 0;
    width: 38rem;
    height: 50rem;
    border-radius: 15rem 0 0 15rem;
    z-index: 9999;
    cursor: pointer;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
    align-content: center;
}

.comment_btn svg {
    max-width: 75%;
}

@media only screen and (max-width: 650px) {
    .comment_btn {
        right: 0;
        width: 30rem;
        height: 35rem;
        border-radius: 10rem 0 0 10rem;
    }
}


/* Modal content for media */

.wrap-media_gallery_item {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    background-color: white;
    align-items: center;
    flex-flow: row wrap;
    max-width: 1200px;
    min-height: 450rem;
    margin: auto;
    border-radius: 5rem;
    position: relative;
}


/* Add Animation - Zoom in the Modal */

.wrap-media_gallery_item {
    -webkit-animation-name: zoom;
    animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}


/*
 * BACK BTN
 */

.history-hide {
    display: none;
}


/*
 *  THE NEW SINGLE MEDIA
 *
*/

.show {
    display: inherit;
}

.add_input_person {
    padding: 15rem 10rem 4rem;
    border-bottom: solid 1px #2F6E5B;
    margin: 0 auto;
    transition: all .3s ease-in-out;
    background: transparent;
    color: #2F6E5B;
    /* text-decoration: underline; */
    text-align: center;
    display: block;
}

.add_input_person:hover {
    border-bottom: solid 1px #fff;
}
span.data_person_input__span {
    margin-right: -4px;
    color: #5b5757;
    word-break: normal;
    font-size: 18rem;
}
/* div.persone_data span.data_person_input__span::before  {
    content: ", ";
}
div.persone_data span.data_person_input__span:nth-child(2)::before  {
    content: "";

} */


.black_back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
    align-content: center;
    background-color: rgba(0, 0, 0, .75);
    z-index: 1110;
}

.single-media_gallery_new {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    position: relative;
    min-width: 300rem;
    width: 90%;
    background-color: #f5f5f5;
    z-index: 1111;
    height: 90%;
    flex-flow: row wrap;
    margin: auto;
}

@media screen and (max-width:650px) {
    .single-media_gallery_new {
        width: 100%;
        height: 100%;
    }
    .download-link_wrapper {
        width: 100%;
        padding: 8rem;
        font-size: 8rem;
    }
}

.help_pic,
.help_pic_close {
    display: block;
    position: absolute;
    top: 40rem;
    right: 40rem;
    width: 50rem;
    height: 50rem;
    border-radius: 25rem;
    background-color: #2F6E5B;
    padding: 12rem 12rem 12rem 11rem;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.help_pic_close {
    background-color: darkred;
    transition: all .3s ease-in-out;
    transform: scale(0);
    opacity: (0);
}

.help_pic_close span {
    margin: auto;
    font-size: 40rem;
    line-height: 0;
    color: white;
    position: absolute;
    top: 24rem;
    left: 13rem;
}

.help_pic span {
    margin: auto;
    font-size: 24rem;
    line-height: 0;
    color: white;
}

.help_modal {
    position: absolute;
    padding: 24rem;
    background-color: white;
    top: 90rem;
    right: 90rem;
    transition: all .3s ease-in-out;
    transform: scale(0);
    opacity: (0);
}

.hide_help_modal {
    transform: scale(0);
    opacity: (0);
}

.show_help_modal {
    transform: scale(1);
    opacity: (1);
    z-index: 1;
}

.help_modal p {
    margin: 10rem 0 0;
}

.help_modal h4 {
    margin: 0 0 16rem;
}

@media (max-width:650px) {
    .help_pic,
    .help_pic_close {
        left: 5rem;
        width: 25rem;
        height: 25rem;
        padding: 5rem;
        top: unset;
        bottom: 5rem;
    }
    .help_modal p {
        margin: 5rem 0 0;
        font-size: 60%;
    }
    .help_modal h4 {
        margin: 0 0 10rem;
        font-size: 60%;
    }
    .help_modal {
        top: unset;
        padding: 10rem;
        bottom: 16rem;
        left: 30rem;
        min-width: 235rem;
    }
    .help_pic_close span {
        position: absolute;
        font-size: 29rem;
        top: 12.5rem;
        left: 4rem;
    }
    .help_pic span {
        position: absolute;
        top: 5rem;
        left: 4rem;
        font-size: 15rem;
    }
}

.single-img_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
    align-content: center;
    background-blend-mode: multiply;
    background-size: cover;
    background-color: #5b5757;
    background-repeat: no-repeat;
}

.single-img_wrapper img {
    -o-object-fit: contain;
    object-fit: contain;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    /* margin: auto; */
}

.face_frame {
    position: absolute;
    z-index: 10;
}

.face_frame p {
    padding: 12rem 2rem;
    width: 100%;
    right: 0;
    left: 0;
    position: absolute;
    bottom: -49rem;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, .35);
    font-size: 14rem;
    letter-spacing: 1px;
}

@media screen and (max-width:650px) {
    .face_frame p {
        font-size: 10rem;
        padding: 6rem 2rem;
    }
}




.nav_single-attachment {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: center;
    opacity: .5;


}
.nav_single-attachment:hover {
    opacity: 1;
}


.left a svg {
    transform: rotate(180deg);
}


/* COMMENTS IN SINGLE MEDIA
 * */

#cmn-wr {
    display: none;
}

.comment_wrapper {
    position: absolute;
    z-index: 1111;
    bottom: 0;
    width: 90%;
    background-color: white;
    padding: 20rem;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
}

.show-cmn {
    display: flex!important;
}

.comment-link {
    color: #2f6e5b;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20rem;
}

.divider {
    height: 1px;
    width: 100%;
    background-color: darkgray;
    margin-bottom: 20rem;
}


/*-------*/

.data_wrapper {
    width: 30%;
    padding: 20rem;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column nowrap;
    justify-content: center;
    display: none!important;
}

.data_wrapper p {
    font-size: 90%;
    margin-bottom: 20rem;
}

.data_wrapper h3,
.data_wrapper h4 {
    margin-bottom: 40rem;
}

.top-mrgn {
    margin-top: 30rem;
}

@media (max-width: 650px) {
    .single-media_gallery_new {
        overflow: auto;
    }
    .download-link_wrapper p {
        font-size: 10rem;
    }
    .wrap-media_gallery_item {
        padding: 5rem;
    }
    .data_wrapper h3,
    .data_wrapper h4 {
        margin-bottom: 5rem;
    }
    .data_wrapper p {
        font-size: 70%;
        margin-bottom: 5rem!important;
        margin-top: 5rem!important;
    }
    .top-mrgn {
        margin-top: 0rem;
    }
}




/* Sorting posts */

.sort-select__header span {
    padding: 15rem 9rem 15rem 15rem;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    width: 100%;
}/*
.sord_date_get a.show_current_sort {
     display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;

}*/

/*
------------------SEARCH PAGE------------------
*/

.title_search {
    margin: 60rem 0;
    color: #285c4c;
}

.search_wrapper {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: space-between;
    min-height: 480rem;
    text-align: center;
    margin: 0;
}

.search_wrapper h3 {
    text-align: center;
    font-size: 22rem;
    width: 100%;
    margin-bottom: 10rem;
}


/*
.search_wrapper div{
   margin: 20rem auto;
}*/

.input__search {
    transition: all .3s ease-in-out;
    margin: 0;
}

.input__search:focus {
    transition: all .3s ease-in-out;
    width: 500rem;
}

.search-form {
    margin: 0;
}

.no_result_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.search_people_img_wrapper {
    min-width: 100%;
    background-position: center center;
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.search_people_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270rem, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(350rem, 480rem));;
    gap: 15rem;
    padding: 20rem 0;
}


/*
 * FIX FUCKING STUPID MISTAKES IN LAYOUT
 */


/*
li a {
    position: relative;
    color: #2F6E5B;
    font-weight: 600;
    transition: all 0.25s;
    border-bottom: solid #2F6E5B 1px;
}
li a:hover {
    border-bottom: none;
}
*/
.content__content {
    /* width: 100%; */
    margin-left: 40rem;
    margin-right: 40rem;
}

@media only screen and (max-wight:650px) {
    .content__content {
        width: 100%!important;
    }
}

.histories__type {
    padding: 8rem 0rem;
    border: solid 1px gray;
    border-radius: 70rem;
    margin-left: 15rem;
    transition: all .2s ease;
}

.histories__article {
    cursor: inherit;
}

.content__header {
    position: relative;
    margin-bottom: 40rem;
    margin-top: 15rem;
}

.histories__date {
    margin-top: 25rem;
    font-size: 24rem;
}

li.histories__type:hover {
    background-color: #2F6E5B;
    color: white;
}

.type_active {
    background-color: #2F6E5B;
    color: white;
}

.content-wrapper {
    width: 97.5%;
}

.relative__id {
    min-width: 160rem;
    font-size: 18rem;
    margin-left: auto;
}

.content__slider {
    margin-top: 55rem;
}

.histories__thumb_single {
    margin-right: 55rem;
}

.section_media-detail {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
    padding: 0 10rem;
    width: 100%;
}

.histories__preview .histories__info {
    width: 100%;
}

.relative__about {
    width: 100%;
}

.relative__avatar {
    min-width: 413rem;
}

.histories__type a {
    min-width: 210rem;
    margin: 0 auto;
}

.histories__type--active {
    background-color: #2F6E5B;
    color: white;
}

.relative__info {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.relative__avatar {
    height: 100%;
}


/*
 * FIX LINKS
 * */

p a {
    text-decoration: none!important;
}

p a {
    position: relative;
    color: #2F6E5B;
    font-weight: 600;
    transition: all 0.25s;
    border-bottom: solid #2F6E5B 1px;
}

p a:before {
    display: none!important;
}

p a:hover {
    border-bottom: solid rgba(0, 0, 0, 0);
}


/* ------------ River of life -------- */

/*-------------PASSWORD PROTECTION FORM ------------*/
.post-password-form input{
    padding: 15rem 30rem;
    margin-left: 15rem;
    border-radius: 50rem;
    border:solid 1px;
}
.post-password-form button{
    padding: 17rem 50rem;
    color: #e0e0e0;
    margin-left:20rem;
    background: #285c4c;
    border:none;
    border-radius: 50rem;
}



@media (max-width: 650px) {
    .main_photo_frame.gor {
      width: 100%;
    }

    .post_wrapper_river, .posts_container.rivertime > div[data-order]{
      display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
      flex-wrap: wrap;
    }

    .post_wrapper_river{
      margin-left: 0 !important;
      margin-bottom: 0;
      margin-top: 0;
      padding: 0;
      justify-content: center;
      border-radius: 0;
    }

    .post_img_wrapper_river{
        margin-right: 0;
        margin-bottom: 15px;
        padding-top: 19rem;
    }

    .posts_container.rivertime{
        padding-left: 0;
    }

    .river_title{
        padding-left: 7%;
        font-size: 30rem;
        margin-top: 30rem;
        margin-bottom: 10rem;
    }
    .rivertime-header{
        margin-bottom: 0;
    }

    .post_data_wrapper{
        padding-left: 7%;
        padding-right: 7%;
        padding-bottom: 6%
    }

    .river_title::after{
        width: 14rem;
        height: 14rem;
    }

    .post_data_wrapper p {
        font-size: 16rem;
        line-height: 25rem;
    }
    .posts_container.rivertime > div[data-order] .post_data_wrapper:first-child{
        padding-top: 19rem;
    }

  }

  /*
 * FORM FOR FILTERS
 * */

input[type=checkbox] {
    display: none;
} */

/* input[type=checkbox]+label {
    display: inline-block;
    margin: -2px;
    padding: 4px 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    vertical-align: middle;
    cursor: pointer;
    background-color: #f5f5f5;
    background-repeat: repeat-x;
} */

/* input[type=checkbox]:checked+label {
    background-image: none;
    outline: 0;
    background-color: #e0e0e0;
} */

input[type=submit], input[type=button], input[type=reset], /* .open_login_form, */
#my_filter button {
    padding: 25rem 5rem;
    background-color: #2F6E5B;
    border-radius: 40rem;
    color: white;
    text-transform: uppercase;
    cursor: pointer!important;
    border: none;
    font-size: 16rem;
    font-weight: 400;
    font-family: "Montserrat";
    width: 100%;
    transition: all .2s ease-in-out;
}
input[type=reset] {
    color: #2F6E5B;
    background-color: #d4d4d4;
    /*padding: 15rem 5rem;
    border-radius: 20rem;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-size: 12rem;
    font-weight: 400;
    font-family: "Montserrat";
    width: 100%;*/
}
/*input[type=submit]:hover .open_login_form:hover{
    background-color: #285c4c;
    color: wheat;
}*/

input[type=submit]:active {
    /* background-color: orange; */
}
.open_login_form {
    padding-bottom: 0;
}
.red_bkg {
    background-color: rgb(129, 0, 0);
}

.ol-attribution.ol-uncollapsible {
    display: none !important;
}

input.open_login_form {
    color: white;
}



.mejs-currenttime-container {
    display: none!important;
}





/*---------PERsoNAL PAGE---------------*/

.person_wrap {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.relative__info_reverce {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: space-between;
    gap: 40rem;

}
.relative__about_person {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: column;
    justify-content: space-around;
}

.relative__about_person h1 {
    color: rgb(47, 110, 91);
}

.about_person__birth-death {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    flex-flow: row nowrap;
}

.relative__avatar_person {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 360rem;
    height: 420rem;
}

.relative__add {
    width: 100%;
    display: block;
}
.relative__add p {
    max-width: 100%;
}
.attention_save {
    display: none;
    /* display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox; */
    flex-flow: column;
    align-content: center;
    justify-content: space-between;
    width:500px;
    height: 250px;
    min-height:-webkit-fit-content;
    min-height:-moz-fit-content;
    min-height:fit-content;
    background:white;
    border-radius:16px;
    padding:25rem;
    position:fixed;
    z-index:10011;
    top:calc(50% - 125px);
    left:calc(50% - 250px);
    box-shadow: 3px 3px 8px rgba(0,0,0,.35);

}
.attention_save svg {

    margin: 0 auto;
    margin-top: 10px;

    max-height: 72px;
    min-height: 62px;
    width: 250px;
}
.attention_save .btn_block input{
    font-size: 13px!important;
}


.editor_wrap_top {
    position: absolute;
    top: 30rem;
    /* right: 324rem; */
    left: 40rem;
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    justify-content: space-between;
    width: 100%;
    max-width: 360px;
}

/*********************/

.histories__types {
    display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -webkit-flexbox;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
	align-items: center;

}
