.journal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  justify-items: center;
}

.topical-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topical-card a:last-of-type {
  font-weight: normal;
}

.topical-card a:last-of-type:hover {
  text-decoration: underline;
}

.topical-card picture {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.topical-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* säilyttää kuvan mittasuhteet */
}

.topical-card text-and-date {
  flex-grow: 1;
  padding: 12px 12px 0px 12px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.text-and-date .createdon {
  font-style: italic;
  font-size: 0.875rem;
  color: #a0a0a0;
}

.journal-cards .journal-content-article {
  width: 270px;
  height: 310px;
  box-sizing: border-box;
}

@media (max-width: 959px) {
  .journal-cards .journal-content-article {
    height: 280px;
  }
}
@media (max-width: 635px) {
  .journal-cards .journal-content-article {
    height: 100%;
  }
}
.portlet-boundary_com_koivuniemi_pikipruukkiapartments_PikipruukkiApartmentsPublisherPortlet_ .portlet-header {
  display: none;
}