/* ================================================================
   WINDOWS XP POPUP + FOTO-FEED
   Zelfstandig — raakt geen bestaande styles aan
   ================================================================ */

/* ── Windows XP Window ────────────────────────────────────── */
.w95popup {
  position: fixed;
  z-index: 9999;
  min-width: 280px;
  max-width: 340px;
  background: #ece9d8;
  border: 2px solid #0055ea;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.30), 0 1px 3px rgba(0,0,0,0.15);
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  user-select: none;
  will-change: transform, opacity;
  overflow: visible;
  transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg);
  transform-origin: 30% 70%;
}

/* Title bar — XP blue gradient */
.w95bar {
  background: linear-gradient(180deg, #0997ff 0%, #0160d8 30%, #0050bc 70%, #0040a0 100%);
  padding: 4px 5px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  cursor: grab;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}
.w95bar:active { cursor: grabbing; }
.w95title {
  flex: 1;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

/* Close button — XP red square with X */
.w95x {
  width: 21px; height: 21px; min-width: 21px;
  background: linear-gradient(180deg, #e87565 0%, #d04030 50%, #c02020 100%);
  border: 1px solid #933;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 2px rgba(0,0,0,0.2);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.w95x::before,
.w95x::after {
  content: '';
  position: absolute;
  width: 10px; height: 2.5px;
  background: #fff;
  border-radius: 1px;
  top: 50%; left: 50%;
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.3);
}
.w95x::before { transform: translate(-50%, -50%) rotate(45deg); }
.w95x::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.w95x:hover {
  background: linear-gradient(180deg, #ff9585 0%, #e04838 50%, #d02828 100%);
}
.w95x:active {
  background: linear-gradient(180deg, #b82018 0%, #a01818 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* Body — cream/beige like XP */
.w95body {
  padding: 22px 20px 18px;
  background: #f5f0e1;
  border-top: 1px solid #fff;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}
.w95q {
  font-size: 12px; color: #000;
  margin: 0 0 20px; text-align: center;
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
}
.w95btns {
  display: flex; justify-content: center; gap: 10px;
}

/* XP buttons */
.w95btn {
  min-width: 80px; height: 24px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #003c74;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 11px; color: #000;
  cursor: pointer; outline: none;
  user-select: none; white-space: nowrap;
}
.w95btn:hover {
  background: linear-gradient(180deg, #fff 0%, #ddd8c8 100%);
  border-color: #0055ea;
}
.w95btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
  border-color: #0055ea;
}
.w95btn:active {
  background: linear-gradient(180deg, #d8d4c4 0%, #c8c4b4 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}


/* ── Shake animatie ───────────────────────────────────────── */
@keyframes w95shake {
  0%, 100% { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(0); }
  10%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(-6px); }
  20%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(5px); }
  30%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(-4px); }
  40%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(4px); }
  50%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(-3px); }
  60%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(2px); }
  70%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(-1px); }
  80%  { transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg) translateX(1px); }
}
.w95shake {
  animation: w95shake 0.5s ease-in-out;
}

/* ── Rechthoek rechtsonder (XP style) ─────────────────── */
#w95rect {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 9998;
  width: 190px;
  background: #ece9d8;
  border: 2px solid #0055ea;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  transform-origin: bottom right;
  user-select: none;
  overflow: hidden;
  transform: perspective(180px) rotateY(-7deg) rotateX(4deg) skewX(-4deg) skewY(1.5deg);
}
#w95rpanel {
  padding: 12px;
  background: #f5f0e1;
  border-bottom: 1px solid #c8c4b0;
}
.w95rq {
  font-size: 11px; font-weight: bold; color: #000;
  margin: 0 0 10px;
}
.w95rbtns { display: flex; flex-direction: column; gap: 5px; }
.w95rbtns .w95btn { width: 100%; min-width: auto; text-align: center; }

#w95rbar {
  display: flex; align-items: center;
  padding: 6px 10px;
  min-height: 36px;
  cursor: pointer; gap: 6px;
  background: linear-gradient(180deg, #0997ff 0%, #0060d8 100%);
  border-radius: 0 0 4px 4px;
}
#w95rlabel {
  flex: 1; font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  font-size: 11px;
}
#w95rtoggle {
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: #fff;
  transition: transform 150ms ease;
  display: flex; align-items: center; justify-content: center;
}

/* Mobiel: touch target minstens 44px */
@media (hover: none), (pointer: coarse) {
  #w95rbar { min-height: 44px; }
}

/* ── Foto-feed overlay ──────────────────────────────────── */
#w95feed {
  position: fixed; inset: 0;
  z-index: 10000;
  background: #f5f4f0;
  display: flex; flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Floating controls — geen balk, alleen knoppen ─────── */
#w95fcontrols {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  z-index: 10;
  pointer-events: none;
}
#w95fcontrols > * { pointer-events: auto; }

/* Terug-knop (←) — identiek aan #terug-knop in main.css */
#w95fback {
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.07);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(20,20,20,0.65);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
}
#w95fback:hover {
  background: rgba(0,0,0,0.1);
  color: rgba(20,20,20,0.9);
}

/* Sort pill-knoppen — past bij site-stijl */
#w95fsorts {
  display: flex; gap: 2px;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 20px;
  padding: 3px;
}
.w95fsort {
  background: none; border: none; cursor: pointer;
  font-family: 'Cormorant Garant', 'Palatino Linotype', serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.35);
  padding: 6px 14px;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.w95fsort:hover { color: rgba(20,20,20,0.65); }
.w95fsort.actief {
  color: rgba(20,20,20,0.82);
  background: rgba(0,0,0,0.07);
}

/* ── Feed slideshow (verticaal, 1 foto tegelijk) ──────── */
#w95fview {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
}
/* Desktop: zoom-cursor op feed-foto's (consistent met #foto-gebied) */
@media (hover: hover) and (pointer: fine) {
  #w95fview { cursor: zoom-in; }
}

/* Slides */
.w95slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 28px 84px;  /* top: controls, bottom: preview strip */
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.w95slide.w95active {
  opacity: 1;
  pointer-events: auto;
}

/* Content wrapper — krimpt mee met foto zodat caption uitlijnt */
.w95slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

/* Hoofdfoto */
.w95slide img.w95fmain {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1200px);
  max-height: calc(100vh - 210px);
  border-radius: 1px;
  transform-origin: center center;
  will-change: transform;
}

/* Caption — links uitgelijnd onder de foto, past bij .land-naam stijl */
.w95slide .w95fcap {
  padding: 11px 2px 0;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.45);
  font-family: 'Cormorant Garant', 'Palatino Linotype', serif;
  font-weight: 300;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Preview strip onderaan — breedte volgt foto (via JS) ─ */
.w95slide-preview.w95next {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;           /* fallback, JS overschrijft met fotobreedte */
  max-width: 100%;
  height: 44px;
  object-fit: cover;
  object-position: center 35%;
  filter: blur(4px) brightness(1.06) saturate(0.4) opacity(0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, width 0.4s ease;
  z-index: 1;
  border-radius: 2px 2px 0 0;
}

/* Zachte gradient-overgang boven de preview strip */
#w95fview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, #f5f4f0 0%, transparent 40%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Navigatiepijlen — identiek aan .pijl in main.css ── */
.w95pijl {
  position: absolute;
  right: 20px;
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  transition: background 0.25s;
}
.w95pijl:hover { background: rgba(0,0,0,0.1); }
.w95pijl .chevron {
  width: 19px; height: 19px;
  stroke: rgba(20,20,20,0.45);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
  position: relative;
  z-index: 1;
}
.w95pijl:hover .chevron { stroke: rgba(20,20,20,0.82); }

/* Progress-ring SVG — identiek aan .progress-ring in main.css */
.w95progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
  overflow: visible;
}

/* Vlak bij elkaar, verticaal gecentreerd naast de foto */
#w95pijl-boven { top: calc(50% - 49px); }
#w95pijl-onder { top: calc(50% + 3px); }

/* Feed empty state */
.w95fempty {
  padding: 60px 24px;
  text-align: center;
  color: rgba(20,20,20,0.4);
  font-size: 0.85rem;
  font-family: 'Cormorant Garant', serif;
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.w95fempty code {
  font-size: 0.75rem;
  background: rgba(20,20,20,0.06);
  padding: 2px 6px; border-radius: 2px;
}

/* ── Resume-knop rechtsonder — "More"-bar, doorzichtig grijs ─────── */
#w95resume {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 9998;
  width: 120px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(20,20,20,0.08);
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center;
  padding: 8px 12px;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s;
  font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  color: rgba(20,20,20,0.25);
}
#w95resume:hover {
  background: rgba(0,0,0,0.08);
  color: rgba(20,20,20,0.5);
}
#w95resume-label {
  flex: 1;
  font-weight: bold;
  font-size: 11px;
}
#w95resume svg {
  flex-shrink: 0;
  transform: rotate(180deg);
}

/* ── Mobiel: hoek-knopjes als klein blokje met alleen het dakje ── */
@media (max-width: 640px) {
  #w95rect {
    width: auto;
    bottom: 12px; right: 12px;
  }
  #w95rlabel { display: none; }
  #w95rbar { padding: 6px 8px; }
  #w95resume {
    width: auto;
    padding: 6px 8px;
    bottom: 12px; right: 12px;
  }
  #w95resume-label { display: none; }
}

/* ── Mobiel feed ──────────────────────────────────────────── */
@media (max-width: 640px) {
  #w95fcontrols { padding: 12px 14px; }
  /* 7. Strakke uitlijning: foto + caption centraal */
  .w95slide { padding: 48px 10px 10px; }
  .w95slide-content { align-items: center; }
  .w95slide .w95fcap { text-align: center; }
  .w95slide img.w95fmain { max-width: 96vw; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); }
  .w95fsort { font-size: 0.52rem; padding: 5px 11px; letter-spacing: 0.2em; }
}
@media (hover: none), (pointer: coarse) {
  /* 5. Pijltjes verbergen op mobiel */
  .w95pijl { display: none !important; }
  /* 6. Terug-knop verbergen (browser back i.p.v.) */
  #w95fback { display: none !important; }
  /* 4. Geen voorvertoning op mobiel */
  .w95slide-preview.w95next { display: none !important; }
  #w95fview::after { display: none; }
}

/* ── Swipe-hint overlay: standaard verborgen (desktop) ── */
#w95swipe-hint { display: none; }

/* Alleen tonen op mobiel */
@media (hover: none), (pointer: coarse) {
  #w95swipe-hint {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: rgba(0,0,0,0.18);
    opacity: 1;
    transition: opacity 0.45s ease;
  }
  #w95swipe-hint.verborgen {
    opacity: 0;
  }
  #w95swipe-hint .hint-pijl {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #w95swipe-hint .hint-pijl svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  }
  #w95swipe-hint .hint-pijl.omhoog svg {
    animation: hintBounceUp 1.4s ease-in-out infinite;
  }
  #w95swipe-hint .hint-pijl.omlaag svg {
    animation: hintBounceDown 1.4s ease-in-out infinite;
  }
}
@keyframes hintBounceUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes hintBounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(14px); }
}
