@font-face {
  font-family: 'Documan-TRIAL';
  src: url('fonts/Documan-Medium.woff2') format('woff2'),
      url('fonts/Documan-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Documan-TRIAL';
  src: url('fonts/Documan-Regular.woff2') format('woff2'),
      url('fonts/Documan-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Documan STC-TRIAL';
  src: url('fonts/DocumanSTC-Medium.woff2') format('woff2'),
      url('fonts/DocumanSTC-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --rood: #DB0812;
  --blauw: #0000B9;
}
* {
	margin: 0;
	padding: 0;
}
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
body {
  font-family: 'Documan-TRIAL', sans-serif;
  text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    background-color: white;
    color: var(--rood);
    font-size: 19px;
    line-height: 22px;
    max-width: 2000px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 100px;
    overflow-x: hidden;
}
html {
  box-sizing: border-box;
  -ms-overflow-style: scrollbar;
  scroll-behavior: smooth;
}
img {
  width: 100%;
  height: auto;
  display: block;
}
nav.main-menu {
  margin-left: 100px;
  margin-right: 100px;
  padding-left: 44px;
  padding-right: 44px;
  border-bottom: 1px solid var(--rood);
}
nav.main-menu ul {
  display: flex;
}
nav.main-menu ul li {
  list-style: none;
  flex-grow: 1;
  text-align: center;
  border-left: 1px solid var(--rood);
  border-top: 1px solid var(--rood);
  border-right: 1px solid var(--rood);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  background-color: white;
  margin-right: -5px;
  
  transition: all 0.3s ease;
}
nav.main-menu ul li a {
  display: inline-block;
  padding: 8px;
  width: 100%;
}
nav, .knop a, .menu-toggle {
  font-family: 'Documan STC-TRIAL';
  font-weight: 500;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1;
}
nav li {
  list-style-type: none;
}
h1.site-title span {
  display: none;
}
h1.site-title {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
}
h1.site-title a {
  background-image: url('img/ap.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  width: 68px;
  display: block;
  height: auto;
  aspect-ratio: 68/250;
}


main.container {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 20px;
  padding-top: 50px;
}
.sidebar {
  grid-column: 3 / span 4;
  font-size: 22px;
  line-height: 26px;
}
.map {
  margin-left: -40px;
  margin-right: -40px;
}
.content {
  grid-column: 8 / span 7;
}
.map {
  grid-column: 2 / -2;
}
.intro p {
  font-size: 18px;
  line-height: 22.5px;
}
.intro p+p {
  padding-top: 22px;
}
.page-nav li {
  border-bottom: 1px solid var(--rood);
  padding: 7px 20px;
}
.page-nav {
  margin-left: -20px;
  margin-right: -20px;
}

.content a {
  text-decoration: underline;
}
.rood {
  color: var(--rood);
}
.blauw {
  color: var(--blauw);
}
.page-template-default .content, .page-template-kaart .content {
  color: black;
}
.blok-image-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

figcaption, .video-caption {
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  padding-top: 10px;
  
}
.blok, .intro {
  padding-bottom: 36px;
}
h2 {
  text-transform: uppercase;
  padding-left: 20px;
  padding-bottom: 30px;
  font-weight: normal;
}
.tekst p {
  font-size: 15px;
  line-height: 18px;

}
.tekst p+p {
  padding-top: 18px;
}
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-responsive-21by9::before {
  padding-top: 42.857143%;
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-4by3::before {
  padding-top: 75%;
}

.embed-responsive-1by1::before {
  padding-top: 100%;
}
.blok.afbeeldingen, .blok.video {
  margin-left: -20px;
  margin-right: -20px;
}
.knop a {
  border: 1px solid var(--rood);
  padding: 7px 20px;
  color: var(--rood);
  text-decoration: none;
  border-radius: 13px;
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
}
.knop a:hover {
  background-color: var(--rood);
  color: white;
}
.blok-image-multiple img {
  height: 320px;
  width: auto;
}
.flickity-viewport {
  overflow: visible !important;
}
.flickity-slider figure {
  margin-right: 20px;
}
.map {
  color: black;
  padding-top: 14px;
}
*:focus-visible {
  outline: none;
}
.ap-mapbox { width: 100%; height: min(70vh, 720px); border-radius: 0; overflow: hidden; }
.ap-marker {
  width: 22px;
  height: 32px;
  background-color: #000;
  -webkit-mask: url('') no-repeat center / contain;
  mask: url('') no-repeat center / contain;
}
.ap-marker.is-clickable { cursor: pointer; }
.ap-popup .mapboxgl-popup-content { padding: 0; background: transparent; box-shadow: none; }
.ap-popup__inner { background: #fff; border: 1px solid #000; padding: 10px 20px; }
.ap-popup__naam { font-weight: 700; margin: 0 0 4px; font-size: 16px; line-height: 1.2; }
.ap-popup__meta { margin: 0; font-size: 13px; line-height: 1.2; font-family: 'Documan-TRIAL'; }
.ap-popup__team { margin-top: 5px; font-weight: 500; }

.mapboxgl-popup-close-button {
  color: var(--team);
  right: 4px !important;
  top: 2px !important;
}
.ap-popup__naam, .ap-popup__gemeente {
  font-family: 'Documan STC-TRIAL';
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 500;
}
.ap-popup__gemeente {
  margin-bottom: 5px;
}
.ap-popup__meta a {
  display: inline-block;
  text-decoration: underline;
  padding-top: 5px;
}
.mapboxgl-popup-close-button:hover {
  background-color: transparent !important;
}
/* Submenus are desktop-hidden by default; mobile uses slide-open (see @media max-width:720px). */
@media(min-width: 721px) {
  .sub-menu {
    display: none !important;
  }
}
.shapes {
  pointer-events: none;
  max-width: 2000px;
  margin: 0 auto;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 100;
  top: 0;
  left: 0;
}
@media (min-width: 2000px) {
  .shapes {
    left: calc(50vw - 1000px);
  }
  h1.site-title {
    left: calc(50vw - 1000px + 10px);
  }
}
.shape {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  z-index: 100;
}
.s-1 {
  background-image: url('img/1.svg');
  aspect-ratio: 210/206;
  top: 310px;
  left: 78px;
  width: 50px;
}
.s-2 {
  background-image: url('img/2.svg');
  aspect-ratio: 178/139;
  top: 400px;
  left: 50px;
  width: 42px;
}
.s-3 {
  background-image: url('img/3.svg');
  aspect-ratio: 154/155;
  top: 480px;
  left: 90px;
  width: 37px;
}
.s-4 {
  background-image: url('img/4.svg');
  aspect-ratio: 242/178;
  top: 40px;
  right: 10px;
  width: 80px;
}
.s-7 {
  background-image: url('img/7.svg');
  aspect-ratio: 321/307;
  bottom: 25px;
  right: 25px;
  width: 77px;
}
.s-8 {
  background-image: url('img/8.svg?v=3');
  aspect-ratio: 50/42;
  bottom: 90px;
  left: 50px;
  width: 49px;
}
h2 strong {
  font-weight: normal !important;
}
@media(max-width: 1200px) {
  .s-1 {
    left: 38px;
  }
  .s-2 {
    left: 10px;
  }
  .s-3 {
    left: 50px;
  }
}
@media(max-width: 1000px) {
  .s-4{
    display: none;
  }
  nav.main-menu {
    margin-right: 0;
  }
  .content {
    grid-column: 8 / span 9;
  }
  .sidebar {
    grid-column: 3 / span 5;
  }
  .page-nav {
    margin-left: 0;
    margin-right: 0;
  }
  .page-nav li {
    padding-left: 10px;
    padding-right: 10px;
  }
  .map {
    grid-column: 1 / -1;
  }
  .map {
    margin-left: 0;
    margin-right: 0;
  }
}
@media(max-width: 720px) {

  .s-1, .s-2, .s-3, .s-4, .s-8 {
    display: none;
  }
  nav.page-nav {
    display: none;
  }
  main.container {
    grid-template-columns: 1fr;
    padding-left: 50px;
    padding-right: 50px;
  }
  .content {
    grid-column: 1 / -1;
  }
  .sidebar {
    grid-column: 1 / -1;
  }
  h1.site-title a {
    width: 40px;
  }
  nav.main-menu ul {
    flex-direction: column;
  }

  /* Mobile submenu slide-open */
  nav.main-menu ul.sub-menu {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-menu li.is-submenu-open > ul.sub-menu {
    max-height: 600px; /* large enough for typical submenu length */
  }
  nav.main-menu ul.sub-menu li {
    border: 0;
    margin-right: 0;
    background: transparent;
  }
  nav.main-menu ul.sub-menu a {
    padding-left: 18px;
  }

  nav.main-menu>div>ul>li {
    padding-bottom: 20px;
    margin-bottom: -20px;
    position: static;
    background-color: white !important;
    color: var(--rood) !important;
  }

  nav.main-menu>div>ul>li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .menu-toggle {
    cursor: pointer;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 100;
    color: var(--rood);
    display: block;
    
  }
  .menu-toggle:after {
    content: 'Menu';
  }
  header {
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 100;
    top: 34px;
    transform: translateY(calc(-100% - 34px));
    transition: transform 0.3s ease;
    max-height: calc(100vh - 34px);
    overflow-y: auto;
  }
  .show-header header {
    transform: translateY(0);
  }
  .show-header .menu-toggle:after {
    content: 'Sluiten';
  }
  nav.main-menu ul.sub-menu li {
    border-top: 1px solid var(--rood);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-left: 20px;
    margin-right: 20px;
  }
  nav.main-menu {
    margin-left: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  .blok.afbeeldingen {
    overflow: hidden;
  }

}
@media(min-width: 720px) {
  .page-nav {
    position: sticky;
    top: 94px;
  }
  header {
    position: sticky;
    top: 10px;
    z-index: 100;
  }
  nav.main-menu ul li:hover, nav.main-menu ul li.current-menu-item, nav.main-menu ul li.current-page-ancestor {
    background-color: var(--rood);
    color: white;
    position: sticky;
    z-index: 100;
  }
}

@media(max-width: 480px) {
  
  .blok-image-double {
    grid-template-columns: 1fr;
  }
  main.container {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 10px;
  }
  .blok.afbeeldingen, .blok.video {
    margin-left: -10px;
    margin-right: -10px;
  }
  h1.site-title {
    position: static;
  }
}