@media screen and (orientation: landscape) {
    #gis-layer-maptype-div {
        right: 0px !important;
        width: 270px;
        z-index: 20 !important;
    }

    #gis-layer-measure-div {
        right: 0px !important;
        width: 270px;
        z-index: 20 !important;
    }

    #gis-layer-layerhelp-div {
        right: 0px !important;
        width: 270px;
        z-index: 20 !important;
    }

    .gis-dropdown__container--layers li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-left: 40px;
    }

    .gis-dropdown__container--layers ul ul li {
        margin-top: 20px;
        padding-left: 65px;
    }

    .gis-dropdown__container--map-types {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .gis-dropdown__expandable-indicator {
        position: relative;
        display: inline-block;
        margin-left: 12px;
        margin-right: 4px;
        width: 1.5rem;
        height: 1.5rem;
        cursor: pointer;
    }

    .gis-dropdown__checkbox {
        display: inline-block;
        position: relative;
        margin-right: 8px;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 2px;
        border: 1px solid #919191;
        background-color: #ffffff;
        overflow: hidden;
        cursor: pointer;
    }

    .gis-dropdown__external {
        display: inline-block;
        position: relative;
        margin-right: 10px;
        width: 1.5rem;
        height: 1.5rem;
        overflow: hidden;
        cursor: pointer;
    }

    .gis-dropdown__inputext {
        display: inline-block;
        position: relative;
        margin-right: 20px;
        width: 256px;
        height: 1.785rem;
        border-radius: 2px;
        border: 1px solid rgb(0, 92, 165);
        background-color: #ffffff;
        overflow: hidden;
        cursor: pointer;
        font-family: 'Montserrat';
        font-size: 1.125rem;
    }

    .gis-dropdown__inputext:focus {
        outline: none !important;
        border-color: rgb(0, 92, 165);
        box-shadow: 0 0 10px rgb(0, 92, 165);
    }
}

.gis-control-button {
    top: 13px;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    outline: none;
    cursor: pointer;
}

.gis-toggle-map-type {
    position: absolute;
    left: 12px;
    padding: 6px;
    background: transparent url('/assets/icons/map.png') 0 0 no-repeat padding-box;
}

.gis-set-measure {
    position: absolute;
    left: 62px;
    background: transparent url('/assets/icons/mereni_vzdalenosti.svg') 0 0 no-repeat padding-box;
}

.gis-set-center {
    position: absolute;
    left: 106px;
    background: transparent url('/assets/icons/center_position_1.svg') 0 0 no-repeat padding-box;
}

.gis-set-minus {
    position: absolute;
    left: 150px;
    background: transparent url('/assets/icons/minus.svg') 0 0 no-repeat padding-box;
}

.gis-set-plus {
    position: absolute;
    left: 194px;
    background: transparent url('/assets/icons/plus.svg') 0 0 no-repeat padding-box;
}

.gis-toggle-help {
    position: absolute;
    left: 238px;
    background: transparent url('/assets/icons/help.svg') 0 0 no-repeat padding-box;
}

#gis-control-wrapper {
    z-index: 25 !important;
}

#gis-control-ui-wrapper {
    background: var(--theme-color) 0% 0% no-repeat padding-box;
    border-radius: 0px 0px 6px 6px;
    right: 0;
    width: 270px;
    height: 50px;
}

#gis-layer-ui-wrapper {
    background: var(--theme-color) 0% 0% no-repeat padding-box;
    border-radius: 0px 0px 6px 6px;
    left: 0;
    width: 460px;
    height: 50px;
}

#gis-layer-search-div {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 0px 0px 6px 6px;
    left: 0px !important;
    width: 460px;
    margin-top: 50px;
    height: 50px;
    padding-top: 0px;
    display: none;
}

.gis-appl-title {
    position: absolute;
    top: 14px;
    left: 19px;
    font-weight: 500;
    color: #FFFFFF;
}

.gis-modal__desc {
    display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
    border-top: 1px solid #E4E4D8;
    overflow: auto;
    max-height: 70vh;
    --scrollbar-width: thin;
    --scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.gis-modal__desc::-webkit-scrollbar {
    width: 6px;
}

.gis-modal__desc::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}

.gis-modal__desc::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 3px;
    border: 3px solid var(--scrollbarBG);
}

.gis-modal__desc > div:last-child {
    flex: 1 0 32%;
}

.gis-modal__details {
    width: 90vw;
    max-width: 90vw;
}

@media screen and (min-width: 741px) {
    .gis-map-layers {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 460px;
    }

    .gis-expand-all-layers {
        top: 11px;
        left: 305px;
    }

    .gis-toggle-share {
        left: 305px;
        background: transparent url('/assets/icons/share.svg') 0 0 no-repeat padding-box;
        background-size: 1.8rem 1.8rem;
        top: 10px;
    }

    .gis-toggle-search {
        left: 357px;
        background: transparent url('/assets/icons/filtr.svg') 0 0 no-repeat padding-box;
        background-size: 2.25rem 2.25rem;
    }

    .gis-toggle-layers {
        left: 409px;
        background: transparent url('/assets/icons/vrstvy.svg') 0 0 no-repeat padding-box;
    }

    #gis-layer-ui-wrapper {
        background: var(--theme-color) 0% 0% no-repeat padding-box;
        border-radius: 0px 0px 6px 6px;
        left: 0;
        width: 460px;
        height: 50px;
    }

    #gis-layer-search-div {
        background: #FFFFFF 0% 0% no-repeat padding-box;
        border-radius: 0px 0px 6px 6px;
        left: 0px !important;
        width: 460px;
        margin-top: 50px;
        height: 50px;
        padding-top: 0px;
        display: none;
    }

    .input-search-clear {
        content: "";
        position: absolute;
        right: 54px;
        top: 10px;
        bottom: 0;
        width: 24px;
        background: url("/assets/icons/close_inverse.svg") center / contain no-repeat;
        z-index: 3;
        cursor: pointer;
    }

    .gis-appl-title {
        position: absolute;
        top: 14px;
        left: 19px;
        font-weight: 500;
        color: #FFFFFF;
    }


    .gis-modal__body {
        display: flex;
        padding: 16px 60px 40px 20px;
    }

    .gis-modal__icon {
        margin-right: 14px;
    }

    .gis-modal__title {
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .gis-modal__desc__text {
        order: 0;
        word-wrap: normal;
    }

    .gis-modal__desc p {
        margin-bottom: 24px;
        color: #4D4D4D;
        white-space: pre-wrap;
    }

    .gis-modal__desc__image {
        order: 1;
        max-width: 45vw;
        padding-right: 1rem;
        height: fit-content;
        width: fit-content;
        float: right;
        padding-bottom: 1rem;
        position: relative;
    }

    .gis-modal__desc__image_gallery {
        order: 1;
        position: absolute;
        top: 1.5rem;
        right: 0.5rem;
        display: block;
        width: 2rem;
        height: 2rem;
        border-radius: 6px;
        z-index: 150;
        background: var(--theme-color) url("/assets/icons/gallery-inverted.svg") no-repeat center;
        cursor: default;
    }

    .gis-modal__desc picture {
        margin-left: 10px;
        margin-top: 40px;
        max-width: 100%;
        display: block;
    }

    .gis-modal-picture__type {
        display: block;
        margin-bottom: 16px;
        font-weight: 500;
        font-style: normal;
        line-height: 1.5rem;
        color: #4D4D4D;
    }

    .gis-modal__content {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: fit-content;
        max-width: 820px;
        line-height: 1.375rem;
        background: #F9F9F6;
        z-index: 50;
    }
}

@media screen and (max-width: 740px) {

    .gis-help {
        overflow-y: scroll;
    }

    .gis-map-layers {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 97vw;
    }

    .gis-dropdown__inputext {
        display: inline-block;
        position: relative;
        margin-right: 20px;
        width: 64vw;
        height: 1.785rem;
        border-radius: 2px;
        border: 1px solid #919191;
        background-color: #ffffff;
        overflow: hidden;
        cursor: pointer;
        font-family: 'Montserrat';
        font-size: 1.125rem;
    }

    .input-search-clear {
        content: "";
        position: absolute;
        left: 81vw;
        top: 10px;
        bottom: 0;
        width: 24px;
        background: url("/assets/icons/close_inverse.svg") center / contain no-repeat;
        z-index: 3;
        cursor: pointer;
    }

    .gis-expand-all-layers {
        top: 11px;
        left: 30vw;
    }

    .gis-toggle-share {
        left: 30vw;
        background: transparent url('/assets/icons/share.svg') 0 0 no-repeat padding-box;
        background-size: 1.8rem 1.8rem;
        top: 10px;
    }


    .gis-toggle-search {
        left: 36.5vw;
        background: transparent url('/assets/icons/filtr.svg') 0 0 no-repeat padding-box;
        background-size: 2.25rem 2.25rem;
    }

    .gis-toggle-layers {
        left: 43vw;
        background: transparent url('/assets/icons/vrstvy.svg') 0 0 no-repeat padding-box;
    }

    #gis-layer-ui-wrapper {
        background: var(--theme-color) 0% 0% no-repeat padding-box;
        border-radius: 0px 0px 6px 6px;
        left: 0;
        width: 50vw;
        height: 50px;
    }

    #gis-layer-search-div {
        background: #FFFFFF 0% 0% no-repeat padding-box;
        border-radius: 0px 0px 6px 6px;
        left: 0px !important;
        width: 97vw;
        height: 50px;
        margin-top: 50px;
        padding-top: 0px;
        display: none;
    }


    .gis-appl-title {
        position: absolute;
        top: 14px;
        left: 3vw;
        font-weight: 500;
        color: #FFFFFF;
    }

    .gis-modal__body {
        display: flex;
        max-width: 90vw;
        overflow: auto;
        max-height: 90vh;
        padding: 0.5rem 2rem 1rem 0.75rem;
        scrollbar-width: thin;
        scrollbar-color: var(--thumbBG) var(--scrollbarBG);
    }

    .gis-modal__desc__text {
        order: 0;
        word-wrap: normal;
    }

    .gis-modal__desc__image {
        order: 1;
        max-width: 35vw;
        height: auto;
        padding-right: 1rem;
        position: relative;
    }

    .gis-modal__desc__image_gallery {
        order: 1;
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        display: block;
        width: 2rem;
        height: 2rem;
        border-radius: 6px;
        z-index: 150;
        background: var(--theme-color) url("/assets/icons/gallery-inverted.svg") no-repeat center;
        cursor: default;
    }

    .gis-modal__desc picture {
        max-width: 35vw;
        display: block;
    }

    .gis-modal__body::-webkit-scrollbar {
        width: 13px;
    }

    .gis-modal__body::-webkit-scrollbar-track {
        background: var(--scrollbarBG);
    }

    .gis-modal__body::-webkit-scrollbar-thumb {
        background-color: var(--thumbBG);
        border-radius: 6px;
        border: 3px solid var(--scrollbarBG);
    }

    .gis-modal__icon {
        margin-right: 0.75rem;
    }

    .gis-modal__icon > img {
        width: 3rem;
        height: 3rem;
    }

    .gis-modal__title {
        margin-bottom: 0.2rem;
        font-weight: 600;
    }

    .gis-modal__desc p {
        padding-top: 1rem !important;
        margin-bottom: 1rem;
        color: #4D4D4D;
        white-space: pre-wrap;
    }

    .gis_modal__link_container_list {
        margin-bottom: 2rem;
    }

    .gis-modal-picture__type {
        display: block;
        margin-bottom: 1rem;
        font-weight: 500;
        font-style: normal;
        line-height: 1rem;
        color: #4D4D4D;
    }

    .gis-modal__content {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 98vw;
        line-height: 1rem;
        background: #F9F9F6;
        z-index: 50;
    }

    .gis-modal-picture__body {
        max-width: 90vw;
        overflow: scroll;
        max-height: 90vh;
        padding-bottom: 1rem;
    }

    .gis-modal-picture__body::-webkit-scrollbar {
        width: 13px;
    }

    .gis-modal-picture__body::-webkit-scrollbar-track {
        background: var(--scrollbarBG);
    }

    .gis-modal-picture__body::-webkit-scrollbar-thumb {
        background-color: var(--thumbBG);
        border-radius: 6px;
        border: 3px solid var(--scrollbarBG);
    }

    #webp-image-detail {
        max-width: 90vw !important;
    }

    #webp-image-detail {
        max-width: 90vw !important;
    }

    #jpeg-fallback-detail {
        max-width: 90vw !important;
    }

    #webp-image {
        max-height: 50vh !important;
    }

    #webp-image {
        max-height: 50vh !important;
    }

    #jpeg-fallback {
        max-height: 50vh !important;
    }
}

@media screen and (max-height: 600px) and (min-width: 800px) {
    .gis-modal__content {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 80vw;
        line-height: 1rem;
        background: #F9F9F6;
        z-index: 50;
    }
}
