:root {
    --header-bg: #f0e7d7;
}

.crossroads__overlay {
    display: block !important;
}

.pricelist-info {
    float: none;
}

.crossroads-next-projects {
    padding: 10px;
    @media (min-width: 768px) {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 10px;
        z-index: 100;
    }
}

.crossroads-next-projects__heading {
    color: #000;
    font-weight: bold;
    margin-bottom: 2px;
    margin-top: 8px;

    @media (min-width: 768px) {
        color: #fff;
    }
}

.crossroads-next-projects__item {
    max-width: 200px;
    border: 1px solid #ff9900;
}

.crossroads-next-projects__item:hover img {
    filter: brightness(1.1) contrast(1.1);
}

.crossroads-next-projects__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crossroads-next-projects__item-image {
    position: relative;
}

.crossroads-next-projects__item-location {
    position: absolute;
    bottom: 0;
    right: 0;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding-right: 4px;
}

.flat-main-pic img {
    max-height: 70vh;
}

.flat-detail .flat-contact img {
    max-width: 200px;
}

.sticky-header__left-col {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sticky-header {
    @media (width < 1000px) {
        background: var(--header-bg);
    }
}

.onmobile-hamburger {
    top: 25px;
}
.onmobile-hamburger a {
    background: var(--header-bg);
}

/* 600 = mobile */
@media (width <= 700px) {
    .flat-headings {
        min-height: 111px;
    }
}
@media (width <= 600px) {
    .crossroads__body .fade-text > div:first-child {
        font-size: 40px;
        margin-bottom: 10px;
    }
    .crossroads__body .fade-text > div:first-child + div {
        font-size: 28px;
    }

    .tabber-content-cta {
        display: none;
    }

    #project-fake-heading-holder {
        position: static;
        display: block;
        #project-fake-heading {
            background: var(--header-bg);
        }
    }

    .page-header {
        height: auto;
        position: relative;
        z-index: 10;

        &[data-presenter='project'][data-action='detail'],
        &[data-presenter='project'][data-action='zakladniInformace'],
        &[data-presenter='project'][data-action='itemDetail'],
        &[data-presenter='project'][data-action='planky'],
        &[data-presenter='project'][data-action='planZastavby'],
        &[data-presenter='project'][data-action='galleryDetail'],
        &[data-presenter='project'][data-action='vizualizace'],
        &[data-presenter='project'][data-action='technickyPopis'],
        &[data-presenter='project'][data-action='financovani'],
        &[data-presenter='project'][data-action='investice'],
        &[data-presenter='project'][data-action='detail'],
        &[data-presenter='project'][data-action='galerie'],
        &[data-presenter='layout'] {
            /* height: 700px; */
            height: 30px;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
        }

        &[data-presenter='project'][data-action='zakladniInformace'] {
            display: block;
            height: unset;
            opacity: unset;

            .slider-wrapper,
            .slider,
            .slide {
                height: unset;
                aspect-ratio: 16/9;
            }
        }
    }

    .project-content-holder {
        left: auto;
        top: auto;
        right: 20px;
        bottom: 20px;
        min-width: auto;

        font-size: 20px;
        padding: 5px 10px;
    }

    .flat-detail .flat-pic-disposition img {
        max-width: calc(100% - 20px);
    }
}

@media (width <= 1000px) {
    nav.main-nav {
        left: auto;
        top: 0;
        padding-top: 80px;
        background: var(--header-bg);
        min-width: 200px;

        ul {
            padding-left: 0;
        }

        ul li + li {
            border-top: 1px solid #ceaf7a;
        }

        ul li a {
        }
    }
}

/* 1024 */
@media (width <= 1024px) {
    .tabber-content-content {
        padding: 20px;
        padding-bottom: 0;
    }

    .about-us-content.-project {
        margin: 0;
    }
}

.project-media-col-wrapper {
    @media (width <= 1200px) {
        width: calc(100% - 40px);
        margin: 0 auto;
    }
}

.main-nav ul + ul {
    display: none;
}

@media (width < 1000px) {
    .main-nav {
        ul {
            display: none;
        }

        ul + ul {
            display: block;
        }
    }

    .main-nav ul:only-of-type {
        display: block !important;
    }
}

@media (width <= 600px) {
    .simple-form {
        margin-inline: 10px;
    }

    .project-media-row {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .project-media-left-col {
        max-width: none;
        margin-bottom: 45px;
    }

    .project-media-left-col img,
    .project-media-right-col img {
        display: block;
        margin: 0 auto;
        max-width: 250px;
    }

    .project-media-row:nth-child(odd) {
        border-left-width: 0px;
        padding-right: 0 !important;
    }

    .project-media-row:nth-child(even) {
        border-right-width: 0px;
        padding-left: 0px !important;
    }

    .media-buttons {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .btn {
            width: auto !important;
            flex-shrink: 0;
        }
    }

    .project-media-right-col div,
    .project-media-left-col div {
        min-height: 70px;
    }

    .news {
        margin: 0;
        padding: 0;
        outline: 2px solid crimson;

        .news-container {
            padding-top: 20px;
        }
    }

    .news .news-content article h3 {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .news .news-aside time {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .news-separator {
        display: none;
    }

    .visualisation-thumbs a,
    .visualisation-thumbs--overflow a {
        width: 30%;
    }
}

.main-nav-overlay {
    position: fixed;
    z-index: 49;
    inset: 0;
    background: rgb(0 0 0 / 0.6);
    display: none;
}

.MobileMenuOpened .main-nav-overlay {
    display: block;
}

.secondary-navigation-mobile {
    margin-inline: 10px;
}
.secondary-navigation-mobile ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;

    li {
        margin-bottom: 0;

        a {
            font-size: 13px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Akar Icons by Arturo Wibawa - https://github.com/artcoholic/akar-icons/blob/master/LICENSE --%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m8 4l8 8l-8 8'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: calc(100% - 10px) center;
            padding-inline: 10px;
            background-color: var(--header-bg);
            color: #ceaf7a;
        }

        &.active a {
            background-color: #ceaf7a;
            color: #fff;
        }
    }
}

/* Foto, galerie etc 16/9 */
@media (width <= 1000px) {
    .slider-wrapper-inpage,
    .slider-inpage,
    .slide-inpage,
    .slide-inpage-video,
    .visualisation-image img {
        height: unset;
        aspect-ratio: 16/9;
    }

    .visualisation-thumbs,
    .visualisation-thumbs--overflow {
        margin-top: 10px;
    }
}

.grecaptcha-badge {
    visibility: hidden;
}

.slider-wrapper:after {
    display: none !important;
}

.flat-contact-desktop {
    @media (width <= 600px) {
        display: none !important;
    }
}

.flat-contact-mobile {
    @media (width > 600px) {
        display: none !important;
    }
}

.flat-detail .flat-contact td {
    background: #ceaf7a;
}

.vp-in-modal-desktop {
    @media (width <= 600px) {
        display: none !important;
    }
}
.vp-in-modal-mobile {
    @media (width > 600px) {
        display: none !important;
    }
}
