/* ============================ VARIABLES ========================== */
:root {
  --hue: 0;
  --text-color: hsl(var(--hue), 100%, 40%);
  --text-color2: hsl(calc(var(--hue) + 120), 100%, 40%);
  --text-color3: hsl(calc(var(--hue) + 240), 100%, 40%);
  --text-color-black: #000000;
  --background-color: #ffffff;
  --text-color-red: #ff0000;
  --gapCMYK: 200px;
  --cyan-line: 2px;
  --magenta-line: 2px;
  --yellow-line: 2px;
  margin-left: 50px;
  margin-right: 50px;
}

/* ========================== BASE STYLES ========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
  font-style: normal;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.1;
  font-size: 15px;
  transition: filter 0.2s linear, background-color 0.2s linear;
  max-width: 100%;
  overflow-x: hidden;
}
main, footer, .projects-container, .project1, .project2, .project3, .project4, .project5 {
  position: relative;  /* stacking context */
  z-index: 1;          /* above background, below nav */
}

/* ======================== NAVIGATION BAR ========================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 1);
  top: 0px;
  width: 100%;
  height: 70px;
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

nav .left a {
  color: rgb(0, 0, 0);
  font-size: 35px;
  text-decoration: none;
  margin-left: 70px;
}

nav .left a:hover { color: var(--text-color-red); }

nav .right a {
  color: var(--text-color-black);
  font-size: 35px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 70px;
}

nav .right a:hover { color: var(--text-color-red); }

nav .right a.active,
nav .left a.active {
  font-weight: bold;
  text-decoration: underline;
}


/*      RESPONSIVE NAV      */


@media (max-width: 800px) {
  nav {
    height: 60px;
  }

  nav .left a,
  nav .right a {
    font-size: 28px;
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 500px) {
  nav {
    height: 55px;
  }

  nav .left a,
  nav .right a {
    font-size: 22px;
    margin-left: 20px;
    margin-right: 20px;
  }
}
/* ======================== HOME PAGE ============================ */

/* MAIN SECTIONS */
.sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD STYLE */
.section-card {
  background-color: #fff;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* makes it obvious the whole card is clickable */
  
  /* Default top offset (can be overridden per card) */
  margin-top: var(--card-top-offset, 0);
}

.section-card img {
  height: 400px;          /* set the same height for all images */
  width: 100%;            /* make them fill the container width */
  object-fit: cover;      /* crop/scale images to fill height nicely */
  display: block;         /* removes bottom whitespace under images */
}


.section-card h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 400;
  color: #000000;
}
.section-card a {
  text-decoration: none; /* removes underline from all links inside .section-card */
  color: inherit;        /* keeps the text color the same as the surrounding text */
}

.section-card p {
  padding: 0 1rem 1.5rem 1rem;
  color: #000000;
  font-size: 0.95rem;
}

/* CARD HOVER EFFECT */
.section-card h2,
.section-card p {
  transition: color 0.3s;
}

.section-card:hover h2,
.section-card:hover p {
  color: red; /* or var(--text-color-red) */
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
  .sections {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 768px) {
  .sections {
    grid-template-columns: 1fr; /* stack on mobile */
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  /* Optional: remove offsets on mobile for stacked layout */
  .section-card {
    margin-top: 0 !important;
  }
}




/* ========================== FOOTER ============================== */
footer {
  position: relative; 
  left: 0;
  width: 100vw; 
  text-align: center;
  padding: 50px 20px 20px; 
  font-size: 0.9rem;
  color: #000;
  background-color: var(--background-color);
  z-index: 1;
  margin-top: 100px;
  box-sizing: border-box;
    margin-left: calc(50% - 50vw);
}


/* ========================= ABOUT PAGE =========================== */
.about-section {
  max-width: 1000px;
  margin: 0 auto;
  color: #000;
  background-color: #fff;
  margin-bottom: 100px;
  padding-left: 10px;
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap; /* stacks on smaller screens */
  margin-top: 30px;
}

.about-text {
  flex: 1 1 400px; /* takes remaining space */
}
.about-header {
  font-size: 28px;
  font-weight: 400;
  margin-top: 20px;
}

.about-image {
  flex: 1 1 300px;
  text-align: right; /* aligns image to the right */
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* Contact Info Styling */
.contact-info {
  font-size: 1rem;
  color: #333;
  max-width: 300px;
  line-height: 1.8;
  margin-top: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: red;
}

/* Education Section Styling */
.education-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: #000000;
  background-color: #ffffff;
}

.education-header {
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
  color: #222;
}

.education-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  padding-left: 20px;
  position: relative;
}

.education-date {
  font-size: 16px;
  color: #3b3b3b;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.education-degree {
  font-size: 1rem;
  line-height: 1.4;
}


/* ==================== GRID CMYK BACKGROUND ===================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;  /* behind all content */
  pointer-events: none;
}
.grid {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  will-change: background-position, background-image, opacity;
  transition: background-position 0.05s linear, opacity 0.1s linear;
}
.cyan {
  background-image:
    linear-gradient(to right, cyan var(--cyan-line), transparent 1px),
    linear-gradient(to bottom, cyan var(--cyan-line), transparent 1px);
  background-size: 20px 100px;
  opacity: 0.1;
}
.magenta {
  background-image:
    linear-gradient(to right, magenta var(--magenta-line), transparent 1px),
    linear-gradient(to bottom, magenta var(--magenta-line), transparent 1px);
  background-size: 40px 100px;
  opacity: 0.1;
}
.yellow {
  background-image:
    linear-gradient(to right, yellow var(--yellow-line), transparent 1px),
    linear-gradient(to bottom, yellow var(--yellow-line), transparent 1px);
  background-size: 30px 100px;
  opacity: 0.1;
}

/* =================== PROJECTS CONTENT PAGE ======================= */
.projects-container {
  --ruimteboven: 100px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  z-index: 10;
}
.project1, .project2, .project3, .project4, .project5, .project6 {
  margin-top: var(--ruimteboven);
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 20px;
  background-color: rgb(255, 255, 255);
}
.projects-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: -5px;
}
.project1 { grid-area: 1/1/3/7; }
.project2 { grid-area: 3/4/5/13; }
.project3 { grid-area: 5/2/9/8; }
.project4 { grid-area: 9/4/11/9; }
.project5 { grid-area: 11/7/12/11; }
.project6 { grid-area: 12/4/13/8; }

.projectpage-title {
  display: flex;
}

.project-name {
  font-size: 35px;
  color: #000000;
  padding: 5px 0;
}

.project-date {
  font-size: 16px;
  color: #000000;
  padding: 5px;
  margin-left: auto;     /* pushes date container to the right edge */
  text-align: right;     /* aligns every line of text inside to the right edge */
}



.projects-container .project1 .project-title { justify-content: flex-start; display: flex; }
.projects-container .project3 .project-title { justify-content: flex-start; display: flex; }
.projects-container .project5 .project-title { justify-content: flex-start; display: flex; }
.projects-container .project2 .project-title { justify-content: flex-start; display: flex; }
.projects-container .project4 .project-title { justify-content: flex-start; display: flex; }

/* ===================== DAYBED CONTENT PAGE ===================== */

.first-section-daybed {
  margin-top: 50px;
  display: flex;
  justify-content: flex-start; 
  padding-left: 10px;                  
}
.first-section-daybed img {
  width: 1000px;
  align-self: end;               
}

.project-image-daybed {
  width: 100%;
  height: 100%;        
  object-fit: cover;      
  margin: 0;                  
  display: block;              
}

.first-section-daybed .project-info {
  display: grid;
  grid-template-rows: 280px 1fr 1fr ;
  gap: 20px;
  max-width: 600px;
  margin-left: 10px;
  align-items: end;
  color: rgb(0, 0, 0);
}

.project-title-daybed {
  font-size: 35px;
  text-align: left;
  color: #000;
  background-color: rgb(255, 255, 255);
  margin-left: 10px;
}
.project-image-person {
  width: 80%;
  height: auto;
  object-fit: cover;
  margin-left: 10px;
  margin-top: 20px;
}
.process-container-daybed {
  display: flex;
  align-items: flex-start;
}
.process-text-daybed {
  margin-top: 10px;
  max-width: 400px;
  margin-left: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
/* ================= ROOM DIVIDER CONTENT PAGE =================== */

/* LARGE IMAGES SECTION             */
.roomdivider-large-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  margin-top: 50px;
  align-items: start;
  margin-bottom: 300px;
}

/* First large image spans 3 columns */
.process-image-roomdivider-large img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Second large image (the tall one) */
.process-image-roomdivider-large2 img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Text container next to images */
.roomdivider-large-text {
  color: #000;
  margin-top: 10px;
  max-width: 260px;
}
/* GENERAL PROCESS IMAGES           */

.process-image-roomdivider img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.process-image-roomdivider1 img {
  width: 100%;
  height: 422px;
  object-fit: cover;
}
.process-image-roomdivider2 img,
.process-image-roomdivider3 img,
.process-image-roomdivider4 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* PROCESS GRID                     */

.process-container-roomdivider {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  align-items: start;
}

/* Moodboard (big first image) */
.process-image-roomdivider1 {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
}

/* Lower 3 images */
.process-image-roomdivider2 {
  grid-column: 5/6;
  grid-row: 1;
}

.process-image-roomdivider3 {
  grid-column: 5/6;
  grid-row: 2;
}

.process-image-roomdivider4 {
  grid-column: 5/6;
  grid-row: 3;
}



/* ======================== LED LASER CONTENT PAGE ======================= */
/* first section */
.first-section {
  display: grid;
  grid-template-columns: 800px 1fr;
  align-items: end;
  justify-content: start;
  gap: 20px;
  margin-top: 50px;
  color: #000;
}
.second-section {
  display: grid;
  grid-template-columns: 800px 1fr;
  align-items: end;
  justify-content: start;
  gap: 20px;
  margin-top: 50px;
  color: #000;
}
.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-left: 10px;
}
.project-info {
  display: grid;
  gap: 20px;
  max-width: 600px;
}
.project-features {
  list-style-type: disc;
  padding-left: 0px;
  margin: 0;
  font-weight: 500;
  font-size: 20px;
}
.project-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #000;
}

.detail-header {
  margin-top: 50px;
  font-size: 35px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  padding: 30px;
  border-radius: 8px;
}
.process-container {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: flex-start;
}
.process-image1 img,
.process-image2 img,
.process-image3 img {
  max-height: 400px;
  padding: 10px;
}
.process-text {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.project-title {
  font-size: 35px;
  text-align: left;
  color: #000;
  background-color: rgb(255, 255, 255);
  padding: 5px;
  margin-left: 10px;
}

/* video */
.video-row {
  display: flex;
  justify-content: center; /* centers both videos */
  gap: 40px;               /* optional spacing */
}

.video-container {
  position: relative;
  width: 600px;            /* change if needed */
  padding-top: 25%;     /* 16:9 YouTube aspect ratio */
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

figcaption {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

/*======================= WASTEMAN CONTENT PAGE ====================*/
.video-wasteman {
  display: flex;
  justify-content: center; /* centers horizontally */
  width: 100%;
}

.video-container-wasteman {
  position: relative;
  width: 600px;           /* your chosen width */
  padding-top: 25%;    /* keeps 16:9 aspect ratio */
}

.project-video-wasteman {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}




/*======================= COEXIST CONTENT PAGE ====================*/
/* grid settings */
.coexist-container {
    --ruimteboven: 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
}
/* project box margin */
.coexist-project-title,
.coexist-project-summary,
.coexist-process-text,
.coexist2,
.coexist3,
.coexist4,
.coexist5,
.coexist6,
.coexist7 {
  margin-top: var(--ruimteboven);
  margin-left: 10px;
  margin-right: 10px;
}
.coexist3 img, .coexist4 img {
  gap: 20px;
  height: 200px
}

/* image size */
.coexist-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* item placement */
.coexist-project-title {
  grid-area: 1/1/2/13;
  justify-self: flex-start;
  color: #000;
  font-size: 35px;
  margin-top: 100px;
  margin-bottom: 10px;
}
.coexist1 {
  grid-area: 2/1/4/7;
  margin-left: 20px;
  margin-right: 20px;
}
.coexist-project-summary {
  grid-area: 2/7/4/11;
  justify-content: center;
  align-self: flex-end;
  color: #000;
}
.coexist2 {
  grid-area: 2/7/4/11;
  align-self: flex-start;
}
.coexist-process-header {
  grid-area: 4/1/5/13;
  justify-self: center;
  color: #000;
  font-size: 35px;
  margin-top: 100px;

}.coexist3 {
  grid-area: 5/1/7/7;
}
.coexist4 {
  grid-area: 5/7/7/13;
}
.coexist-process-text {
  grid-area: 7/1/8/7;
  color:#000;
  margin-top: 20px;
  margin-bottom: 200px;
}
.coexist5 {
  grid-area: 8/1/9/7;
}
.coexist6 {
  grid-area: 8/7/9/13;
}

.coexist6 img,
.coexist7 img {
  height: 400px
}
.coexist-video-header {
  grid-area: 9/3/10/11;
  justify-self: center;
  align-items: center;
  font-size: 35px;
  color: #000;
  margin-top: 200px;
  margin-bottom: 50px;
}
.coexist-video-container {
  grid-area: 10/2/12/12;
  justify-self: center;
  align-items: center;
  position: relative;
  width: 700px;
  padding-top: 35%; /* → auto height for iframe */
}
.coexist-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;   /* replaces auto height */
  border: none;
}


.Coexist-exhibitions-header {
  grid-area: 13/3/14/11;
  justify-self: center;
  align-items: center;
  font-size: 35px;
  color: #000;
  margin-top: 200px;
  margin-bottom: 50px;
}
/*mauritshuis*/
.Mauritshuis {
  grid-area: 15/1/16/4;
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
  margin-top: 20px;
  margin-bottom: 50px;
}
.Mauritshuis-Header {
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
}
.Mauritshuis-Caption {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Mauritshuis-Description {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Mauritshuis-Pictures1 {
  grid-area: 15/4/16/10;
  gap: 20px;
  display: flex;
  justify-self: flex-start;
  max-width: 350px;
  padding: 20px;
}

/*paris */
.Paris {
  grid-area: 17/3/18/7;
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
  margin-top: 20px;
  margin-bottom: 50px;
}
.Paris-Header {
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
}
.Paris-Caption {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Paris-Description {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Paris-Pictures1 {
  grid-area: 17/7/18/10;
  gap: 20px;
  display: flex;
  justify-self: flex-start;
  max-width: 300px;
  padding: 20px;
}

/*japan */
.Japan {
  grid-area: 19/2/20/5;
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
  margin-top: 20px;
  margin-bottom: 50px;
}
.Japan-Header {
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
}
.Japan-Caption {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Japan-Description {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.Japan-Pictures1 {
  grid-area: 19/5/20/10;
  gap: 20px;
  display: flex;
  justify-self: flex-start;
  max-width: 400px;
  padding: 20px;
}

/*ARS */
.ARS {
  grid-area: 21/1/22/4;
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
  margin-top: 20px;
  margin-bottom: 50px;
}
.ARS-Header {
  justify-self: flex-start;
  align-items: center;
  font-size: 20px;
  color: #000;
}
.ARS-Caption {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.ARS-Description {
  justify-self: flex-start;
  align-items: center;
  font-size: 15px;
  color: #000;
}
.ARS-Pictures1 {
  grid-area:21/4/22/10;
  gap: 20px;
  display: flex;
  justify-self: flex-start;
  max-width: 500px;
  padding: 20px;
}

/*bottom*/
.more-info {
  grid-area: 9/2/10/5;
  justify-self: flex-end;
  align-self: flex-end;
  color: #000;
}


/* ==================== ENDEAVOURS STRUCTURE ===================== */

.endeavours-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 0 60px 20px;
}

.endeavour-title {
  font-size: 35px;
  padding-bottom: 5px;
  padding-top: 5px;
  color: #000;
  background-color: #ffffff;
}

/* ==================== GALLERY GRID CONTROL ===================== */

.endeavour-gallery {
  display: grid;
  gap: 20px;
  width: 100%;
  grid-auto-rows: auto;
  background-color: #ffffff;
}

/* Column count per project */
.endeavour[data-cols="1"] .endeavour-gallery { grid-template-columns: repeat(1, 1fr); }
.endeavour[data-cols="2"] .endeavour-gallery { grid-template-columns: repeat(2, 1fr); }
.endeavour[data-cols="3"] .endeavour-gallery { grid-template-columns: repeat(3, 1fr); }
.endeavour[data-cols="4"] .endeavour-gallery { grid-template-columns: repeat(4, 1fr); }
.endeavour[data-cols="5"] .endeavour-gallery { grid-template-columns: repeat(5, 1fr); }
.endeavour[data-cols="6"] .endeavour-gallery { grid-template-columns: repeat(6, 1fr); }

/* Image span controls */
.endeavour-gallery img[data-colspan="1"] { grid-column: span 1; }
.endeavour-gallery img[data-colspan="2"] { grid-column: span 2; }
.endeavour-gallery img[data-colspan="3"] { grid-column: span 3; }
.endeavour-gallery img[data-colspan="4"] { grid-column: span 4; }
.endeavour-gallery img[data-colspan="5"] { grid-column: span 5; }
.endeavour-gallery img[data-colspan="6"] { grid-column: span 6; }

.endeavour-gallery img[data-rowspan="1"] { grid-row: span 1; }
.endeavour-gallery img[data-rowspan="2"] { grid-row: span 2; }
.endeavour-gallery img[data-rowspan="3"] { grid-row: span 3; }
.endeavour-gallery img[data-rowspan="4"] { grid-row: span 4; }

/* ==================== IMAGE STYLING ===================== */

.endeavour-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* grayscale effect */
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

/* Hover image becomes color */
.endeavour-gallery img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==================== RESPONSIVE ===================== */

@media (max-width: 800px) {
  .endeavour-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 180px;
  }
}

@media (max-width: 500px) {
  .endeavour-gallery {
    grid-template-columns: repeat(1, 1fr) !important;
    grid-auto-rows: 200px;
  }
}
/* ===================== MANUFACTURING PAGE CSS ===================== */
.intro-text-manufacturing {
  max-width: 450px;
  margin: 80px 0 0 140px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background-color: rgba(255, 255, 255, 1);
}

.manufacturing-header {
  font-size: 35px;
  text-align: left;
  color: #000;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: 400;
}

.manufacturing-subheader {
  font-size: 16px;
  text-align: left;
  color: #000;
  margin-top: 10px;
}

.timeline {
  width: 90%;
  margin: 20px auto;
  position: relative;
  padding: 20px 0;
  flex-wrap: wrap;
}

/* Timeline items */
.timeline-item {
  display: flex;
  align-items: end;
  margin: 0px 0 150px;
  width: 100%;
}

/* Default image grid */
.skill-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: row;
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
  width: 50%;
  box-sizing: border-box;
}

.skill-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Text block */
.skill-text {
  width: 40%;
  color: #000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* Title */
.skill-title {
  margin: 0 0 10px 0;
  font-size: 35px;
  font-weight: 400;
  color: #000;
  display: inline-block;
  width: auto;
  display: flex;
}

/* Paragraph */
.skill-description {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  width: auto;
}

.timeline-item.left {
  flex-direction: row;
}

.timeline-item.left .skill-text {
  align-items: flex-start;
  text-align: left;
  padding-left: 0px;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-item.right .skill-text {
  align-items: flex-end;
  text-align: right;
  padding-right: 0px;
}

/* Middle spacing */
.timeline-item.left .skill-images {
  padding: 10px;
  background-color: #ffffff;
}

.timeline-item.right .skill-images {
  padding: 10px;
  background-color: #ffffff;
  
}

.timeline-item.left .skill-text {
  padding-left: 20px;
  margin-right: 50px;

}

.timeline-item.right .skill-text {
  padding-right: 20px;
}

/* --- DIGITAL FABRICATION: FORCED 2×2 GRID --- */
.timeline-item.right.digital-fab .skill-images {
  display: grid;
  grid-template-columns: 1fr 1fr;  
  grid-template-rows: 1fr 1fr;     
  gap: 20px;
  width: 50%;
}

.timeline-item.right.digital-fab .skill-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
