@media (max-width: 972px) {
    .gallery-items {
        grid-template-columns: 50% 50%;
    }

    .gallery-item {
        padding: 20px 15px;
    }

    .gallery-img-block {
        height: calc(38vw - 60px);
    }
    .gallery-item-wrapper:nth-child(1n) {
        border-right: 0;
    }
    .gallery-item-wrapper:nth-child(4n) {
        border-right: 0;
    }
    .gallery-item-wrapper:nth-child(2n) {
        border-left: 1px solid #000;
    }
}

@media (max-width: 956px) {
    #real-datatime {
        display: none !important;
    }

    .foot-info>.number {
        font-size: 20px;
        letter-spacing: 10px;
    }

    .foot-info>.time-job {
        font-size: 16px;
        letter-spacing: 2.8px;
    }

    .footer-menu-list-element>a {
        font-size: 28px;
    }

    .footer-logo>svg {
        width: 200px;
    }


    .event-block-button {
        margin-top: 12px;
    }

    .event-title,
    .event-date {
        font-size: 20px !important;
        line-height: 26px !important;
        letter-spacing: 0.02em;
        font-weight: 400 !important;
    }

    .all-news-swiper {
        padding-right: 20px;
    }

    .slide-elem {
        width: calc(100vw - 420px);
    }

    .elements-img {
        width: calc(100vw - 420px);
        height: calc(116vw - 510px);
    }

    .nav-slide-elements {
        margin: 320px 80px 0 10px;
    }

    .nav-link-a {
        font-size: 32px;
    }

    .nav-link-stick-text {
        height: 32px;
    }

    .post-title {
        font-size: 40px;
    }

    .post-other-post {
        width: 50%;
    }

    #post-2 {
        display: none;
    }

    .post-bottom-title {
        font-size: 45px;
    }

    .search-result-block:hover .search-result-arrow-block {
        width: 0;
        min-width: 0;
    }

    .search-result-block:hover .search-result-img-block {
        filter: invert(1);
    }

    .search-result-block {
        position: relative;
        height: auto;
        padding: 0 40px;
    }

    .search-result-img-block {
        position: absolute;
        top: 30px;
        left: 40px;
        min-width: 20vw;
        width: 20vw;
        height: 26vw;
    }

    .search-result-content {
        width: 100%;
        padding-right: 0;
    }

    .search-result-title {
        margin-left: calc(20vw + 20px);
        height: 25vw;
        display: flex;
        align-items: center;
        width: calc(100% - 20vw - 20px);
        font-size: 32px;
    }

    .search-result-text {
        height: 120px;
        margin-top: 5px;
    }

    .story-content {
        display: flex;
        flex-direction: column;
        background-color: unset;
    }

    .story-left-content {
        padding-right: 40px;
    }

    .story-right-content {
        padding-bottom: 0;
    }

    .story-date,
    .story-title,
    .story-text {
        margin-left: 40px;
    }

    .story-tags {
        padding-left: 35px;
    }

    .story-links {
        height: 48px;
        border-top: 1px solid black;
    }

    .gal-item {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .gal-item-id {
        font-size: 45px;
    }

    .gal-item-title {
        font-size: 16px;
        line-height: 19.5px;
    }
}

@media (max-width: 768px) {
    .gallery-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 720px) {
    .mainNAV>.swiper-wrapper>.swiper-slide {
        padding-top: 68px;
    }

    .background-swipe-header {
        max-height: 68px;
    }

    header>.navbar {
        padding: 0 20px !important;
        height: 68px;
    }

    .main-menu .main-menu-container {
        padding: 7em 0 0;
    }

    .main-menu-footer-block .number {
        font-size: 28px;
    }

    .main-menu .main-menu-container .main-menu-text-block .main-menu-text-container .main-menu-list .main-menu-list-element a span {
        max-width: 100%;
    }

    .foot-info>.number {
        font-size: 28px;
        letter-spacing: 5px;
        margin: 0 auto;
    }

    .foot-info>.time-job {
        font-size: 12px;
        letter-spacing: 2.8px;
        text-align: center;
    }

    .footer-menu-list-element>a {
        font-size: 24px;
    }

    .foot-menu {
        align-items: flex-start !important;
    }

    .footer-logo-block {
        height: 15%;
    }

    .footer-content-block {
        height: 78%;
    }

    .mx-4-0,
    .post-wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }

    .exhibits-content {
        position: relative;
    }

    .exhibits-arrows {
        flex-direction: row-reverse;
        justify-content: space-between;
        margin-right: 0;
        position: absolute;
        left: -10px;
        top: calc(50% - 45px);
        width: calc(100vw - 20px);
        pointer-events: none;
        z-index: 10;
    }

    .exhibits-arrow {
        margin-bottom: 0;
        pointer-events: all;
    }

    .exhibits-slider {
        width: 100%;
        padding: 0;
    }

    .exhibits-slide {
        width: 100% !important;
    }

    .exhibits-slide-img-block {
        width: 100%;
        height: calc(60vw - 24px);
    }

    .section-all-news {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .all-news-link {
        position: static;
    }

    .all-news-content {
        position: relative;
        overflow: visible;
    }

    .nav-slide-elements {
        margin: 0;
        width: calc(100vw - 20px) !important;
        min-width: calc(100vw - 20px) !important;
        position: absolute;
        left: -10px;
        top: calc(58vw - 58px);
        z-index: 10;
        justify-content: space-between !important;
    }

    .nav-slide-next {
        margin: 0;
    }

    .all-news-swiper {
        padding: 0;
        width: calc(100vw - 35px);
    }

    .slide-elem {
        width: calc(100vw - 55px);
    }

    .elements-img {
        width: 100%;
        height: calc(116vw - 47px);
    }

    .section-header-block {
        margin-bottom: 20px;
    }

    .event-title,
    .event-date {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .post-date {
        font-size: 140px;
        line-height: 150px;
        font-weight: 800;
    }

    .post-date-month {
        font-size: 45px;
        line-height: 50px;
        transform: rotate(-90deg);
        font-weight: 800;
    }

    .post-title {
        font-size: 30px;
        line-height: 40px;
        font-weight: 400;
        margin-top: 15px;
    }

    .post-title-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-other-posts {
        flex-direction: column;
        border-bottom: none;
    }

    .post-other-post {
        border-left: none;
        border-bottom: 1px solid black;
        width: 100%;
    }

    .post-wrapper {
        margin-top: 110px;
    }

    .post-navigation {
        margin-bottom: 30px;
    }

    .item-show-block {
        position: static;
        margin-bottom: 30px;
    }

    .item-show-block.showed {
        bottom: 0;
        left: calc(50% - 139.5px);
    }

    .item-info-block {
        width: 100%;
    }

    .search-content {
        padding-top: 68px;
    }

    .search-result-title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        white-space: normal;
        font-weight: 800;
        font-size: 26px;
        max-height: 125px;
    }

    .search-left-subblock {
        padding: 20px 15px;
    }

    .search-result-block {
        padding: 0 20px;
    }

    .search-result-img-block {
        left: 20px;
    }

    .story-wrapper {
        margin-top: 80px;
    }

    .story-left-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .story-date,
    .story-title,
    .story-text,
    .story-navigation {
        margin-left: 20px;
        margin-right: 20px;
    }

    .story-tags {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gal-title {
        margin: 0;
    }

    .search-input-block {
        width: calc(100vw - 40px);
        margin: 20px 20px;
    }
}

@media (max-width: 700px) {
    .gallery-items {
        grid-template-columns: 100%;
    }

    .gallery-item {
        max-width: 500px;
    }

    .gallery-img-block {
        height: calc(75vw - 70px);
        max-height: 335px;
    }

    .gallery-item-wrapper:nth-child(1n) {
        border-right: 0;
    }
    .gallery-item-wrapper:nth-child(4n) {
        border-right: 0;
    }
}