* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url("../images/achtergrondfoto.jpg") no-repeat center center/cover;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  
}

.tape-terug {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 200px; /* pas aan naar jouw afbeelding */
  z-index: 10;
  transition: transform 0.3s ease;
}

.tape-terug:hover {
  transform: scale(1.08);
}

/* Sectie 1 - 3 afbeeldingen naast elkaar */
.top-gallery { 
  margin-top: -200px; /* schuif omhoog */
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  transform: scale(0.4);
}

.top-img { 
  width: 800px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.top-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.top-img:hover {
  transform: scale(1.03);
}

top
/* Sectie 2 - Tekstblok */
.project-description {
  margin-top: -200px; /* schuif omhoog */  
  max-width: 100px;
  margin: 10px auto 0;
  padding: 10px;
}

.project-description h2 {
  font-size: 2rem;
  margin-top: -300px;
  margin-bottom: 10px;
margin-left: 380px;
  text-align: left;
}
.project-description p {
  font-size: 1rem;
  margin-top: -10px;
  max-width: 600px;
  margin-left: 700px;
  text-align: left;
}
.project-details {
  font-size: 1rem;
  margin-top: -120px;
  max-width: 600px;
  margin-left: 400px;
  text-align: left;
}

.project-details li {
  margin-bottom: 5px;
}

/* Sectie 3 - Social media posts */
.social-posts {   
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.post-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Lightbox styling */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;           /* ⬅️ Maakt scrollen mogelijk */
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* Bovenaan beginnen zodat niks afgesneden wordt */
  justify-content: flex-start;
  padding: 1rem;   
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.close-button {
  position: absolute;
  top: -30px;
  right: -30px;
  background: transparent;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* werk 2 */

.phone-videos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;

}

.phone-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* max 4 naast elkaar */
  gap: 20px;
  margin-bottom: 40px;
}

.phone {
  background: #000;
  border-radius: 30px;
  padding: 15px;
  aspect-ratio: 9/19.5; /* telefoonvorm */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.phone video {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  cursor: pointer;
}

.phone-text {
 margin-top: 100px;
margin-bottom: 50px;
}


.phone-text h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: left;
  margin-left: 600px;
}


.phone-text p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 1000px;
  margin-left: 600px;
}

.tekst-details {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
  margin-left: 400px;
  text-align: left;
}
.text-details {
  font-size: 1rem;
  margin-top: -120px;
  max-width: 600px;
  margin-left: 80px;
  text-align: left;
}

.small-phone{
  display: flex;
  gap: 10px;
  padding: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.phone{
  width: 250px;   /* standaard telefoonbreedte */
}

/* Voor de kleinere telefoons */
.small-phone .phone img {
  width: 250px;   /* iets kleiner */
  border-radius: 15px;
}

/* werk 3 */

.centered-video {
  max-width: 900px;       /* video iets kleiner dan volledige breedte */
  margin: 80px auto 20px; /* ruimte boven en onder, gecentreerd */
  padding: 0 15px;        /* kleine zijmarge voor mobiel */
}

.centered-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

.text3-description {
  max-width: 600px;       /* zelfde breedte als video */
  margin: 0 auto;
  padding: 0 15px;
  margin-left: 700px;

}

.project3-details{
  margin-left: -270px;
  margin-top: -130px;
}