#post-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-summary-link {
  text-decoration: none;
  display: block;
}

.post-summary {
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  color: var(--color-contrast);
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: opacity 0.2s;

  @media (hover: hover) {
    &:hover {
      opacity: 0.8;
      cursor: pointer;
    }
  }

  img.post-image {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    height: auto;
  }

  .overlay {
    position: absolute;
    inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
    display: flex;
    align-items: end; /* vertical alignment: bottom */
    justify-content: flex-end; /* horizontal alignment: right */
    pointer-events: none; /* optional: let clicks through */
  }

  .container {
    width: 100%;
    margin: 0;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem 0.5rem;
    text-align: right;
  }

  h1 {
    margin: 0;
    color: white;
    text-align: right;
  }

  p {
    margin: 0;
  }
}

.official-star {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: bottom;
}
