:root {
      --font-body: 'Inter', sans-serif;
      --font-title: 'Playfair Display', serif;
      --color-bg: #fafafa;
      --color-text: #222;
      --color-muted: #666;
      --color-accent: #4b5563;
    }

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

    body {
      font-family: var(--font-body);
      background: var(--color-bg);
      color: var(--color-text);
      line-height: 1.7;
    }


    /* ------------------ HEADER ------------------ */
    

    header::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(255,255,255,0.65) 40%, #fafafa 100%);
    }

    .project-title {
      position: relative;
      z-index: 2;
      font-family: var(--font-title);
      font-size: 44px;
      text-align: left;
      color: #111;
      padding: 0 20px;
    }

    .container {
      max-width: 80%;
      margin: 0 auto;
      padding: 30px 24px;
    }

    .description {
      font-size: 18px;
      margin-bottom: 30px;
      color: var(--color-muted);
      text-align: left;
    }

    .narrative-block {
  overflow: hidden; /* ⬅️ Dodajemy */
}

.narrative-block img {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  transition: transform 0.4s ease; /* ⬅️ Dodajemy */
  display: block; /* ⬅️ Dodajemy */
}

.narrative-block img:hover {
  transform: scale(1.05); /* ⬅️ Dodajemy */
  cursor: zoom-in;        /* ⬅️ Dodajemy */
}

    .narrative-block p {
      font-size: 17px;
      color: var(--color-muted);
      line-height: 1.65;
    }

    .quote {
      font-style: italic;
      font-size: 20px;
      text-align: center;
      color: var(--color-accent);
      margin: 60px 0;
      line-height: 1.5;
    }

    footer {
      text-align: center;
      font-size: 14px;
      color: #aaa;
      margin: 60px 0 30px;
    }

    @media (max-width: 600px) {
      .project-title {
        font-size: 30px;
      }

      .description {
        font-size: 16px;
      }

      .narrative-block p {
        font-size: 15px;
      }

      .quote {
        font-size: 18px;
      }
    }



    /* LIGHTBOX: kontener pełnoekranowy */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* LIGHTBOX: widoczne zdjęcie */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border-radius: 8px;
  cursor: zoom-out;
}



/* --- UKŁAD DWUKOLUMNOWY I SIDEBAR --- */
.layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 110px;
  justify-content: left;
  align-items: start;
  margin-bottom: 30px;
  margin-top: 100px;

  position: relative;        /* potrzebne dla ::before i ::after */
  padding: 40px 0;           /* odstęp od linii, żeby nie nachodziła na treść */
}

.layout-grid::before,
.layout-grid::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;               /* grubość linii */
  background-color: #000;    /* kolor linii */
}

.layout-grid::before {
  top: 0;                    /* linia na górze */
}

.layout-grid::after {
  bottom: 0;                 /* linia na dole */
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.layout-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.layout-grid > div:first-child > * {
  max-width: 100%;
}

.layout-grid[data-aos]::before,
.layout-grid[data-aos]::after {
  width: 0;
  transition: width 1s ease;
}

.layout-grid[data-aos].aos-animate::before,
.layout-grid[data-aos].aos-animate::after {
  width: 60%;
}

.sidebar{
 font-family: var(--font-title);
 font-size:16px;
 align-items: left; 

}
.sidebar ul {
  list-style: none;
  padding-left: 0;
  align-items: right;
}
.sidebar li {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 50px;
  align-items: right;
  justify-content: start;
  text-align: left;
  margin-bottom: 14px;
}
.sidebar h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--font-title);
}


/* --- GALERIA REALIZACJI --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.gallery img:hover {
  transform: scale(1.04);
}

/* --- NAGŁÓWKI SEKCJI --- */
.section-heading {
  font-family: var(--font-title);
  font-size: 28px;
  color: #1c1c1c;
  margin: 30px 0 20px;
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
}

/* --- jakies znanikanie przy przewijaniu --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- slider do zdjec realizacji--- */

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
  height: 400px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 8px; /* odstęp między zdjęciami */
  padding-left: 10px;
  height: 400px;
}

.slider-track img {
  width: 70%-100%; /* widać 1,5 zdjęcia */
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 24px;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 6px;
  color: #333;
}

.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}






@media (max-width: 600px) {

  .container {
    max-width: 100%;    /* zajmuje prawie całą szerokość ekranu */
    margin: 0;
    padding: 5px 5px; /* mniejsze marginesy */
  }

  header {
    height: 40vh; /* mniejszy nagłówek na telefonie */
  }

  .layout-grid {
   grid-template-columns: 1fr; /* 1 kolumna zamiast 2 */
    gap: 15px;                  /* mniejszy odstęp między treścią a sidebar */
    padding: 20px 10px;
  }

  .sidebar {
    margin-top: 20px; /* mniej miejsca nad sidebar */
    font-size: 0.8rem;
    color: #aaa196;
  }


  .narrative-block {
    margin-bottom: 15px; /* mniejsze odstępy między sekcjami */
  }

.narrative-block img {
    margin-bottom: 12px; /* zamiast 24px */
  }

  .narrative-block p {
    font-size: 15px;
  }


  .slider-btn {
    font-size: 20px;
    padding: 6px 10px;
  }

.realizacja-slider-section {
  margin: 30px auto;
}


.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dwa obrazki w rzędzie */
  gap: 10px; /* odstęp między obrazkami */
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}

.gallery-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* dwa zdjęcia w rzędzie */
  gap: 10px;
  margin-top: 20px;
}

.gallery-2x2 img {
  width: 100%;
  height: 600px;           /* jednakowa wysokość */
  object-fit: cover;       /* przycięcie proporcjonalne */
  object-position: center;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-2x2 img:hover {
  transform: scale(1.05);
}

.gallery {
    grid-template-columns: 1fr 1fr; /* nadal 2 kolumny */
    gap: 8px;                      /* mniejsze odstępy */
    padding: 5px;                   /* BARDZO ważne */
  }

  .project {
    aspect-ratio: 4 / 3;            /* SZERSZE kafelki */
  }

  .project img {
    object-fit: cover;
  }

  .project .overlay {
    font-size: 11px;                /* mniejszy tekst */
    padding: 6px 8px;
    line-height: 1.3;
  }

.filter-bar {
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .filter-bar button {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap; /* nie łamie tekstu */
  }

  

}