/* ========================================
   PROJECTEN
======================================== */

/* Body en pagina setup */
body.projecten-page { 
  font-family: 'Rajdhani', sans-serif; 
  background-color: var(--background); 
  margin: 0; 
  padding: 0; 
  color: #333;
  /* reserveer ruimte voor header + safe-area inset */
  padding-top: calc(130px + env(safe-area-inset-top, 0px));
  /* Behoud flexbox layout van global.css */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.projecten-page main {
  flex: 1;
}

/* Intro sectie */
.projecten-intro { 
  text-align: center; 
  margin-bottom: 2rem; 
  max-width: 1200px; 
  margin-left: auto; 
  margin-right: auto; 
}

.projecten-intro h1 { 
  font-size: 2.5rem; 
  margin-bottom: 0.25rem; 
}

.projecten-intro p { 
  font-size: 1rem;
}

/* Grid layout - 3 kolommen als standaard */
.projecten-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; 
  padding: 0 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-kaart { 
  background: #fff; 
  border-radius: 10px; 
  overflow: hidden; 
  box-shadow: 0 8px 30px rgba(0,0,0,0.12); 
  transition: transform 0.28s, box-shadow 0.28s; 
  display: flex; 
  flex-direction: column;
  height: 100%;
}
.project-kaart:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.14); }
.project-kaart img { width: 100%; height: 220px; object-fit: cover; display: block; }
.project-info { padding: 1.5rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.project-info h2 { font-size: 1.5rem; margin: 0 0 0.8rem; color: var(--primary); }
.project-info p { color: #555; font-size: 0.95rem; line-height: 1.6; }
/* Lightbox */
.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; z-index: 9999; }
.lightbox-content { background: #fff; padding: 1rem; border-radius: 8px; max-width: 90%; max-height: 90%; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 100%; max-height: 60vh; margin-bottom: 1rem; border-radius: 4px; }
.lightbox-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lightbox-thumb { width: 80px; height: 60px; object-fit: cover; cursor: pointer; border-radius: 4px; border: 2px solid transparent; transition: border 0.2s; }
.lightbox-thumb:hover { border-color: #999; }
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; }

/* Responsive breakpoints */

/* Mobiel - 1 kolom */
@media (max-width: 768px) { 
  .projecten-wrapper { padding: 7rem 1rem 3rem; } 
  .projecten-intro h1 { font-size: 1.8rem; } 
  .projecten-intro p { font-size: 0.95rem; } 
  .projecten-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
  } 
  .project-kaart img { height: 200px; } 
  .project-info { padding: 1.25rem; } 
  .project-info h2 { font-size: 1.3rem; } 
  .project-info p { font-size: 0.9rem; } 
  .lightbox-content { max-width: 95%; padding: 0.5rem; } 
  .lightbox-thumb { width: 60px; height: 45px; } 
  .close-lightbox { top: 10px; right: 15px; font-size: 2rem; } 
}

/* Tablet - 2 kolommen */
@media (min-width: 769px) and (max-width: 1024px) { 
  .projecten-wrapper { padding: 7.5rem 1.5rem 4rem; } 
  .projecten-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.8rem; 
  } 
  .project-kaart img { height: 200px; }
  .project-info h2 { font-size: 1.4rem; }
}

/* Laptop - 3 kolommen */
@media (min-width: 1025px) and (max-width: 1399px) { 
  .projecten-grid { 
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  } 
}

/* Desktop groot - 3 kolommen */
@media (min-width: 1400px) and (max-width: 1799px) { 
  .projecten-wrapper { 
    max-width: 1400px; 
    padding: 8.5rem 2rem 5rem; 
  } 
  .projecten-intro h1 { font-size: 2.8rem; } 
  .projecten-intro p { font-size: 1.2rem; } 
  .projecten-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem;
    max-width: 1600px;
  } 
  .project-kaart img { height: 240px; } 
  .project-info { padding: 1.75rem; } 
  .project-info h2 { font-size: 1.6rem; } 
  .project-info p { font-size: 1rem; } 
}

/* Extra groot scherm (TV) - 3 kolommen met meer ruimte */
@media (min-width: 1800px) { 
  .projecten-wrapper { 
    max-width: 1800px; 
    padding: 9rem 3rem 6rem; 
  } 
  .projecten-intro h1 { font-size: 3.2rem; } 
  .projecten-intro p { font-size: 1.3rem; } 
  .projecten-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3.5rem;
    max-width: 1800px; 
  } 
  .project-kaart img { height: 260px; } 
  .project-info { padding: 2rem; } 
  .project-info h2 { font-size: 1.7rem; } 
  .project-info p { font-size: 1.05rem; } 
}

