﻿.exb_text {
    margin-bottom: 0;
}

.media__albums {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.media__albums-item {
    position: relative;
    padding: 40px 25px 18px;
    border-radius: 30px;
    background: linear-gradient(136.35deg, #1F4F84 9.9%, #583F61 91.95%);
}

.media__albums-item .item_2 {
    height: auto !important;
    width: auto !important;
}

.media__albums-item .photobank-video_block.isNotPlay {
    height: auto;
}

.media__albums-item > span {
    display: block;
}

.media__albums-item .descr_block_media {
    position: static;
    display: block;
    margin-top: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background: none;
    color: #ffffff;
    transition: 0.5s all;
    z-index: 1;
    line-height: 1.5;
}

.media__albums-img {
    position: relative;
    overflow: hidden;
    display: block;
}


.media__albums-img > img {
    position: absolute;
    left: 0;
    top: 0;
    -o-object-fit: cover!important;
    object-fit: cover!important;
    width: 100%!important;
    height: 100%!important;
    transition: transform .5s ease!important;
}

.media__albums-img:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 54%;
}

.isPlay .media__albums-img:before {
    display: none;
}

@media (max-width: 991px) {
    .media__albums {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .media__albums-item {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .media__albums {
        grid-template-columns: repeat(1, 1fr);
    }
}

.media_gallery {
    margin-bottom: 40px;
    margin-top: 8px;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 370px);
    gap: 9px;
}

.content-post {
    padding: 0 15px;
}

.content-post a {
    color: #ffffffab;
}

.content-post a:hover {
    color: #fff;
}

.play_button_layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album_link {
    margin: 5px;
}

.item_1, .album_link, .item_2 img, .item_1 iframe {
    width: 360px;
    height: 270px;
}

.item_1 {
    margin: 5px;
}

.media_photo {
    margin: 0 !important;
}

.item_2 {
    width: 360px;
}

.descr_block_media {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: #0b1640bd;
    color: #ffffff;
    transition: 0.5s all;
    z-index: 1;
    line-height: 1.5;
}

.head_media {
    
}

.item_2 img {
    object-fit: cover;
}

.media_photo img {
    transition: 0.5s all;
    opacity: 0.9;
}

img {
    vertical-align: middle;
    border-style: none;
}
.photobank-video_block.isPlay {
    height: auto;
}
.photobank-video_block.isNotPlay {
    height: 100%;
}

.photobank-video_preview {
    width: 100%;
    height: 100%;
}

.photobank_video-play_btn {
    background: none;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    border: none;
}

/*@media (max-width: 991px) {
    .media_gallery .media_photo {
        width: 47%;
    }
}*/
@media (max-width: 1200px) {
    .media_gallery {
        grid-template-columns: repeat(2, 364px);
        column-gap: 155px;
    }
    .content-post {
        padding: 0 45px;
    }
}

@media (max-width: 991px) {
    .item_1, .album_link, .item_2 img, .item_1 iframe {
        width: 320px;
        height: 240px;
        margin-bottom: 32px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .content-post {
        padding: 0 15px;
    }

    .media_gallery {
        grid-template-columns: repeat(2, 330px);
        column-gap: 50px;
    }
    .item_2 {
        width: 100%;
        height: 100%;
        margin: 0;
    }
    .descr_block_media {
        bottom: 0;
    }
}

@media (max-width: 767px) {
    .media_gallery {
        display: flex;
        flex-direction: column;
    }

    .item_1, .album_link, .item_2 img, .item_1 iframe {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
        height: 200px;
    }
    
    .content-post {
        padding: 0 15px 0 0;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: none;
        width: 94%;
    }
}

@media (max-width: 362px) {
    .media_gallery .media_photo {
        width: 95%;
        overflow: hidden;
    }
}