/* ========================
   BAZA
   ======================== */
body {
  background: #121212;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1 {
  text-align: center;
  color: #ffcc00;
  margin: 2rem 0 1.5rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

/* ========================
   POSTY
   ======================== */
.posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 1.5rem;
}

.post h2 {
  color: #ffcc00;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}

.post p {
  font-size: 1rem;
  color: #ccc;
  margin: 0 0 1rem;
}

/* ========================
   ZDJĘCIA W POŚCIE
   ======================== */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* ========================
   LIGHTBOX
   ======================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 30px;
  font-size: 2.2rem;
  color: #ffcc00;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #ffcc00;
  cursor: pointer;
  padding: 0.5rem;
  user-select: none;
  transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ========================
   RESPONSYWNOŚĆ
   ======================== */
@media (max-width: 1024px) {
  .images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .images {
    grid-template-columns: repeat(2, 1fr);
  }

  .post h2 {
    font-size: 1.3rem;
  }

  .images img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  

  .images img {
    height: 180px;
  }
}
