@use '../abstracts/variables' as SRC;
@use 'sass:map';

.ProjectViewCard {
  word-wrap: break-word;
  width: 410px;
  height: 325px;
  margin: 10px;
  background: #fff;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: left;

  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    min-height: 50px;
    max-height: 33%;
    max-width: 100%;
  }

  &__ImagePlaceholder {
    width: 100%;
    height: 25%;
    background: map.get(SRC.$primary-color-palette, 300);
  }

  &__ProjectName {
    margin: 15px 20px 10px;
    font-weight: bold;
    font-size: 16px;
  }

  &__ProjectDescription {
    margin: 10px 20px;
    max-height: 20%;
    line-height: 21px;
  }

  .bootstrap-4-backport > &__ViewProjectButton {
    width: 165px;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: auto;
    padding: 0px 25px;
    font-size: 14px;
    min-height: 38px;
    height: 46px;
  }
}
