.photo-page .photo-list{
    /*display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
*/
    padding-left: 0;
}
.photo-page .vk-photo-post {
    margin: 0 5px 10px 0;
    list-style: none;
    height: 230px;
}
.photo-page .vk-photo-post img {
    max-height: 230px;
}

/* картинка на странице */
.minimized {
    cursor: pointer;
    border: 1px solid #ccc;
}

.minimized:hover {
    border: 1px solid #8e8e8e;
}
li.vk-photo-post {
    display: inline-block;
}
.vk-post-background {
    width: 213px;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

/* увеличенная картинка */
#increase {
    display: none;
    position: fixed;
    max-width: 600px;
    height: auto;
    z-index: 9999;
}

#increase img {
    width: 100%;
}

/* затемняющий фон */
#overlay {
    display: none;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.5;
    z-index: 9990;
}

/* кнопка закрытия */
#close {
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 1px solid #AFAFAF;
    border-radius: 15px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

#close i {
    width: 30px;
    height: 30px;
    background: url(https://codernote.ru/files/cross.png) no-repeat center center;
    background-size: 16px 16px;
    display: block;
}
/*кнопки для фотографий социальных сетей

.arrow-left {
    background-position: -1px -1px;
    right: 52px;
    background: url(/images/prevsmall.png) no-repeat center 100%;
}
.control-review-btn.arrow {
    top: 198px;
}
.arrow-right {
    background-position: -95px -1px;
    right: 10px;
    background: url(/images/nextsmall.png) no-repeat center 100%;
}
.arrow:hover {
    opacity: 0.6;
}
.arrow {
    position: absolute;
    width: 38px;
    height: 34px;
    cursor: pointer;
    top: -70px;
} */

#close:hover {
    animation: rota 4s infinite normal;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}
/*
body img {
    padding: 30px; 
    background: #ccc; 
    border: 2px solid #666; 
}

*/
.photo-slider {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    align-content: stretch;
}
.photo-slider .photo{
    text-align: center;
}
.photo-slider .photo img {
    max-height: 70vh;
    max-width: 100%;
}
.photo-slider .prev-btn, 
.photo-slider .next-btn{
    display: block;
    text-align: center;
    min-width: 10%;
    flex: 1;
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-slider .prev-btn:hover, 
.photo-slider .next-btn:hover{
    background-color: rgba(10, 10, 100, 0.1);
}

.photo-view-page .description {
    margin: 10px;
    text-align: center;
}
.photo-view-page .vk-link {
    margin: 10px;
    text-align: center;
}

.photo-view-page .hide-vkpost-form{
    margin: 20px 0;

}
.photo-view-page .hide-vkpost-form input {
    color: #a00;
    background: none;
    border: none;
    cursor: pointer;
}

.photo-view-page .all-photo-link {
    display: block;
    text-align: center;
    margin: 10px;
}


/*
.photo-page {
    width: 980px;
}
.container-comment-block {
    height: 160px;
}

@media screen and (max-width: 980px) {

@media screen and (max-width: 768px) {
    div.container-photo-block {
        width: 320px;
        min-width: 320px;
    }
    img {
        max-width: 98%;
        height: auto;
        padding: 1%;
    }
}*/
.container-photo-block {
    position: relative;
    display: inline-block;
    padding: 0 13px 0 0;
    vertical-align: top;
    box-sizing: border-box;
    float: left;
}
.info-block-img img{
    position: relative;
    float: left;
    width: 45px;
    border: 2px solid #c1c1c1;
}
.info-block-name {
    margin-left: 57px;
}
.info-block-name p{
    vertical-align: top;
    box-sizing: border-box;
    font-size: 16px;
    color: #323C8D;
    border-radius: 2px;
    font-weight: bold;
}
.container-comment-block {
    float: left;
    vertical-align: top;
    box-sizing: border-box;
}
.info-block-comment {
    margin-top: 60px;
    padding-right: 34px;
}
.info-block-date {
    color: #ccc;
}
/*всплывающее поле для фотографий в альбоме*/
.albums {
    user-select: none;
}

.album {
    opacity: .99;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    margin-right: 1px;
}
.album:before {
    content: '';
    transition: 0.2s;
    background: -webkit-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: -50%;
    left: 0;
    z-index: 2;
    transition-property: top, opacity;
    transition-duration: 0.3s;

}
.album img {
    display: block;
}
.album .caption {
    width: 100%;
    padding: 20px 0px;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    text-align: center;
}

.album .caption span {
    /*opacity: 0;
    position: relative;*/
    top: 100px;
    transition-property: top, opacity;
    transition-duration: 0.3s;
    transition-delay: 0s;
}

.album .album-url {
    position: absolute;
    top: 0px; left: 0px; right: 0px; bottom: 0px;
    display: block;
    z-index: 10;
}

.album .caption .title {
    line-height: 1;
    font-weight: normal;
    font-size: 18px;
}
.album:focus:before, 
.album:hover:before {
    bottom: 0;
}
.album:focus span, 
.album:hover span {
    top: 0;
}
.album:focus .title, 
.album:hover .title {
    transition-delay: 0.15s;
}
.border-header-album {
    margin-bottom: 30px;
    margin-top: 30px;
    border-bottom: 1px solid;
}
.border-header-album h3 {
    border-bottom: 3px solid rgba(50, 60, 141, 0.95);
    display: inline-block;
    padding-right: 15px;
}
/*Картинки для главной на альбомы*/
.image-album-one {
    width: 369px;
    height: 15em;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
}
.image-album-one:after {
    content: '';
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3);
}
/*.border-header-album {
    margin-bottom: 30px;
    border-bottom: 1px solid;
}*/

/*кнопка закрытия картинки в альбомах*/
.close{
    position: absolute;
    top: 5px;
    right: 5px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    border: 4px solid #e62f57;
    border-radius: 50%;
}

.close:before,
.close:after {
    content: "";
    position: absolute;
    top: 21px;
    left: 10px;
    width: 26px;
    height: 4px;
    background: #e62f57;
}

.close:before {
    webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.close:after {
    webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.vk-photo-post .attach {
    position: relative;
}
.photo-page .photo-controls-top {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    text-align: right;
    padding: 5px 5px;
    background-color: rgba(0, 0, 0, 0.7);
}
.photo-controls-top .photo-control {
    font-size: 21px;
    color: white;
    cursor: pointer;
    width: 15px;
    height: 15px;
    display: inline-block;
}
.photo-control.remove {
    background: url("/images/close.png") no-repeat 0px 0px;
}
.photo-control.edit {
    background: url("/images/edit.png") no-repeat 0px 0px;
}
.modal-block {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
}
.modal-block.shown {
    display: block;
}
.modal-container {
    display: table;
    height: 100%;
    width: 500px;
    margin: 0px auto;
}
.modal-edit {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 500px;
}
.modal-form {
    min-height: 180px;
    background: white;
    border: 1px solid black;
    padding: 30px;
    position: relative;
}
.modal-form .close-btn {
    background: url("/images/close.png") no-repeat 50% 50%;
    background-color: black;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 15px;
    border-radius: 15px;
}
.modal-form .submit-container {
    text-align: center;
    margin-top: 20px;
}
.modal-form textarea {
    width: 100%;
}
textarea.edit-comment {
    min-height: 250px;
    min-width: 300px;
}
.submit-btn {
    padding: 10px 5px;
    border: 1px solid black;
    width: 100px;
    margin: 0px auto;
    cursor: pointer;
}


.album-page.container .albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#photo-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.92);
    display: none;
    transition-delay: 0.5s;
    z-index: 3500;
}
#photo-viewer.shown {
    display: block;
}
.viewer-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.viewer-content {
    background-color: white;
    width: 800px;
    height: 400px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.viewer-content::-webkit-scrollbar {
    width: 0px;
}
.viewer-content .left-side {
    float: left;
}
.viewer-content .right-side {
    overflow: hidden;
    height: 100%;
}
.viewer-img-container {
    /* Именно ему надо менять зазмер */
    min-width: 600px;
    min-height: 400px;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}
.viewer-content .viewer-img {;
    max-height: 100%;
    max-width: 100%;
}
.viewer-container .viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background: url("/images/close.png") no-repeat 0px 0px;
    opacity: 0.7;
}
.viewer-container .viewer-close:hover {
    opacity: 1;
}
.clear {
    clear: both;
}
.viewer-photo-info {

}
.right-side .viewer-photo-info {
    padding: 20px;
}
.viewer-photo-info .who-avatar-block {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50px;
    display: inline-block;
    margin-top: -5px;
    margin-right: 5px;
}
.viewer-photo-info .who-avatar {
    max-width: 100%;
    max-height: 100%;
}
.viewer-photo-info .who-name {
    font-size: 14px;
    font-weight: bold;
    color: #365899;
}
.viewer-photo-info .who-info {
    display: inline-block;
    vertical-align: top;
}
.viewer-photo-info .who-date {
    color: #90949c;
    margin-top: 10px;
    font-size: 12px;

    display: none;
}
.viewer-photo-info .photo-comment {
    padding-top: 10px;
    line-height: 18px;
}
.viewer-img-container {
    position: relative;
}
.viewer-go-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    opacity: 0;
    transition: 0.2s;
}
.viewer-img-container:hover .viewer-go-btn {
    opacity: 1;
}
.viewer-go-btn.go-left {
    left: 0;
}
.viewer-go-btn.go-right {
    right: 0;
}
.go-btn-body {
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    cursor: pointer;
    overflow: hidden;
}
.go-btn-body:before {
    content: '';
    display: block;
    position: absolute;
    top: 0; bottom: 0;
    width: 100%;
}
.go-btn-body:after {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: url("/images/next-btn.png") no-repeat 50% 50%;
    opacity: 0.7;
}
.viewer-go-btn:hover .go-btn-body:after {
    opacity: 1;
}
.viewer-go-btn.go-right .go-btn-body {
    right: 0;
}
.viewer-go-btn.go-right .go-btn-body:before {
    left: 25px;
    background: linear-gradient(to right, transparent , rgba(0,0,0,0.7));
}

.viewer-go-btn.go-left .go-btn-body {
    transform: rotate(180deg);
    left: 0;
}
.viewer-go-btn.go-left .go-btn-body:before {
    left: 25px;
    background: linear-gradient(to left, rgba(0,0,0,0.7), transparent);
}