@media screen and (orientation: portrait) {
    #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-control-wrapper {
        z-index: 25 !important;
    }

    .gis-dropdown__container--layers li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-left: 28px;
    }

    .gis-dropdown__container--layers ul ul li {
        margin-top: 20px;
        padding-left: 2.5rem;
    }

    .gis-dropdown__container--map-types {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        padding-top: 0px;
    }

    .gis-dropdown__expandable-indicator {
        position: relative;
        display: inline-block;
        margin-left: 0.555rem;
        margin-right: 0.2775rem;
        width: 1rem;
        height: 1.5rem;
        cursor: pointer;
    }

    .gis-dropdown__checkbox {
        display: inline-block;
        position: relative;
        margin-right: 0.55rem;
        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: 0.55rem;
        width: 1.5rem;
        height: 1.5rem;
        overflow: hidden;
        cursor: pointer;
    }

    .gis-control-button {
        left: 13px;
        width: 2.25rem;
        height: 2.25rem;
        border: none;
        outline: none;
        cursor: pointer;
    }

    .gis-toggle-map-type {
        position: absolute;
        top: 12px;
        padding: 6px;
        background: transparent url('/assets/icons/map.png') 0 0 no-repeat padding-box;
    }

    .gis-set-measure {
        position: absolute;
        top: 62px;
        background: transparent url('/assets/icons/mereni_vzdalenosti.svg') 0 0 no-repeat padding-box;
    }

    .gis-set-center {
        position: absolute;
        top: 106px;
        background: transparent url('/assets/icons/center_position_1.svg') 0 0 no-repeat padding-box;
    }

    .gis-set-minus {
        position: absolute;
        top: 150px;
        background: transparent url('/assets/icons/minus.svg') 0 0 no-repeat padding-box;
    }

    .gis-set-plus {
        position: absolute;
        top: 194px;
        background: transparent url('/assets/icons/plus.svg') 0 0 no-repeat padding-box;
    }

    .gis-toggle-help {
        position: absolute;
        top: 238px;
        background: transparent url('/assets/icons/help.svg') 0 0 no-repeat padding-box;
    }

    .gis-dropdown__container--help {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }

    #gis-control-ui-wrapper {
        background: var(--theme-color) 0% 0% no-repeat padding-box;
        border-radius: 0px 0px 6px 6px;
        right: 0;
        width: 52px;
        height: 270px;
    }

    .gis-modal__body {
        display: flex;
        padding: 0.5rem 2rem 1rem 0.75rem;
        max-width: 90vw;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 90vh;
    }

    .gis-modal__desc {
        display: flex;
        flex-direction: column;
        padding: 1rem 0 4rem 0;
        border-top: 1px solid #E4E4D8;
        --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__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__details {
        width: 90vw;
        max-width: 90vw;
    }

    .gis-modal__icon {
        margin-right: 0.75rem;
    }

    .gis-modal__icon > img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .gis-modal__title {
        margin-bottom: 0.2rem;
        font-weight: 600;
    }

    .gis-modal__desc__text {
        order: 0;
        word-wrap: normal;
    }

    @media (min-width: 768px) {
        .gis-modal__desc {
            display: flex;
            flex-direction: row;
        }
    }

    .gis-modal__desc > div:last-child {
        flex: 1 0 32%;
    }

    .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__desc p {
        margin-bottom: 1rem;
        color: #4D4D4D;
        white-space: pre-wrap;
    }

    .gis-modal__desc__image {
        order: 1;
        max-width: 35vw;
        height: auto;
        padding-right: 1rem;
        padding-bottom: 1rem;
        position: relative;
    }

    .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;
    }

    #webp-image-detail {
        max-width: 90vw !important;
    }

    #webp-image-detail {
        max-width: 90vw !important;
    }

    #jpeg-fallback-detail {
        max-width: 90vw !important;
    }

    #webp-image {
        max-width: 80vw !important;
    }

    #webp-image {
        max-width: 80vw !important;
    }

    #jpeg-fallback {
        max-width: 80vw !important;
    }

    @media screen and (min-width: 501px) {
        .gis-map-layers {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 460px;
        }

        #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-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;
        }

        .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-dropdown__inputext:focus {
            outline: none !important;
            border-color: rgb(0, 92, 165);
            box-shadow: 0 0 10px rgb(0, 92, 165);
        }

        .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-appl-title {
            position: absolute;
            top: 14px;
            left: 19px;
            font-weight: 500;
            color: #FFFFFF;
        }
    }

    @media screen and (max-width: 500px) {
        .gis-map-layers {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 97vw;
        }

        #gis-layer-search-div {
            background: #FFFFFF 0% 0% no-repeat padding-box;
            border-radius: 0px 0px 6px 6px;
            left: 0px !important;
            width: 97vw;
            margin-top: 50px;
            height: 50px;
            padding-top: 0px;
            display: none;
        }

        .gis-dropdown__inputext {
            display: inline-block;
            position: relative;
            margin-right: 20px;
            width: 52vw;
            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: 74vw;
            top: 10px;
            bottom: 0;
            width: 24px;
            background: url("/assets/icons/close_inverse.svg") center / contain no-repeat;
            z-index: 3;
            cursor: pointer;
        }

        .gis-dropdown__inputext:focus {
            outline: none !important;
            border-color: rgb(0, 92, 165);
            box-shadow: 0 0 10px rgb(0, 92, 165);
        }

        .gis-expand-all-layers {
            top: 11px;
            left: 42vw;
        }

        .gis-toggle-share {
            left: 41.9vw;
            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: 54.5vw;
            background: transparent url('/assets/icons/filtr.svg') 0 0 no-repeat padding-box;
            background-size: 2.25rem 2.25rem;
        }

        .gis-toggle-layers {
            left: 67.1vw;
            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: 80vw;
            height: 50px;
        }

        .gis-appl-title {
            position: absolute;
            top: 14px;
            left: 3vw;
            font-weight: 500;
            color: #FFFFFF;
        }

        .gis-dropdown__title {
            width: 65vw;
        }
    }
}
