/* Sky icons drawn by weather-icons/site.js (the website) and by the local icon preview. */

/* A slot keeps the ORIGINAL icon (emoji or rain+snow image) in the page, invisible, so every box, baseline and line height stays what it is
   without the library; the library's icon is laid over it, centred, 1em square (site.js, S.slot). */
.wx-slot {
  position: relative;
  display: inline-block;
}
.wx-ghost { visibility: hidden; }
.wx-slot > .wx-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1em;
  height: 1em;
  margin: -0.5em 0 0 -0.5em;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
/* An icon used outside a slot (tests, tools) behaves like the site's img.sky-mixed. */
.wx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  max-width: none;
  object-fit: contain;
  vertical-align: -0.12em;
}
/* Meteocons "monochrome" is drawn as a mask so it takes the surrounding text colour (currentColor is black inside an <img>). */
.wx-icon--mono {
  background-color: currentColor;
  -webkit-mask: var(--wx-src) center / contain no-repeat;
  mask: var(--wx-src) center / contain no-repeat;
}
