@media screen and (min-width: 980px) and (max-height: 630px) {
    #apt-manager-modal #apt-manager-modal-container,
    #apt-manager-modal #apt-manager-source {
        height: 100%;
    }

    #apt-manager-modal #apt-manager-container {
        position: relative;
        top: 0;
        max-width: 100%;
        height: 100%;
        transform: none;
    }
}

@media screen and (max-width: 980px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        padding: 0;
        background: #fff;
        z-index: 5;
    }

    .moduletable_vilmsi7logo {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 53px;
        margin: 15px 0 10px;
        padding: 0 75px;
    }

    .mobile-menu-btn {
        position: fixed;
        top: 17px;
        right: 15px;
        display: block;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: #fff;
        border-radius: 0;
        z-index: 6;
        -webkit-appearance: none;
        outline: none !important;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        position: absolute;
        right: 9px;
        left: 9px;
        height: 2px;
        background: #000;
        -webkit-transition: all 200ms ease;
        transition: all 200ms ease;
        -webkit-transform-origin: center;
        transform-origin: center;
    }

    .mobile-menu-btn span:nth-child(1) {
        top: 13px;
    }

    .mobile-menu-btn span:nth-child(2) {
        top: 50%;
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px);
    }

    .mobile-menu-btn span:nth-child(3) {
        bottom: 13px;
    }

    .mobile-menu-btn.a span:nth-child(1) {
        top: 50%;
        -webkit-transform: rotate(45deg) translateY(-1px);
        transform: rotate(45deg) translateY(-1px);
    }

    .mobile-menu-btn.a span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.a span:nth-child(3) {
        bottom: 50%;
        -webkit-transform: rotate(-45deg) translateY(1px);
        transform: rotate(-45deg) translateY(1px);
    }

    nav {
        position: fixed;
        overflow: hidden;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        margin: 0 auto;
        opacity: 0;
        background-color: #fff;
        transition: ease .3s all;
        z-index: 3;
    }

    nav.active-btn {
        height: 100%;
        opacity: 1;
    }

    nav .wrapper {
        height: 100%;
    }

    .moduletable_mainmenu {
        height: 100%;
        border: none;
    }

    .moduletable_mainmenu ul {
        height: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .moduletable_mainmenu ul li {
        margin: 0 0 10px;
    }

    .moduletable_mainmenu ul li:last-child {
        margin-bottom: 0;
    }

    .moduletable_mainmenu ul li a {
        padding: 5px 0;
    }

    section {
        margin: 0;
        padding-top: 120px;
    }

    .moduletable_front_image h3 {
        position: relative;
        top: 0;
        margin: 0;
        padding: 0 15px;
    }

    .moduletable_front_image h3,
    .global-introduction article h3,
    .moduletable_slogan .custom_slogan p,
    .item-page.salesinfo h3,
    .moduletable_privaataiad_slogan h3,
    .global-contact .moduletable_contact h3,
    .moduletable_locationDetails .location-details .time h5,
    #apt-manager-modal h2,
    footer h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .item-page.salesinfo h4,
    .moduletable_contact .developer h4,
    #apt-manager-container .pricetable-footer .row p {
        font-size: 18px;
        line-height: 24px;
    }

    .global-introduction article p,
    .moduletable_privaataiad_slogan p,
    .contact-info .contact a,
    .global-contact .moduletable_contact p,
    .moduletable_locationDetails .location-details .values p,
    .item-page.location div[itemprop="articleBody"] p,
    .moduletable_locationDetails .location-details .values p,
    #apt-manager-container table thead th,
    #apt-manager-container table tbody td,
    #apt-manager-container table tbody td a,
    #apt-manager-floors > span,
    #apt-manager-modal #apt-manager-container .pricetable-footer .row p span,
    #apt-manager-modal h3,
    #apt-manager-modal .apartment_image_container .floorplan-number,
    #apt-manager-modal #apartment-main .privaataed_detailview_link,
    #apt-manager-floors a span,
    footer p,
    footer p a,
    footer p a:hover,
    footer p a:visited {
        font-size: 16px;
        line-height: 24px;
    }

    #apt-manager-modal #apartment-main .apartment-info-left li span,
    #apt-manager-modal #apartment-main .apartment_contact p,
    #apt-manager-modal #apartment-main .apartment_contact a {
        font-size: 14px;
        line-height: 20px;
    }

    .moduletable_slogan {
        margin: 64px auto;
    }

    .global-gallery article .container {
        padding: 0px 22px;
    }

    .moduletable_privaataiad_slogan {
        margin: 0 auto 42px;
    }

    .global-privaataiad .article_images {
        margin: 42px auto;
    }

    .moduletable_contact .developer {
        margin: 64px auto 42px;
    }

    .moduletable_contact,
    .contact-info {
        margin-top: 0;
    }

    .contact-info .contact.left {
        margin-right: 64px;
    }
    
    .moduletable_contact .developer h4 {
        margin: 24px 0 13px;
    }

    .moduletable_locationDetails .location-details {
        flex-direction: column;
    }

    .moduletable_locationDetails .location-details .box_container {
        margin-top: 24px;
    }

    .moduletable_googlemaps #rktv-googlemaps {
        min-height: initial;
        height: auto;
        padding-bottom: 100%;
    }

    #apt-manager-container table thead th:last-child,
    #apt-manager-container table tbody td:last-child {
        padding-right: 15px;
    }

    #apt-manager-container table thead th:first-child,
    #apt-manager-container table tbody td:first-child {
        padding-left: 15px;
    }

    #apt-manager-container .pricetable-footer {
        margin-top: 32px;
    }

    #apt-manager-container .pricetable-footer .row p {
        margin: 0 42px 32px 0;
    }

    #apt-manager-modal #apt-manager-container {
        position: relative;
        top: 0;
        transform: none;
    }

    #apt-manager-modal .apartment_images_container {
        flex-direction: column;
        margin: 32px auto;
    }

    .apartment_image_container.last_image_container {
        margin-top: 32px;
    }

    #apt-manager-modal #apartment_images {
        display: flex;
        flex-direction: column;
        padding: 32px 24px;
    }

    #apt-manager-modal #apartment_images .interiorInfo {
        position: relative;
        left: initial;
        bottom: initial;
        text-align: center;
        order: 1;
    }

    #apt-manager-modal #apartment_images .compass_image {
        position: relative;
        right: initial;
        bottom: initial;
        margin: 15px auto 0;
        order: 2;
    }

    #apt-manager-modal #apartment-main .apartment-info-left,
    #apt-manager-modal #apartment-main .privaataed_detailview_link {
        margin: 15px auto;
    }

    #apt-manager-modal #apartment-main .privaataed_detailview_link {
        padding: 8px 15px;
    }

    .close_apt {
        position: absolute;
        right: 15px;
        top: 15px;
        width: 24px;
        height: 24px;
    }

    .close_apt:before, .close_apt:after {
        left: 11px;
        height: 24px;
    }

    #apt-manager-modal #apartment-main {
        flex-shrink: 1;
        max-width: 275px;
        padding: 32px 24px 32px 0;
    }

    #apt-manager-modal #apartment-main .apartment-info-left li span:first-child {
        width: 130px;
    }

    .mobile_floor {
        display: block;
        padding: 15px;
    }

    #floorplanMapImage {
        display: none;
    }

    footer .moduletable_footer .module_container {
        padding: 42px 0 0;
    }

    footer .moduletable_footer .module_container div {
        margin-bottom: 42px;
    }

    .global-homepage footer .come_look {
        padding: 32px 15px 0;
    }

    .global-homepage footer .moduletable_footer .module_container {
        padding: 42px 0 24px;
    }
    .moduletablevilmsi_carousel{
        margin-top: 78px;
    }
}

@media screen and (max-width: 750px) {
    .item-page.salesinfo {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin: 0 auto 42px;
    }

    .item-page.salesinfo div[itemprop="articleBody"] {
        max-width: 100%;
        margin-bottom: 42px;
        padding-left: 0;
    }

    .item-page.salesinfo .pull-left {
        float: none;
        text-align: center;
    }

    .global-privaataiad .top_links {
        padding: 10px 15px;
    }

    .global-privaataiad .top_links span {
        padding: 6px 0;
    }

    .moduletable_locationDetails .location-details .box_container,
    .moduletable_locationDetails .location-details .values_container {
        display: block !important;
        width: 100%;
    }

    .moduletable_locationDetails .shape-icon {
        margin: 0 auto;
    }

    .moduletable_locationDetails .location-details .time {
        display: block;
        width: 100%;
        padding: 10px 15px;
        text-align: center;
        border: 1px solid #E2E2E2;
        border-width: 1px 1px 0 1px;
    }

    .moduletable_locationDetails .location-details .values,
    .moduletable_locationDetails .location-details .values.first {
        padding: 0 24px;
    }

    .moduletable_locationDetails .location-details .values.first {
        padding-top: 24px;
    }

    .moduletable_locationDetails .location-details .values.second {
        padding-bottom: 24px;
    }

    .moduletable_locationDetails .location-details .values p {
        text-align: center;
    }

    .moduletable_locationDetails .location-details .time.sec {
        margin: 0;
    }

    .moduletable_locationDetails .location-details .values.nomin {
        padding: 24px;
        border-width: 1px;
    }

    #apt-manager-container table thead th,
    #apt-manager-container table tbody td,
    #apt-manager-container table tbody td a {
        font-size: 14px;
        line-height: 20px;
    }

    #apt-manager-modal #apt-manager-container {
        flex-direction: column;
    }

    #apt-manager-modal #apartment-main {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #E2E2E2;
    }
}

@media screen and (max-width: 716px){
    .carousel-caption, .carousel-indicators {
        max-width: 380px;
    }
    .carousel-caption p {
        font-size: 24px;
        padding: 0 16px;
    }
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 550px) {
    #apt-manager-container {
        padding: 0;
    }

    #apt-manager-floors {
        justify-content: center;
        flex-wrap: wrap;
        margin: 0 auto 24px;
        padding: 0 15px;
    }

    #apt-manager-floors > span {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }

    #apt-manager-floors a span {
        margin: 0 4px;
    }

    .table_container {
        overflow-y: auto;
        -webkit-overflow-scrolling: auto;
    }
    
    #apt-manager-container table {
        width: 525px;
    }

    #apt-manager-container .pricetable-footer {
        padding: 0 15px;
    }

    #apt-manager-modal #apt-manager-container {
        padding: 0 15px;
    }

    .carousel-caption, .carousel-indicators {
        max-width: 290px;
    }
    .carousel-indicators {
        bottom: 126px;
    }
    .carousel-caption {
        height: 94px;
    }
    .carousel-caption p {
        font-size: 18px;
        padding: 0 16px;
        line-height: 22px;
    }
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 450px) {
    .global-gallery .rktv-phoca ul li {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-info .contact.left {
        margin: 0 0 32px 0;
    }

    .moduletable_contact .developer {
        margin: 42px auto;
    }
}

@media screen and (max-width: 420px){
    .carousel-caption {
        margin-bottom: 0;
    }
    .carousel-caption, .carousel-indicators {
        max-width: 220px;
    }
    .carousel-indicators {
        bottom: 106px;
    }
}