/* =====================
   OVERLAY
===================== */
.project-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.project-overlay.active {
  display: flex;
}

/* =====================
   FULLSCREEN PROJECT OVERLAY
===================== */
.overlay-content {
  width: 100vw;
  height: 100vh;
  background: #000;
  position: relative;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
}

/* =====================
   TITEL
===================== */
.overlay-title {
  color: #fff;
  text-align: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* =====================
   SLUITKNOP
===================== */
.overlay-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =====================
   CAROUSEL
===================== */
.overlay-carousel {
  overflow: hidden;
  width: 80vw;
  max-width: 900px;
  margin: auto;
}

.overlay-track {
  display: flex;
  transition: transform 0.4s ease;
}

.overlay-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-slide img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

/* =====================
   PIJLTJES
===================== */
.overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 99999;
  pointer-events: auto;
}

.overlay-nav.prev {
  left: -60px;
}

.overlay-nav.next {
  right: -60px;
}

.overlay-nav:hover {
  background: var(--secondary);
}

/* =====================
   MOBIEL
===================== */
@media (max-width: 768px) {

  .overlay-content {
    padding: 20px;
  }

  .overlay-title {
    font-size: 18px;
  }

  .overlay-carousel {
    width: 90vw;
  }

  .overlay-nav.prev {
    left: 10px;
  }

  .overlay-nav.next {
    right: 10px;
  }

  .overlay-slide img {
    height: 300px;
  }
}
