html {
	font-size: 100%; /* damit man die Einheit "rem" verwenden kann */
}

body {
  font-family: 'Asap', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

h1 {
  margin: 0;
  font-size: 16px;
}

@media screen and (hover: hover) {
  :focus:not(:focus-visible) { outline: none }
  :active:not(:focus-visible) { outline: none } /* Firefox */
  /* Entfernt die lästigen Umrisse für Mausbenutzer, behält sie jedoch für Tastaturbenutzer bei 
     und wird von Browsern ignoriert, die dies nicht unterstützen. */
}


.scrollpane { /* waagerecht funktioniert im Desktop-Safari nur mit Touchpad */
  overflow-x: scroll; /* oder auto – mit "hidden" geht das Wischen aber nicht mehr*/
  overflow-y: hidden;
  white-space: nowrap; /* damit die enthaltenen Boxen nicht umbrechen */
  -ms-scroll-snap-type: x mandatory; /* MSIE und Edge 12+ */
  scroll-snap-type: x mandatory;
  /* scroll-behavior: smooth; muss für Chrome und Chromium-Browser via JS in window.onload gesetzt werden */
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.scrollpane > a { /* Schließkreuz */
  position: fixed;
  z-index: 9999;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 70 70 L 530 530 M 70 530 L 530 70' fill='none' stroke='white' stroke-width='70' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
}


.scrollpane figure {
  display: inline-block;
  width: 100%;
  height: 100%;
  vertical-align: top;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
}


.scrollpane figure a {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.scrollpane img {
  border: none; /* MSI <= 10 */
}

@supports (object-fit: cover) or (-o-object-fit: cover) {
  .scrollpane img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
  }
}


.scrollpane figcaption:not(:empty) {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  color: white;
  text-shadow: 2px 2px 3px black;
  text-align: center;
  white-space: normal; /* muss */
  background-color: rgba(0,0,0,0.2);
  box-sizing: border-box;
  padding: 0.5rem 1rem;
}

