/* content/activities/journals.md */

/* Portadas de revistas: rejilla de 7 columnas como el Joomla original */

.covers-md p:has(> a > img) {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 90px));
  gap: 14px 12px;
  align-items: end;
  margin: 1.25rem 0 0;
  max-width: 702px;
}

.covers-md p:has(> a > img) > a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 120px;
}

.covers-md p:has(> a > img) img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}

@media (max-width: 599px) {
  .covers-md p:has(> a > img) {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 10px;
    max-width: none;
  }

  .covers-md p:has(> a > img) > a {
    height: 110px;
  }

  .covers-md p:has(> a > img) img {
    max-height: 110px;
  }
}
