﻿.exhibition::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    height: 100%;
    width: 100%;
    background-color: #004286;
    background-size: 100%;
    z-index: -1;
}

.exhibition hr {
    border: none; 
    color: #465980; 
    background-color: #465980; 
    height: 1px; 
    width: 97%;
    margin-top: 10px;
}

.exb_h {
    min-height: 45px;
    margin-bottom: 22px;
    margin-top: 10px;
    margin-left: 1px;
}

.exb_text {
    font-family: 'Jost', sans-serif;
    font-size: 29px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 0.63;
    line-height: 37px;
    letter-spacing: normal;
    text-align: left;
    color: #ffffff;
    align-items: center;
    margin-bottom: 0;
}

.content-post {
    padding-left: 15px;
    padding-right: 15px;
}

.press_photo {
    background: none;
    margin-bottom: 0;
}

.press_photo img {
    width: 100%;
}

.pp_wp {
    /*margin: 5px;*/
}

/*.pp_wp .press_photo {
    width: 360px;
    height: 270px;
}*/

.album_photos {
    padding-bottom: 40px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; 
}

.album_cover {
    object-fit: cover;
    height: 250px;
}

.modal{
    display: none;
}

.modalg{
    width: 861px;
    padding: 0;
    position: relative;
    overflow: visible;
}

.gallery_open_block{
    padding: 10px 20px;
}
.gallery_open_block p{
    font: 16px 'ErasBookC';
}
.gallery_open_block a{
    margin-left: auto;
    color: #fff;
    text-align: center;
    width: 141px;
    height: 46px;
    background: #13498a url("../images/ico14.png") no-repeat 15px center;
    font: 17px 'ErasBookC';
    line-height: 46px;
    padding-left: 40px;
}
.swiperg{
    overflow: hidden;
}
.prevg{
    width: 23px;
    height: 44px;
    background: url("../images/prev1.png") no-repeat;
    position: absolute;
    left: -50px;
    top: 50%;
    margin-top: -52px;
    opacity: 0.5;
    z-index: 999999;
}
.prevg:hover{
    opacity: 1;
}
.nextg{
    width: 23px;
    height: 44px;
    background: url("../images/next1.png") no-repeat;
    position: absolute;
    right: -50px;
    top: 50%;
    margin-top: -52px;
    opacity: 0.5;
    z-index: 999999;
}
.nextg:hover{
    opacity: 1;
}

.pp_hover{
    width: 100%;
    height: auto;
    background: rgba(0,0,0,0.5);
    position: absolute;
    left: 0;
    bottom: -127px;
    color: #fff;
    font: 16px 'ErasBookC';
    line-height: 1;
    padding: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.pp_hover p{
    margin-top: auto;
}

.gallery_open_img img {
    max-height: 600px;
    margin: auto;
    vertical-align: middle;
    display: flex;
}
.gallery_open_img {
    background: none;
}

@media (max-width: 1200px) {
    .album_photos {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 9px;
    }
    
    .content-post {
        padding: 0 45px;
    }
}

@media (max-width: 991px) {
    .pp_wp .press_photo {
        width: 100%;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

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

    .album_photos {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
    }
}

@media (max-width: 767px) {
    .album_photos {
        display: flex;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, 1fr);
    }
    .album_photos .pp_wp {
        padding-left: 0;
    }
    .pp_wp {
        padding-left: 15px;
    }

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

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