@font-face {
  font-family: "Marmo";
  src: url("fonts/OTMarmo-Bold.woff")
}

* {
  font-size: 3.5px;
  font-family: "Marmo";
  font-weight: normal;
  letter-spacing: 1%;
}

body {
  background-color: white;
}

/* TYOPGRAPHY */

h1 {
  font-size: 5em;
  margin: 0;
}

h2 {
  font-size: 4em;
  margin: 1.25em 0 .5em 0;
}

a {
  font-size: 1em;
  text-decoration: none;
  color: black;
}

span {
  font-size: .8em;
}

figcaption {
  position:fixed;
  width: calc(100%-1em);
  bottom:0;
  padding-bottom: .75em;
  font-size: 4em;
  color:white;
  mix-blend-mode: difference;
}

.first {
  margin-top: 0;
}

/* TOP INFORMATION */

header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-flow: dense;
  row-gap: 4em;
}

a span {
  color: white;
}

a:hover span {
  color: black;
}

/* IMAGE SLIDER */

img,video {
  display: block;
  width: 80%;
  height: 80%;
  //min-width: 300px;
  object-fit: contain;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slideshow-container {
  z-index: 0;
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: white;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

figure {
  padding: 0px;
  margin: 0 auto;
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

figure:first-child {
  display: block;
}

.prev, .next {
  position: absolute;
  width: 50vw;
  height: 100vh;
}

.prev {
  cursor: w-resize;
}

.next {
  right:0;
  cursor: e-resize;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 4000px) and (min-width: 1800px) {
  * {
    font-size: 4px;
  }
}

@media only screen and (max-width: 420px) {
  * {
    font-size: 3px;
    letter-spacing: 1.5%;
  }
  img, video {
    width: 90%;
    height: 90%;
  }
}

@media (prefers-color-scheme: dark) {
  * {
    color: white;
  }

  body, .slideshow-container {
    background-color: black;
  }

  a {
    color: white;
  }

  a span {
    color: black;
  }

  a:hover span {
    color: white;
  }

  .invert {
    filter: invert(1);
  }
}
