/**
 * Story Teaser Single Block Styles
 * Based on hoitopaikanvalinta theme
 */

/* Story Teaser Single - Story cards on collection pages */
.story-teaser--single {
  margin: 1em 0.5em;
  padding: 1em;

  & .wp-block-columns {
    gap: 0;
  }

  & .wp-block-column {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    text-align: center;

    @media (min-width: 47.5em) {
      align-items: start;
      text-align: left;
    }

    &:first-child {
      @media (min-width: 47.5em) {
        flex-basis: 165px !important;
      }
    }

    &:last-child {
      padding: 1em 0;

      @media (min-width: 47.5em) {
        padding: 2em;
        flex-basis: calc(100% - 165px) !important;
      }
    }
  }

  & figure {
    margin: 0;
  }

  & img {
    width: 120px;
    height: 120px;
    object-fit: cover;

    @media (min-width: 47.5em) {
      width: 165px;
      height: 165px;
    }
  }

  & .wp-block-heading {
    color: #002970;
    margin-bottom: 0.75rem;
    margin-top: 0.5em;
  }

  & p {
    position: relative;
    margin-bottom: 0;
    color: #202020;

    &:after {
      content: "\203A";
      color: #002970;
      display: inline-block;
      margin: 0 0.5em 0 0.3em;
      font-size: 28px;
      position: absolute;
      bottom: -7px;
    }
  }

  & a {
    text-decoration: none;
  }

  &:hover,
  &:has(a:focus) {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;

    & h3 {
      text-decoration: underline;
    }
  }
}
