@font-face {
  font-family: "Suisse Int'l";
  font-weight: normal;
  font-style: normal;
  src:
    url("/assets/fonts/SuisseIntl-Book-WebXL.woff") format("woff"),
    url("/assets/fonts/SuisseIntl-Book-WebXL.woff2") format("woff2");
}

:root {
  --pageMargin: 1em;
  --textLineHeight: 1.2;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Suisse Int'l", sans-serif;
  font-size: 16px;
  line-height: var(--textLineHeight);
  color: yellow;
}

@media (min-width: 800px) {
  body {
    font-size: 18px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.header,
.footer {
  z-index: 10;
}

.header {
  position: fixed;
  top: var(--pageMargin);
  left: var(--pageMargin);
}

.header p,
.footer p {
  margin: 0;
}

.footer {
  position: fixed;
  left: var(--pageMargin);
  bottom: calc(var(--pageMargin) * 2);
}

@media (min-width: 800px) {
  .footer {
    left: auto;
    right: var(--pageMargin);
    text-align: right;
  }
}

.slides {
  display: flex;
  height: 100%;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slides::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  margin: 0;
}

.slide__link {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  color: transparent !important;
  user-select: none;
}

.slide__link--hidden {
  display: none;
}

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

.slide__link--previous {
  left: 0;
  cursor: w-resize;
}

@media (pointer: coarse) {
  .slides {
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
  }

  .slide__link {
    bottom: auto;
    top: auto;
    width: auto;
    left: 0;
    right: 0;
    height: 50%;
  }

  .slide__link--next {
    bottom: 0;
    cursor: pointer;
  }

  .slide__link--previous {
    top: 0;
    cursor: pointer;
  }
}

.figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.figure__picture {
  width: 100%;
  height: 100%;
  user-select: none;
}

.figure__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  position: absolute;
  bottom: calc(4em * var(--textLineHeight) + var(--pageMargin) * 2);
  left: var(--pageMargin);
}

.figure__caption p:first-of-type {
  margin-top: 0;
}

.figure__caption p:last-child {
  margin-bottom: 0;
}

.figure__numbering::after {
  content: attr(data-index) "/" attr(data-total);
}

@media (min-width: 800px) {
  .figure__caption {
    position: static;
  }

  .figure__caption__text {
    position: absolute;
    bottom: calc(var(--pageMargin) * 2);
    left: var(--pageMargin);
  }

  .figure__numbering {
    position: absolute;
    top: var(--pageMargin);
    right: var(--pageMargin);
  }
}
