* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: steelblue;
  color: #212121;
  overflow: hidden;
}

#home {
  position: fixed;
  top: 10px;
  left: 10px;
}

a {
  color: #212121;
}

a:hover {
  color: deeppink;
}

#header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
  color: #212121;
  flex-wrap: wrap;
  gap: 12px;
}

#header h1 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

#header p {
  font-size: 14px;
  opacity: 0.9;
  font-family: 'Courier New', Courier, monospace;
}

/* Standaard slideshow (groot scherm + mobiel portrait) */
.slideshow {
  max-width: 700px;
  margin: 24px auto;
  padding: 16px;
}

.slideshow__viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

.slideshow__controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.slideshow__controls button {
  border: 0;
  background: #222;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  min-width: 95px;
}

.slideshow__controls button:focus {
  outline: 3px solid #4da3ff;
  outline-offset: 2px;
}

.slideshow__counter {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: #212121;
}

/* Mobiel portrait: normale slideshow */
@media (max-width: 600px) and (orientation: portrait) {
  .slideshow {
    padding: 12px;
    margin: 12px auto;
    margin-top: 80px;
  }

  .slideshow__viewport {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .slideshow__controls button {
    flex: 1 1 100%;
  }
}

/* Mobiel landscape: fullscreen slideshow */
@media (max-height: 500px) and (max-width: 900px) and (orientation: landscape) {
  body {
    overflow-x: hidden;
  }

  #header {
    display: none;
  }

  .slideshow {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .slideshow__viewport {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: 100dvh;
    border-radius: 0;
  }

  .slideshow__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .slideshow__controls {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 20;
    padding: 0 12px;
  }

  .slideshow__controls button {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .slideshow__counter {
    position: fixed;
    bottom: 12px;
    right: 12px;
    margin: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 20;
  }
}