/* ============================
   PROJECT VIEW PAGE STYLES
   ============================ */

.project-container {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0f1724;
}

.project-header {
  margin-bottom: 24px;
}

.project-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.project-meta {
  color: #6b7280;
  font-size: 0.95rem;
}

/* główne zdjęcie projektu */
.project-main-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #f5f7fb;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  margin: 24px 0 32px;
}

/* content: opis + kolumna boczna */
.project-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.project-description h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}
.project-description p {
  margin: 0;
  line-height: 1.6;
}

.project-short h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.project-short p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* GALERIA */
.project-gallery {
  margin-top: 10px;
  margin-bottom: 40px;
}

.project-gallery h3 {
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.gallery-grid img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .project-content {
    grid-template-columns: 1fr;
  }
  .project-main-image {
    max-height: 520px;
  }
}
@media (max-width: 520px) {
  .project-container {
    margin-top: 24px;
    padding: 0 12px;
  }
  .project-main-image {
    max-height: 420px;
  }
}

/* focus dla dostępności */
.gallery-grid img:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 4px;
}
