/**
* Theme Name: Dowody Pamieci
* Template: twentytwentytwo
*/

/* Grid układ z trzema kolumnami */
.custom-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 1024px) {
  .custom-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .custom-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Kafelki z wpisami */
.custom-blog-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.custom-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Obrazek z wpisu */
.custom-blog-thumb {
  position: relative;
  overflow: hidden;
  height: 200px; /* stała wysokość */
}

.custom-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Nakładka kategorii */
.custom-category-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(149, 102, 67, 1);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sekcja treści */
.custom-blog-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

/* Tytuł wpisu */
.custom-blog-content h3 {
  font-size: 1.55rem;
  margin: 0.5rem 0 0.25rem;
  text-align: center;

  min-height: 3.5em; /* stała wysokość na 2 linijki */
  line-height: 1.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Data publikacji */
.custom-date {
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Zajawka wpisu */
.custom-blog-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.5rem 0;

  max-height: 4.5em; /* ograniczenie do 3 linijek */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  text-align: justify;
}

/* Przycisk "Czytaj więcej" */
.custom-read-more {
  display: inline-block;
  margin-top: auto;
  padding: 0;
  background: none;
  color: #956643;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  border: none;
  border-radius: 0;
  transition: color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.custom-read-more:hover {
  color: #343434;
  text-decoration: none;
}
