:root {
      color-scheme: dark;
  }

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

.hkk-viewer {
      position: fixed;
      inset: 0;
      height: 100vh;
      height: 100dvh;
      display: grid;
      grid-template-rows: minmax(0, 1fr) auto auto auto;
      overflow: hidden;
      background: rgba(0, 0, 0, 0.0);
      color: #fff;
  }

.hkk-viewer.is-thumbs-hidden {
      grid-template-rows: minmax(0, 1fr) auto 0;
  }
.hkk-stage {
      position: relative;
      min-height: 0;
      display: grid;
      place-items: center;
      padding: 15px 52px 0px 52px;
      overflow: hidden;
  }

.hkk-photo {
      display: block;
      /* max-width: 100%; max-height: 100%; Stop de afbeelding van te stretchen */
	  width: 100%; height: 100%; /* Laat de afbeelding groter tonen dan max opgeslagen formaat */
      min-width: 0;
      min-height: 0;
      object-fit: contain;
      user-select: none;
	  border-radius: 9px;
  }
.hkk-photo[hidden] {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
      opacity: 0 !important;
      visibility: hidden !important;
  }
.hkk-empty {
      padding: 18px 22px;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.5);
      font-size: 15px;
      line-height: 1.45;
	  border: none;
}
.hkk-button {
      appearance: none;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: #fff;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: background 0.2s ease, opacity 0.2s ease;
  }

.hkk-button:hover,
.hkk-button:focus-visible {
      color: #c4a808;
      outline: none;
  }

.hkk-nav {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%; /* Elke knop beslaat nu exact de helft van het scherm */
      height: 100%;
      transform: none; /* Niet meer nodig aangezien de knop de volle hoogte heeft */
      z-index: 5; /* Ligt nu als beschermplaat over de foto */
      cursor: pointer;
      pointer-events: auto; /* Altijd klikbaar voor de bescherming */
  }

  /* De navigatie-vlakken zijn links en rechts gepositioneerd */
.hkk-prev { left: 0; }
.hkk-next { right: 0; }

  /* NIEUW: Dit stylt de zichtbare pijltjes binnenin de grote knoppen */
.hkk-nav span {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 40px;
      font-weight: 900;
      line-height: 1;
      color: #fff;      
      /* Begin onzichtbaar voor de mooie overgang */
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  /* Positioneer de pijltjes op hun originele plek aan de zijkanten */
.hkk-prev span { left: 14px; }
.hkk-next span { right: 14px; }

  /* Wanneer de knop de klasse 'is-active' krijgt, lichten we de SPAN (het pijltje) op */
.hkk-nav.is-active {
      opacity: 1;
  }
  .hkk-nav.is-active span {
      opacity: 1;
  }

.hkk-caption-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 0;
      padding: 8px 50px 27px 50px; 
      overflow: hidden;
      background: transparent;
      position: relative; 
  }
.hkk-caption {
      min-height: 38px;
      max-height: 96px;
      overflow: auto;
      padding: 0px 10%;
      color: #fff;
      font-size: 14px;
      line-height: 1.45;
      text-align: center;
	  letter-spacing: 1px;
  }

.hkk-strip {
      display: flex;
      gap: 8px;
      min-height: 101px;
      max-height: 101px;
      padding: 8px 10px 8px 10px;
      overflow-x: auto;
      overflow-y: hidden;
      /* background: rgba(16, 16, 16, 0.76); */
      -webkit-overflow-scrolling: touch;
  }

.hkk-viewer.is-thumbs-hidden .hkk-strip {
      min-height: 0;
      height: 0;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
      overflow: hidden;
  }

.hkk-thumb {
      flex: 0 0 85px;
      width: 85px;
      height: 85px;
      padding: 0;
      border: 3px solid transparent;
      border-radius: 7px;
      background: #111;
      cursor: pointer;
      overflow: hidden;
      opacity: 0.72;
  }

.hkk-thumb[aria-current="true"] {
      border-color: #c4a808;
      opacity: 1;
  }

.hkk-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
  }

/* 1. Basisinstellingen voor de toggle-knop met een transitie voor opacity */
.hkk-thumb-toggle {
      width: 85px;
      position: fixed;
      top: 25px; 
      left: 0px; /* Begin strak op de rand, geen negatieve waarde. Daarna tranform voor Firefox specifiek. */
      transform: translateX(-14px);
      opacity: 1;
      transition: opacity 0.4s ease, transform 0.4s ease;
      z-index: 999;
}
  
.hkk-thumb-toggle svg {
      width: 100%; 
      height: 100%;
      display: block;
  }
/* 2. Basisinstellingen voor de SVG-vormpjes met een transitie voor de fill (kleur) */
.hkk-thumb-svg {
    fill: #fff; /* Begin-kleur */
    transition: fill 0.4s ease; /* Zorgt voor het langzaam verkleuren */
}
/* 3. Wanneer de knop geactiveerd is (aria-pressed="true") */
.hkk-thumb-toggle[aria-pressed="true"] {
    opacity: 0.5; /* Maakt de hele knop vager */
}
.hkk-thumb-toggle[aria-pressed="true"] .hkk-thumb-svg {
    fill: #666; /* Verandert vloeiend de kleur van de 3 kleine vierkantjes */
}


.hkk-counter {
      position: absolute;
      right: 15px;  /* Matcht de padding-right van de .hkk-caption-row */
      bottom: 7px;  /* Plakt hem strak tegen de onderkant van de rij */      
      color: #666;
      font-size: 13px;
      font-family: sans-serif;
      user-select: none;
  }
.hkk-scale-indicator {
      position: absolute;
      top: 5px;
      right: 5px;
      z-index: 10;
      padding: 4px 8px;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.3);
      font-family: sans-serif;
      font-size: 10px;
      font-weight: bold;
      user-select: none;
      cursor: pointer; 
      transition: background 0.2s ease, transform 0.1s ease;
  }

  /* Subtiel effect als je er met de muis boven zweeft */
  .hkk-scale-indicator:hover {
      background: rgba(0, 0, 0, 0.95);
  }
  .hkk-scale-indicator:active {
      transform: scale(0.95);
  }
/* Groen voor 1% t/m 100% (binnen originele kwaliteit) */
  .hkk-scale-indicator.is-safe {
      color: #2ecc71 !important;
  }

  /* Rood voor 101% en hoger (kwaliteitsverlies door upscaling) */
  .hkk-scale-indicator.is-stretched {
      color: #e74c3c !important;
  }
  /* NIEUW: Deze CSS-klasse dwingt de foto naar exact 100% van zijn eigen pixels */
  .hkk-photo.is-forced-pixel-perfect {
      width: auto !important;
      height: auto !important;
      max-width: none !important;
      max-height: none !important;
  }

@media (max-width: 720px) {
.hkk-stage {
          padding: 50px 12px 0px;
      }

.hkk-nav {
          top: auto;
          bottom: 18px;
          width: 42px;
          height: 42px;
          transform: none;
          font-size: 30px;
      }
.hkk-thumb-toggle {
		  display: none;
		  visibility: hidden;
	  }
.hkk-prev {
          left: 12px;
      }

.hkk-next {
          right: 12px;
      }
.hkk-caption-row {
          position: relative; /* Houd het anker ook op mobiel intact */
          grid-template-columns: minmax(0, 1fr) 72px;
          gap: 8px;
          padding: 0px 0px 10px 0px; /* Extra padding aan de onderkant voor de teller */
      }
.hkk-counter {
          right: 8px; /* Mobiele uitlijning strak rechts */
          bottom: 4px; /* Iets omhoog zodat hij netjes onder de toggle-knop zweeft */
		  display: none;
		  visibility: hidden;
      }
.hkk-caption {
          max-height: 98px;
          font-size: 13px;
      }
.hkk-strip {
          min-height: 99px;
          max-height: 99px;
          padding: 7px 8px;
      }
#title {
          display: none;
      }
  }