@media screen and (max-width: 1440px) {
    .v2-container {
        max-width: 1200px;
    }

    .v2-other-news-item {
        width: 49%;
    }
}

@media screen and (max-width: 1200px) {
    .v2-container {
        max-width: 900px;
    }

    .v2-homepage-card {
        max-width: 286px;
    }

    .v2-last-news-container {
        flex-wrap: wrap;
    }

    .v2-latest-news-item {
        width: 48%;
    }

    .v2-other-news-item {
        width: 48%;
    }

    .v2-archive-links-list a {
        display: inline-block;
        margin-bottom: 10px;
    }

    .v2-footer-text,
    .v2-footer-info-item a, 
    .v2-footer-info-item p {
        font-size: 14px;
        line-height: 17px;
    }

    .v2-footerbar .v2-copyrights p {
        max-width: 75%;
    }

    .v2-header-search-form .v2-header-search-input,
    .v2-header-search-form {
        width: 185px;
    }
}

@media screen and (max-width: 900px) {
    .v2-container {
        max-width: unset;
        width: 100%;
        padding: 0 15px;
    }

    .v2-homepage-cards {
        flex-wrap: wrap;
    }

    .v2-homepage-card {
        width: 100%;
        max-width: unset;
    }

    .v2-homepage-card-title, 
    .v2-homepage-card > p {
        min-height: unset;
    }

    #v2-mobile-menu {
        display: block;
    }

    .v2-mobile-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #00274D;
        padding: 8px;
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 999;
    }
    
    .v2-top-header {
        display: none;
    }

    .v2-mobile-menu-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 8px;
        margin-top: 61px;
    }

    .v2-mobile-menu-bottom a {
        text-decoration: none;
    }

    .v2-mobile-menu-bottom .v2-header-title {
        font-size: 14px;
        line-height: 14px;
        color: #000;
    }
    .v2-header-search-form .v2-header-search-input,
    .v2-header-search-form {
        width: 250px;
    }

    #v2-mobile-menu-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        background-color: #00274D;
        z-index: 1001;
    }

    .v2-mobile-menu-trigger {
        height: 61px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    #v2-top_menu_ul,  #v2-top_menu_ul li, #v2-top_menu_ul ul {
        background-color: #00274D;
    }

    .v2-mobile-menu-trigger {
        padding: 8px;
        border-bottom: 1px solid #2E6093;
    }

    #v2-top_menu_ul li a {
        display: block;
        color: #FFF;
        text-decoration: none;
        font-size: 16px;
        line-height: 19px;
        padding: 12px 10px;
        border-bottom: 1px solid #2E6093;
        position: relative;
    }

    #v2-top_menu_ul > li.menu-item-has-children > a::after {
        content: url(/wp-content/themes/VodokanalV2/img/arrow-down.svg);
        position: absolute;
        right: 15px;
        transform: rotate(-90deg);
        transition: 0.3s;
    }

    #v2-top_menu_ul > li.menu-item-has-children.show > a::after {
        transform: rotate(0deg);
    }

    #v2-top_menu_ul .sub-menu {
        /* padding: 0 20px; */
    }

    #v2-top_menu_ul .sub-menu li {
        border: none;
        margin: 0 20px;
    }

    #v2-top_menu_ul .sub-menu li a {
        padding: 12px 0;
    }

    #v2-top_menu_ul .sub-menu li:last-child {
        margin: 0;
    }

    #v2-top_menu_ul .sub-menu li:last-child a {
        padding: 12px 20px;
    }

    #v2-top_menu_ul .sub-menu li a  {
        background-color: #00274D;
    }

    #v2-mob-banner {
        display: block;
        height: 250px !important;
        position: relative;
        padding: 0 !important;
    }

    .v2-homepage-card-mob {
        width: 80%;
        background-color: rgba(247, 247, 247, 0.75);
        box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        margin: 10px auto 0;
    }

    .pogoSlider-dir-btn {
        /*background: #0063A8 !important;*/
        /*border-radius: 100% !important;*/
        border-color: #0063A8 !important;
    }

    .current_slide {
        display: block !important;
    }

    #v2-homepage-banner {
        display: none;
    }

    .v2-homepage-banner-image {
        display: none;
    }

    .v2-title {
        font-size: 32px;
        line-height: 44px;
        margin-bottom: 30px;
    }

    .v2-footer-title {
        flex-direction: column;
    }

    .v2-footer-info {
        flex-direction: column;
    }

    .v2-footer-info-item {
        border: none;
    }

    .v2-phones-modal {
        width: calc(100% - 32px) !important;
    }

    .v2-search-title {
        font-size: 24px;
        line-height: 28px;
    }

    .v2-search-results .v2-search-result h3 {
        font-size: 14px;
        line-height: 16px;
        margin-bottom: 8px;
    }

    .v2-search-results .v2-search-result p {
        font-size: 12px;
        line-height: 14px;
    }
    .v2-page-layout {
        padding: 30px 0 !important;
        min-height: unset;
    }

    .v2-search-page-form {
        width: 400px;
    }

    .v2-search-page-form input {
        height: 37px;
    }

    .v2-news-item {
        flex-direction: column;
        width: 260px;
        gap: 8px;

    }
    .v2-news-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .v2-news-item .v2-news-item-title {
        font-size: 14px;
        line-height: 18px;
        margin: 0 0 8px;
        padding: 0 8px;
    }

    .v2-news-item .v2-news-item-timestamp {
        font-size: 10px;
        line-height: 12px;
        margin-bottom: 6px;
        padding: 0 8px;
    }


    .v2-news-item .v2-news-item-content,
    .v2-news-item .right,
    .v2-news-item .notumb
    {
        font-size: 12px;
        line-height: 14px;
        padding: 0 8px 8px;
    }

    .v2-news-item-image {
        /*border-bottom-left-radius: 0;*/
        /*border-top-right-radius: 8px;*/
        display: none;
    }

    .v2-photoalbum-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 850px) {
    .v2-latest-news-item {
        width: 260px;
    }

    .v2-latest-news-item img {
        height: 150px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-title a {
        font-size: 16px;
        line-height: 18px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-text {
        font-size: 12px;
        line-height: 16px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-link {
        font-size: 14px;
    }
}

@media screen and (max-width: 650px) {
    .v2-feedback-modal {
        width: calc(100% - 32px) !important;
    }
}

@media screen and (max-width: 600px) {
    .v2-homepage-card {
        padding: 10px;
        gap: 10px;
    }

    .v2-homepage-card-title {
        font-size: 16px;
        line-height: 19px;
    }

    .v2-homepage-card > p {
        font-size: 14px;
        line-height: 17px;
    }

    .v2-homepage-card-link {
        font-size: 12px;
        line-height: 14px;
    }

    #v2-mob-banner {
        height: 280px !important;
    }

    .v2-news-item {
        width: 100%;
    }

    /* .v2-latest-news-item {
        width: 100%;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-title a {
        font-size: 16px;
        line-height: 19px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-date {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-text {
        font-size: 12px;
        line-height: 16px;
    }

    .v2-latest-news-item .v2-latest-news-content .v2-latest-news-link {
        font-size: 14px;
    }

    .v2-latest-news-item img {
        height: 225px;
    } */
    
    .v2-other-news-item {
        width: 100%;
    }

    .v2-last-news-container {
        margin-bottom: 30px;
    }

    .v2-footer-title > img {
        width: 75px;
        height: 75px;
    }

    .v2-footer-title p {
        font-size: 24px;
    }

    .v2-footer-text,
    .v2-footer-text, .v2-footer-info-item a, 
    .v2-footer-info-item p {
        font-size: 12px;
        line-height: 14px;
    }

    .v2-footer-info {
        gap: 8px;
    }

    .v2-footerbar .v2-copyrights {
        font-size: 12px;
        line-height: 14px;
    }

    #vverh.v2-phone-trigger {
        width: 60px;
        height: 60px;
        top: 106%;
    }

    #vverh.v2-phone-trigger img {
        width: 35px;
        height: 35px;
    }

    #email.v2-email-trigger {
        width: 60px;
        height: 60px;
        top: 106%;
        right: 108%;
        display: flex;
        align-items: center;
    }

    #email.v2-email-trigger img {
        width: 35px;
        height: 35px;
    }

    .v2-header-search-form .v2-header-search-input {
        font-size: 12px;
    }

    .v2-archive-links-list a {
        font-size: 8px;
        line-height: 10px;
        padding: 5px 10px;
        margin-bottom: 0;
    }

    .v2-homepage-main {
        padding-bottom: 30px;
    }

    .v2-feedback-modal .v2-feedback-title h2 {
        font-size: 24px;
        line-height: 28px;
    }

    .v2-feedback-modal .v2-feedback-title p {
        font-size: 14px;
        line-height: 16px;
    }
    
    .v2-feedback-modal .v2-feedback-title {
        margin-bottom: 12px;
    }

    .v2-feedback-modal label {
        font-size: 10px;
    }

    .v2-feedback-modal .v2-feedback-modal-form .file_upload_wrapper > div div {
        font-size: 12px !important; 
    }

    .v2-feedback-modal .v2-feedback-modal-form .file_upload_wrapper > div button {
        font-size: 12px !important;
    }

    .v2-feedback-modal {
        padding: 16px !important;
    }

    .v2-phones-modal .v2-phones-modal-content > div p {
        font-size: 14px;
        line-height: 19px;
    }

    .v2-search-title {
        font-size: 16px;
        line-height: 18px;
        margin-bottom: 15px;
    }

    .v2-title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 20px;
    }

    .v2-photoalbum-container > div a {
        font-size: 16px;
        line-height: 18px;
    }

    body h2, body h1, body h3, body h4, body h5, body h6 {
        line-height: 1.3;
    }

    #publication table {
        max-width: 400px;
        display: block;
        overflow-x: auto;
        height: auto !important; 
        width: fit-content;
    }
    .v2-latest-news-item {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .v2-phones-modal .v2-phones-modal-content > div {
        width: 100%;
    }
    
    .v2-phones-modal .v2-phones-modal-content {
        flex-direction: column;
    }

    .v2-search-page-form {
        width: 100%;
    }
}   

@media (max-width: 450px) {
    #publication table {
        max-width: 300px;
    }

    #v2-mob-banner {
        height: 300px !important;
    }
}

@media screen and (max-width: 400px) {
    .v2-photoalbum-container > div {
        width: 100%;
    }
}

