.map-container {
    height: calc(100vh - 12.5rem);
    width: 100%;
    position: relative;
}
.sidebar {
    position: absolute;
    width: 33.3333%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: scroll;
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: all 1s cubic-bezier(0.32, 0.24, 0.15, 1);
    background-color: white;
    padding: 2.5rem;
    z-index: 2;
}

@media (max-width: 800px) {
    .sidebar {
        width: 50%;
        padding: 1.4rem;
    }
}

@media (max-width: 500px) {
    .sidebar {
        width: 100%;
    }
}

.map-container.show .sidebar {
    transform: translateX(0);
}

.map {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    transition: all 1s cubic-bezier(0.32, 0.24, 0.15, 1);
}

.map-container.show .map {
    padding-left: 16.5%;
}

.mapboxgl-popup {

}

.mapboxgl-popup-tip, .mapboxgl-popup-close-button {
    display: none;
}

.mapboxgl-popup-content {
    border-radius: 2.25rem;
    font-size: 1.1rem;
    padding: 1.2rem 1.4rem;
    line-height: 1;
    box-shadow: none;
    transform: translate(50%, -1rem);
}

.map-container.show .mapboxgl-popup {
    margin-left: 16.5%;
}

.map-container h1 {
    transition: .4s all;
    position: absolute;
    top: 5rem;
    left: 5rem;
    width: calc(100% - 10rem);
    max-width: 42.5rem;
    pointer-events: none;
    color: black;
}

.map-container.show h1 {
    opacity: 0;
    visibility: hidden;
}

.map-container h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 3rem 0 1.25rem;
}

.close {
    font-size: .9rem;
    display: inline-block;
    cursor: pointer;
}

.country-info {
    display: none;
    margin-bottom: 2.5rem;
}

.country-info.visible {
    display: block;
}

.mapboxgl-ctrl-compass {
    display: none !important;
}

.mapboxgl-ctrl-top-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.mapboxgl-ctrl-top-right .mapboxgl-ctrl {
    margin: 0 5rem 0 0;
    background-color: transparent;
    box-shadow: none;
}

.mapboxgl-ctrl-group > button {
    margin: 1rem 0;
    border-radius: 50%;
    border: 2px solid #005CC8;
    height: 4rem;
    width: 4rem;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
}

.mapboxgl-ctrl-group > button + button {
    border-top: 2px solid #005CC8;
}

.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in {
    background-image: url(https://static.earthcharter.org.cn/web/wp-content/assets/img/zoom-in.svg);
}

.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out {
    background-image: url(https://static.earthcharter.org.cn/web/wp-content/assets/img/zoom-out.svg);
}

.mapboxgl-ctrl-group > button:focus {
    box-shadow: none;
}

.mapboxgl-ctrl-group > button:focus:first-child {
    border-radius: 50%;
}

.map-container .sidebar .wp-block-image {
    margin: 1rem 0;
}

#map .wp-block-image .alignleft {
    float: none;
    margin-top: 2rem;
}