.smp-album-grid {
  --smp-album-ink: #0e2e31;
  --smp-album-muted: #4b6a6c;
  --smp-album-line: #dce6e8;
  --smp-album-teal: #0f766e;
  --smp-album-deep: #0a4a50;
  --smp-album-surface: #fff;
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
  align-items: stretch;
  font-family: "Figtree", sans-serif;
}

.smp-album-column {
  display: flex;
  align-self: stretch;
  margin-bottom: 0;
}

.smp-album-card {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--smp-album-line);
  border-radius: 16px;
  background: var(--smp-album-surface);
  box-shadow: 0 8px 22px rgb(10 46 49 / 8%);
  transition: box-shadow 0.2s, transform 0.2s;
}

.smp-album-card:hover {
  box-shadow: 0 14px 30px rgb(10 46 49 / 14%);
  transform: translateY(-2px);
}

.smp-album-image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: #f1f5f5;
}

.smp-album-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.smp-album-card:hover .smp-album-image img {
  transform: scale(1.035);
}

.smp-album-image-placeholder {
  color: #8ba7a7;
  font-size: 2rem;
}

.smp-album-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}

.smp-album-content h2 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 0.55rem;
  overflow: hidden;
  font-family: "Figtree", sans-serif;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.smp-album-content h2 a {
  color: var(--smp-album-ink);
  text-decoration: none;
}

.smp-album-content h2 a:hover {
  color: var(--smp-album-teal);
}

.smp-album-date {
  margin: 0 0 0.55rem;
  color: var(--smp-album-muted);
  font-size: 0.86rem;
}

.smp-album-date i {
  margin-right: 0.2rem;
  color: var(--smp-album-teal);
}

.smp-album-description {
  display: -webkit-box;
  min-height: 4.65em;
  margin: 0;
  overflow: hidden;
  color: var(--smp-album-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.smp-album-button {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  background: var(--smp-album-teal);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.smp-album-button:hover {
  color: #fff;
  background: var(--smp-album-deep);
  box-shadow: 0 4px 10px rgb(10 74 80 / 18%);
}

.smp-album-button:focus-visible {
  outline: 3px solid #e8b84a;
  outline-offset: 3px;
}

.smp-album-grid + .page-pagination {
  margin-top: 1.5rem !important;
}

@media (max-width: 575.98px) {
  .smp-album-grid {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
  }

  .smp-album-card {
    border-radius: 12px;
  }

  .smp-album-content {
    padding: 0.75rem;
  }

  .smp-album-content h2 {
    font-size: 1.05rem;
  }

  .smp-album-date,
  .smp-album-description {
    font-size: 0.8rem;
  }

  .smp-album-button {
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-album-card,
  .smp-album-image img,
  .smp-album-button {
    transition: none;
  }

  .smp-album-card:hover,
  .smp-album-card:hover .smp-album-image img {
    transform: none;
  }
}
