/* === PORTFOLIO SEKCE === */

#portfolio {
  padding: 4rem 1rem;
  text-align: center;
  background: #fff;
}

#portfolio h2 {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  font-family: 'Outfit', sans-serif;
  color: #0d0d0d;
}

.portfolio-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.portfolio-row.reverse {
  flex-direction: row-reverse;
}

.portfolio-media {
  flex: 1 1 400px;
  max-width: 500px;
  height: 250px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(0,0,0,0.1);
}

.portfolio-media img,
.portfolio-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.portfolio-text {
  text-align: center;
  flex: 1 1 400px;
  max-width: 500px;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.portfolio-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #111;
}

.portfolio-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.portfolio-media video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .portfolio-row,
  .portfolio-row.reverse {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .portfolio-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: none; /* 🧠 zabrání natahování výšky */
  }

  .portfolio-media img,
  .portfolio-media video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }

  .portfolio-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 1rem 0.5rem;
    flex: none; /* ✅ přepis původního flex: 1 1 400px */
  }

  .portfolio-text h3 {
    font-size: 1.4rem;
    margin-top: 1rem;
  }

  .portfolio-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #portfolio h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}
