@font-face {
  font-family: Basteleur;
  font-weight: bold;
  src: url("../fonts/basteleur/Basteleur-Bold.woff2") format("woff2"),
    url("../fonts/basteleur/webfonts/Basteleur-Bold.woff") format("woff"),
    url("../fonts/basteleur/otf/Basteleur-Bold.oth") format("OpenType"),
    url("../fonts/basteleur/ttf/Basteleur-Bold.ttf") format("truetype");
}

@font-face {
  font-family: u001;
  font-weight: normal;
  src: url("../fonts/u001/u001-reg.woff2") format('woff2'),
       url("../fonts/u001/u001-reg.woff") format('woff'),
       url("../fonts/u001/u001-reg.ttf") format("truetype");
}

@font-face {
  font-family: u001;
  font-weight: normal;
  font-style: italic;
  src: url("../fonts/u001/u001-ita.woff2") format('woff2'),
  url("../fonts/u001/u001-ita.woff") format('woff'),
  url("../fonts/u001/u001-ita.ttf") format("truetype");
}

@font-face {
  font-family: u001;
  font-weight: bold;
  src: url("../fonts/u001/u001-bol.woff2") format('woff2'),
  url("../fonts/u001/u001-bol.woff") format('woff'),
  url("../fonts/u001/u001-bol.ttf") format("truetype");
}

@font-face {
  font-family: u001;
  font-weight: bold;
  font-style: italic;
  src: url("../fonts/u001/u001-bolita.woff2") format('woff2'),
  url("../fonts/u001/u001-bolita.woff") format('woff'),
  url("../fonts/u001/u001-bolita.ttf") format("truetype");
}

:root {
  --font-size: 14pt;
  --line-height: 20pt;
  --font-size--caption: 12pt;
  --line-height--caption: 16pt;
  --font-size--title: 30pt;
  --line-height--title: 36pt;
  --font-size--menu: 18pt;
  --line-height--menu: 24pt;
  --font-size--stops: 14pt;
  --line-height--stops: 20pt;
  --stop-icon-size: 25pt;
  --stop-space: 16pt;
  --stop-border-width: 4pt;

  --swiper-pagination-bullet-size: var(--stop-icon-size);
  --swiper-pagination-bullet-horizontal-gap: 0;
  --swiper-pagination-bullet-inactive-color: transparent;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-color: currentColor;
  --swiper-pagination-bullet-opacity: 1;

  --stop-color--active: #000000;
}

html,
body {
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin: 0;
  padding: 0;
  font-family: u001;
}

body.page {
  background: black;
  color: white;
}

nav#nav--stops {
  box-sizing: border-box;
  grid-column: 1 / span 4;
  padding-left: 10%;
  min-width: 100%;
  width: fit-content;
}

nav#nav--stops ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: relative;
  padding-right: calc(5 * var(--line-height));
}

nav#nav--stops ul::before {
  content: '';
  background-color: currentColor;
  height: var(--stop-border-width);
  position: absolute;
  top: calc(50% - .5 * var(--stop-border-width));
  right: 0;
  left: 0;
}

nav#nav--stops ul li {
  position: relative;
  left: calc(-1 * var(--stop-border-width));
  margin-right: var(--stop-space);
  height: calc(var(--stop-icon-size) + 2 * var(--stop-border-width));
  min-width: calc(var(--stop-icon-size) + 2 * var(--stop-border-width));
  width: calc(var(--stop-icon-size) + 2 * var(--stop-border-width));
}

nav#nav--stops ul li a {
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--font-size--stops);
  line-height: var(--line-height--stops);
  height: var(--stop-icon-size);
  width: var(--stop-icon-size);
  border: var(--stop-border-width) solid currentColor;
  border-radius: 50% 50%;
  text-decoration: none;
  color: currentColor;
}

#nav--stops ul li:hover a,
#nav--stops ul li a.selected {
  box-shadow: 0px 0px calc(.75 * var(--line-height)) #fff,
    0px 0px calc(.5 * var(--line-height)) #fff,
    0px 0px calc(.25 * var(--line-height)) #fff;
}

#nav--stops li a,
.stop--list .stop {
  background-color: var(--stop-color);
}

#nav--stops ul li:hover a span,
#nav--stops ul li a.selected span {
  text-decoration: underline;
}

#nav--stops ul li:hover a span {
  display: block;
}

#nav--stops ul li a span {
  position: absolute;
  top: calc(var(--stop-icon-size) * 1.1);
  left: calc(50% - .85ch);
  transform: rotate(35deg);
  transform-origin: bottom left;
  white-space: nowrap;
}

#nav--stops[data-labels-hidden] span {
  display: none;
}

header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  padding-top: var(--line-height);
  display: grid;
  row-gap: var(--line-height);
  grid-template-columns: 10% 40% 40% 10%;
  grid-template-rows: min-content min-content;
}

header nav#nav--main {
  grid-column: 1 / span 2;
}

header #nav--main {
  text-align: left;
  font-family: Basteleur;
}

header #nav--main #menu--background--fill {
  display: none;
}

header #nav--main ul {
  display: inline-block;
  text-align: right;
  list-style-type: none;
  transform: rotate(-6deg);
  transform-origin: bottom right;
  margin: 0;
  padding: 0;
}


header #nav--main li a {
  display: inline-block;
  border-bottom: 3px solid currentColor;
  font-weight: bold;
  color: currentColor;
  text-decoration: none;
  padding-top: .25em;
}

header #logo,
header #logo-auto,
header #logo-tekst {
  grid-row: 1;
  grid-column: 3 / span 2;
  justify-self: right;
  margin: 0 var(--line-height);
}

header img {
  max-height: 100px;
}

header #nav--main li:nth-child(1) a {
  width: 8ch;
}

header #nav--main li:nth-child(2) a {
  width: 12ch;
}

header #nav--main li:nth-child(3) a {
  width: 16ch;
}

#menu--icon--close,
#menu--icon--open {
  display: none;
  position: relative;
  cursor: pointer;
  width: 20px;
  height: 20px;
  z-index: 1;
  color: currentColor;
}

#menu--icon--open {
  height: 19px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  box-sizing: border-box;
  background: linear-gradient(to bottom, transparent 5px, currentColor 5px, currentColor 8px, transparent 8px);
}

#menu--icon--close:before,
#menu--icon--close:after {
  height: 3px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1.5px);
  content: ' ';
  background: currentColor;
}

#menu--icon--close:before {
  transform: rotate(45deg);
}

#menu--icon--close:after {
  transform: rotate(-45deg);
}

#menu--icon--open:hover,
#menu--icon--close:hover {
  color: currentColor;
}

.stop {
  min-height: 80vh;
  padding-top: calc(14 * var(--line-height));
  padding-bottom: calc(3 * var(--line-height));
}

.stop .content {
  max-width: 80%;
  margin: auto;
}

.stop .stop--video {
  max-width: 80%;
  max-height: 100%;
  margin: auto;
}

dl {
  display: grid;
  grid-template-columns: 15ch 1fr;
  row-gap: calc(.5 * var(--line-height));
}

dt {
  font-family: Basteleur;
  font-weight: bold;
  font-size: 90%;
  align-self: baseline;
}

dt.spacer {
  grid-column-end: span 2;
  height: var(--line-height);
}

dd {
  align-self: baseline;
}

dd p {
  margin: 0;
}

h2 {
  line-height: 1.3;
  margin-top: 2.6em;
  margin-bottom: 1.3em;
}

.swiper {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(2 * var(--stop-icon-size));
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 65vh;
  padding-left: 10%;
  padding-right: 10%;
  box-sizing: border-box;
}

.swiper-slide figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.swiper-slide .video {
	width: 100%;
	margin: 0;
}

.swiper-slide .swiper-slide-image-wrapper {
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  position: relative;
}

.swiper-slide .swiper-slide-video-wrapper {
	flex: 1 1 auto;
	height: 100%;
	width: 100%;
	position: relative;
	display: flex;
}

.swiper-slide img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* flex-shrink: 1; */
}

.swiper-slide figcaption:not(:empty) {
  text-align: center;
  /* display: table-caption; */
  max-width: 100%;
  flex-shrink: 1;
  line-height: var(--line-height--caption);
  font-size: var(--font-size--caption);
  margin-top: calc(var(--line-height--caption));
}

.swiper-slide figcaption p {
  margin: 0;
}

.swiper-pagination {
  margin-left: 10%;
  text-align: left;
  max-width: 80%;
  margin-top: var(--line-height);
  position: initial;
}

.swiper-pagination-bullet {
  border: 2px solid currentColor;
  margin-right: calc(var(--stop-space) + 2 * (var(--stop-border-width) - 2px)) !important;
  margin-bottom: calc(0.5 * var(--line-height)) !important;
}

.swiper-arrow-left,
.swiper-arrow-right {
  box-sizing: border-box;
  cursor: pointer;
  position: absolute;
  width: 10%;
  padding: 10px;
  top: 0;
  bottom: calc(2 * var(--line-height));
  display: flex;
  align-items: center;
  z-index: 2;
}

.swiper-button-disabled img {
  display: none;

  justify-content: right;
}

.swiper-arrow-left {
  left: 0;
  justify-content: right;
}

.swiper-arrow-right {
  right: 0;
}

.swiper-arrow-right img {
  transform: scaleX(-1);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0px;
}

@media screen and (max-width: 800px) {
  :root {
    --font-size: 10pt;
    --line-height: 14pt;
    --font-size--caption: 8pt;
    --line-height--caption: 12pt;
    --font-size--title: 12pt;
    --line-height--title: 16pt;
    --font-size--menu: 18pt;
    --line-height--menu: 24pt;
    --font-size--stops: 10pt;
    --line-height--stops: 14pt;
    --stop-icon-size: 12pt;
    --stop-space: 12pt;
    --stop-border-width: 3px;
  }

  #nav--main {
    display: none;
  }

  header {
    padding-top: 0;
    grid-template-columns: 20px 1fr 1fr 20px;
    grid-template-rows: min-content min-content;
  }

  header #logo,
  header #logo-auto,
  header #logo-tekst {
    max-height: initial;
    margin-top: var(--line-height);
  }

  header img {
    height: 50px;
  }
  
  nav#nav--stops {
    padding-left: 20px;
  }
  

  .swiper-arrow-left,
  .swiper-arrow-right {
    width: 20px;
    justify-content: center;
    padding: 0;
  }

  .swiper-arrow-left img,
  .swiper-arrow-right img {
    max-width: 10px;
    margin: 0 5px;
  }

  .swiper-slide {
    /* height: 40vh; */
    padding-left: 20px;
    padding-right: 20px;
    height: calc((6 / 9) * (100vw - 40px));
  }

  /*.swiper-slide img {
    max-width: calc(100vw - 40px);
  } */

  .swiper-pagination {
    margin-left: 20px;
  }

  [data-nav-open] header #logo,
  [data-nav-open] header #logo-tekst,
  [data-nav-open] header #logo-auto {
    visibility: hidden;
  }

  [data-nav-open] #nav--main {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    padding-top: 15vh;
    justify-content: center;
    align-items: flex-start;
  }

  [data-nav-open] #nav--main #menu--background--fill {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--stop-color--active);
    opacity: .9;
  }

  body:not([data-nav-open]) #menu--icon--open {
    display: block;
    grid-row: 1;
    grid-column: 2;
    align-self: flex-end;
    margin-bottom: 10px;
  }

  body[data-nav-open] #menu--icon--close {
    display: block;
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 4;
  }

  .stop {
    padding-top: calc(12 * var(--line-height));
  }

  #nav--stops {
    font-size: 85%;
  }

  dl {
    row-gap: calc(.5 * var(--line-height));
  }

  h2 {
    margin-top: 1.3em;
  }

  #nav--main {
    font-size: 20px;
  }

  header #nav--main li a {
    padding-top: .5em;
    padding-bottom: .25em;
  }
}

body.page main {
  max-width: 80%;
  margin: calc(16 * var(--line-height)) auto calc(3 * var(--line-height)) auto;
}

body.page .content{
  font-family: u001;
  text-align: center;
  margin: auto;
  width: 80%;
  max-width: 55ch;
}

.page .content blockquote {
  margin-left: 0;
  margin-right: 0;
}

body.page .content h1,
.page .content h2,
.page .content blockquote,
.page .content blockquote * {
  font-family: Basteleur;
}
 
body.page .content h2, 
body.page .content p {
  font-size: var(--font-size);
  text-decoration: none;
  margin-bottom: var(--line-height);
  margin-top: 0;
  color: currentColor;
}

.page .content img {
  max-width: 100%;
}

.content a {
  color: currentColor;
  text-decoration: underline;
}

.content a:hover {
  text-decoration: none;
}

.page--video {
  margin-bottom: calc(3 * var(--line-height));
  max-height: 80vh;
}


dd {
  margin: 0;
}

dt a, dd a {
  word-wrap: break-word;
  word-break: break-all;
}

.commentBox {
  max-width: 60ch;
  margin-top: calc(2 * var(--line-height));
  margin-left: 15ch;
}

.commentBox--question {
  font-weight: bold;
}

.commentBox--comments {
  display: flex;
  flex-direction: column;
}

.commentBox--comment {
  display: inline-block;
  max-width: 40ch;
  align-self: flex-start;
}

.commentBox--comment:nth-child(even) {
  text-align: right;
  align-self: flex-end;
}

.commentBox--comment--content {
  background: black;
  color: var(--stop-color);
  border-radius: 5px;
  padding: .5em 1em;
}

.commentBox--comment--content p {
  margin: 0;
}


.commentBox--comment--content p + p {
  margin-top: var(--line-height);
}

.commentBox--comment--meta {
  font-size: 80%;
  padding: 0 .5em;
}
 
.question {
  font-weight: bold;
}

.commentBox--form {
  margin-top: calc(2 * var(--line-height));
}

label {
  display: block;
  margin-top: calc(.5 * var(--line-height));
  margin-bottom: calc(.25 * var(--line-height));
}

input, textarea {
  border: 2px solid black;
  padding: .5em;
  font: inherit;
  background: transparent;
}

input[type="submit"] {
  border-radius: 5px;
  background: black;
  color: var(--stop-color);
  padding: .25em 1em;
  display: block;
  margin-top: calc(.5 * var(--line-height));
}

@media screen and (max-width: 600px) {
  :root {
    --font-size: 8pt;
    --line-height: 12pt;
    --font-size--caption: 8pt;
    --line-height--caption: 12pt;
    --font-size--title: 10pt;
    --line-height--title: 16pt;
    --font-size--menu: 18pt;
    --line-height--menu: 24pt;
    --font-size--stops: 8pt;
    --line-height--stops: 10pt;
    --stop-icon-size: 12pt;
    --stop-space: 6pt;
    --stop-border-width: 3px;
  }

  #logo-auto.animate {
    animation-name: drive;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
  }

  body.page main {
    max-width: initial;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .commentBox {
    margin-left: 0;
  }
}