:root {
    /*// Kleuren zijn ingesteld in views._partials.root (hier veranderen heeft geen effect) //*/
    --colour: hsl(0, 0%, 100%); /* dient gewoon als color picker in Dev Mode */
    /* HSL backgrounds */
    --hsl-bg: 0, 0%, 100%; /* main */
    --hsl-bg2: 0, 0%, 100%; /* navigatiebar */
    --hsl-bg3: 0, 0%, 100%; /* knoppen */
    --hsl-bg4: 0, 0%, 100%; /* input-velden */
    /* HSL foregrounds */
    --hsl-text: 0, 0%, 29%;
    --hsl-link: 240, 100%, 46%;
    /* HSL image masks */
    --hsl-img-underlay: var(--hsl-bg);
    --hsl-img-overlay: var(--hsl-text);

    --gap-side: 0.5rem;
    --gap-mini: 0.2rem;
    --gap-small: 0.4rem;
    --gap-medium: 0.8rem;
    --gap-large: 1.6rem;
    --gap-giant: 3rem;
    --height-cover-small: 10rem;
    --height-cover-big: 300px;
}


/* 
=================
GENERAL HTML TAGS 
================= */

a {color: hsl(var(--hsl-link));}
a.active {color: hsl(var(--hsl-text)); text-decoration: none; pointer-events: none;}
a.semi-active {color: hsl(var(--hsl-text));}
a[target="_blank"]:not(.embedded){
    position: relative;
    padding-right: 1.1rem;
    white-space: nowrap;
}
a[target="_blank"]:not(.embedded)::before {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
  content: "";
  width: 0.5em;
  height: 0.5em;
  margin-left: var(--gap-mini);
  display: inline-block;
  border: 1px solid hsl(var(--hsl-link));
  /* cut top-right corner */
  clip-path: polygon(
    0 0,
    calc(100% - 0.3em) 0,
    100% 0.3em,
    100% 100%,
    0 100%
  );
  position: absolute;
  right: 0.2em;
  top: 0.5em;
}
a[target="_blank"]:not(.embedded)::after {
  content: "↗";
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
  position: absolute;
  right: 0;
  top: 0.1em;
  font-size: 0.8rem;
  line-height: 1;
}

.upside-down {
  transform: rotateX(180deg);
  display: inline-block;
  padding-bottom: 0.2rem;
}

body {
    background-color: hsl(var(--hsl-bg));
    color: hsl(var(--hsl-text));
    height: 100svh;
    height: 100dvh;
}


/*
======
IMAGES
====== */

figure { line-height: 0; margin: 0;}
figure>img { object-fit: contain; opacity: 0; max-width: 100%;}

.cover {max-width: 100%;}
.cover {background-color: hsl(var(--hsl-img-underlay));}

.server-item>.cover>figure>img {max-height: var(--height-cover-small);}
.server-item>.cover, .server .cover {cursor: pointer;}

.server>.cover-wrapper {max-height: var(--height-cover-big);}
.server>div>.cover>figure>img, .create .cover>figure>img {max-height: var(--height-cover-big);}
.server>div>.cover figure, .create .cover {
    width: max-content;
    max-width: 100%;
}

.cover>figure {

}

.server .cover img, .create img {max-width: 100%;}

.cover figure {
  display: block; /* important */
  background-color: hsl(var(--hsl-img-overlay));

  -webkit-mask-image: var(--img);
  mask-image: var(--img);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: contain;
  mask-size: contain;

  -webkit-mask-position: center;
  mask-position: center;

  /* IMPORTANT for some browsers */
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.cover figure::before {
  content: "";
  position: absolute;

  background-color: inherit;

  -webkit-mask-image: var(--img);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: var(--img);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.popover>figure {
    height: auto;
    width: fit-content;
}
.popover>figure>img {
    max-width: calc(100vw - 2 * var(--gap-large));
    max-height: calc(100dvh - 2 * var(--gap-large));
    padding: 0;
    object-fit: contain;
    object-position: center;
    cursor:auto;
}

/* FILTER SYSTEM */
input[type="checkbox"]:disabled {
  opacity: 0.5;
}

input[type="checkbox"]:disabled + label {
  opacity: 0.5;
}
