@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.election-result-list-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  background: var(--theme-grey-light);
  text-decoration: none;
  width: 312px;

  @media (max-width: 693px) {
    width: 100%;
  }

  @media(max-width: 356px) {
    max-width: none;
  }

  .top-box {

  }

  .image-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }

  img {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }

  .text-box {
    padding: 10px;
  }

  h3 {
    font-size: 28px;
    line-height: 32px;
    margin: 5px 10px 15px 10px;
    text-decoration: underline;
    @include word-wrap();
  }

  .job-box,
  .city-box {
    margin-bottom: 5px;
    background: var(--theme-color-primary-dimmed-04);
    border-radius: 4px;
    padding: 4px 0 2px 0;
    @media(max-width: 567px) {
      display: none;
    }

    a,
    span {
      display: block;
      position: relative;
      width: calc(100% - 8px);
      margin: 0;
      padding: 0 0 0 26px;
      font-size: 16px;
      line-height: 18px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;

      &:before {
        position: absolute;
        left: 4px;
        top: 50%;
        font-family: "Icons";
        transform: translate(0, -50%);
      }
    }
  }
}
