/* Modified Wikimedia stylesheet file for Skosmos wiki widget. Original file https://github.com/wikimedia/mediawiki-extensions-Kartographer/blob/c4bdcea5abe881396edd40950dd712ef9cf821f7/styles/kartographer.less distributed under the following license:

The MIT License (MIT)

Copyright (c) 2015 Yuri Astrakhan and others, see AUTHORS.txt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/**
* CSS Classes Definitions
*
* .mw-kartographer-maplink:
*     Represents a <maplink> element as output by the Parser.
*     May or may not be an interactive link yet (meanwhile JS gets loaded).
*
* .mw-kartographer-map
*    Represents a <mapframe> element as output by the Parser.
*    May or may not be an interactive map yet (meanwhile JS gets loaded)
*
* .mw-kartographer-link
*     Represents an interactive map link.
*     The class is added when the element becomes an interactive link.
*     May or may not be a <maplink> or <mapframe> (if created via Developer API)
*
* .mw-kartographer-interactive
*    Represents an interactive map.
*    The class is added when the element becomes an interactive map.
*
* .mw-kartographer-mapDialog-map
*    Represents an interactive map within a full screen map dialog.
*
* .mw-kartographer-static
*    Represents an interactive map that was made static afterward because the
*    viewport is too small.
*
* In practice:
*
* - <maplink> will have .mw-kartographer-maplink first,
*                       .mw-kartographer-link then.
*
* - <mapframe> will have .mw-kartographer-map first,
*                        .mw-kartographer-link then, if displaying static snapshot.
*                        .mw-kartographer-interactive then, if directly interactive.
*/
#wiki .mw-kartographer-mapDialog-map {
    position: absolute;
    top: 0;
    bottom: 4.5em;
    left: 0;
    right: 0;
    z-index: 1;
}
#wiki .mw-kartographer-error {
    display: inline-block;
    background: #ffc0cb;
}
#wiki .mw-kartographer-interactive .leaflet-control-container .leaflet-control.leaflet-control-scale-line {
    /* @noflip */
    direction: ltr;
}
#wiki .mw-kartographer-interactive .leaflet-control-container .leaflet-control.leaflet-control-attribution {
    direction: ltr;
}
#wiki .mw-kartographer-static .leaflet-control-container .leaflet-top .leaflet-control {
    display: none;
}
#wiki .mw-kartographer-static .leaflet-control-container .leaflet-top .leaflet-control-static {
    display: block;
}
#wiki .mw-kartographer-static .leaflet-clickable {
    pointer-events: none;
}
#wiki .mw-kartographer-static.leaflet-container {
    cursor: default;
}
#wiki .mw-kartographer-map {
    direction: ltr;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    font-size: 14px;
}
#wiki .mw-kartographer-map.mw-kartographer-link {
    display: block;
}
#wiki .mw-kartographer-map.leaflet-container {
    background-size: contain;
}
#wiki .mw-kartographer-fullScreen {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-right: 0;
}
#wiki .mw-kartographer-container:not( .mw-kartographer-full ) {
    max-width: 100%;
    /* Fixes `align=center` use case */
}
#wiki .mw-kartographer-container:not( .mw-kartographer-full ).center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#wiki .mw-kartographer-container:not( .mw-kartographer-full ).thumb .thumbinner {
    max-width: 100%;
}
#wiki .mw-kartographer-container:not( .mw-kartographer-full ).thumb .thumbinner > .mw-kartographer-map {
    width: 100%;
}
#wiki .mw-kartographer-container.mw-kartographer-full {
    width: 100%;
}
/* @noflip */
#wiki a.floatright {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
}
/* @noflip */
#wiki a.floatleft {
    float: left;
    clear: left;
    margin: 0.3em 0.5em 0.5em 0;
}
