.news-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-around;
}

.one-news {
    align-items: flex-start;
    max-width: 1400px;
    padding: 0 20px 5vh;
    justify-content: space-around;
    /*background: linear-gradient(#ffffff, #dfdfdf);*/
    margin-bottom: 5vh;
    margin-left: 20px;
    font-family: "Times New Roman", sans-serif;
    border-bottom: 1px solid #000;
}

.img-wrapper {
    float: left;
    display: inline-block;
    max-width: 50%;
    margin: 0 2em 1em 0;
}

.title-block {
    align-self: flex-start;
    /*padding: 0 10px 0 2em;*/
}

.text-block {
    margin-top: 2em;
    font-size: 20px;
    text-align: justify;
    white-space: pre-line;
    margin-bottom: 1em;
    outline: none;
}

.date-news {
    padding: 2em 1em 0 0;
    text-align: right;
    font-weight: 800;
    margin-bottom: 2em;
}

.selected {
    font-weight: 900;
}

#panel {
    display: none;
    flex-direction: column;
    position: fixed;
    z-index: 999999;
    background-color: gray;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#panel button {
    cursor: pointer;
    margin-bottom: 3px;
}

span[data-x="true"] {
    display: inline-block;
    padding: 2em;
    background-color: red;
}

.block {
    display: flex;
    /*width: 100%;*/
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 1.5em;
}
.block-left {
    float: left;
    display: flex;
    max-width: 65%;
    margin: 0.5em 1em 0.5em 0;
}
.block-right {
    float: right;
    display: flex;
    max-width: 65%;
    margin: 0.5em 0 0.5em 1em;
}

.img-wrapp {
    position: relative;
}

.img-wrapp img {
    display: inline-block;
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.text-block .img-wrapp img {
    object-fit: contain;
}

.descr-photo {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.77);
    z-index: 5;
    color: rgb(0, 0, 0);
    border: 1px solid rgba(0, 0, 255, 0.26);
    box-shadow: 0 -10px 15px #00000066;
}

#drop-area {
    height: 350px;
}

#drop-area img {
    display: inline-block;
    max-height: 100%;
    object-fit: contain;
}

.video-wrapp {
    position: relative;
    background-color: rgba(128, 128, 128, 0.29);
    padding: 1em 0;
    height: 45vh;
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.video-wrapp iframe {

}

.editing .video-wrapp:before {
    content: 'ИЗМЕНИТЬ';
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 13px;
    top: -23px;
    width: 150px;
    height: 45px;
    background-color: red;
    color: yellow;
    border-top-right-radius: 7px;
    border-top-left-radius: 7px;
    cursor: pointer;
}

.editing .gallery-user,
.editing .docs-user {
    position: relative;
    padding: 1em;
    background-color: gray;
    border-radius: 10px;
    border: 1px solid #000;
    margin: 2em 0;
}

#addImages,
.del-doc {
    display: none;
    position: absolute;
    right: 10px;
    top: -30px;
    border-radius: 7px;
    background-color: red;
    color: yellow;
    padding: 3px 10px;
    cursor: pointer;
}

.editing #addImages,
.editing .del-doc {
    display: inline-block;
}

.gallery-user {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1.5em;
    padding-top: 1.5em;
    /*border-top: 1px solid rgba(0, 0, 0, 0.28);*/
}

.gallery-user li {
    position: relative;
    width: 300px;
    display: flex;
    height: 220px;
    flex-direction: column;
    padding: 3px;
    margin: 4px 2px;
}

.gallery-user li h3 {
    position: absolute;
    left: 5px;
    top: 5px;
}

.gallery-user li span {
    height: 0;
    width: 0;
    transition: 0.4s;
}

.gall-item {
    display: flex;
    width: 100%;
    height: 100%;
}

.gall-item img {
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.del-img-gall {
    display: none;
}

.editing .del-img-gall {
    display: inline-block;
}

.overlay-gray form {
    position: relative;
    padding: 1em;
    background-color: black;
    color: #ffffff;
}

.overlay-gray form:after {
    display: inline-block;
    max-width: 100%;
    position: absolute;
    bottom: -150px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.79);
    border-radius: 5px;
    padding: 10px;
    content: 'Для загрузки файла (ов), вначале нажмите кнопку "Выбрать файлы", откроется окно где вы укажите какие файлы неоходимо загрузить. Дальше нажмёте Открыть. Вместо надписи "Файл не выбран" - отобразится количество выбранных файлов. Дальше нажимаем "ЗАГРУЗИТЬ". Если файл (ы) большие нужно подождать полной загрузки.';
}

.lupa {
    position: absolute;
    opacity: 0;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    outline: none;
    transition: 0.4s;
    cursor: pointer;
}

li:hover .lupa {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 1;
}

li:active .lupa {
    transition: 0.001s;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
}

.gall-doc {
    position: relative;
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #000;
}

.gall-doc iframe {
    width: 100%;
    min-height: 100vh;
}

.gall-doc iframe div {
    background-color: #ffffff;
}

.editing .del-doc {
    right: unset;
    left: 10px;
}

.phrase {
    font-size: 30px;
    margin: 1em;
    font-weight: 800;
}

.range {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(13, 255, 0, 0.21);
    padding: 10px 5px;
}

.range input {
    display: inline-block;
    margin: 3px 0;
    border: 1px solid rgba(0, 0, 255, 0.29);
}

.phrase-2 {
    display: inline-block;
    background-color: rgba(128, 128, 128, 0.33);
    padding: 5px 30px;
    font-style: italic;
    position: relative;
    margin: 1em;
}

.phrase-2:before {
    content: '“';
    font-size: 2.5em;
    font-family: Arial;
    position: absolute;
    left: 0;
    top: -0.3em;
}

.phrase-2:after {
    content: '”';
    font-size: 2.5em;
    font-family: Arial;
    position: absolute;
    right: 0.2em;
    bottom: -0.8em;
}

.panel {
    /*width: 100%;*/
    padding: 10px 15px;
    margin: 10px 15px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.26);
}

.date-write {
    text-align: right;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 20px;
}

@media screen and (max-width: 1020px) {
    .one-news {
        flex-direction: column;
    }
}

@media screen and (max-width: 670px) {
    .one-news {
        margin-left: unset;
    }

    .phrase-2 {
        margin: 1em 0;
    }

    .img-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .title-block {
        padding: unset;
    }

    .block-left,
    .block-right {
        float: none;
        max-width: 100%;
        width: 100% !important;
        padding: 0;
        margin: 10px 0;
        max-height: 45vh;
    }

    .block {
        width: 100% !important;
        padding: 0;
        margin: 10px 0;
        max-height: 45vh;
    }

    .img-wrapp img {
        display: inline-block;
        height: 100%;
        width: 100%;
    }
}