:root {
  --item-background-color: white;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  /* line-height: 1.5; */
}

body {
  font-family: system-ui;
  width: 90%;
  margin-inline: auto;
}

img {
  max-width: 100%;
  display: block;
}

.appLayoutContainer {
  display: grid;
  grid-template-rows: 100px auto 100px;
  grid-template-columns: minmax(300px, 800px);
  justify-content: center;
  min-height: 100vh;
}

.appLayoutNav {
  display: none;
}

.appLayoutHeader {
  grid-column: 1;
  background-color: red;
  color: white;
}

.appLayoutFooter {
  grid-column: 1;
  background-color: yellow;
  color: black;
}

#appContent {
  display: flex;
  flex-direction: column;
  padding: 0px 0px 10px 0px;
}

/* List content styles. */

.listContentItemContainer {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  min-height: 100px;
  margin: 10px 10px 0px 10px;
  align-content: flex-start;
  background-color: var(--item-background-color);
  border:
    1px solid,
    black;
}

.listContentItemImageDiv {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: cover;
  background-color: lightgray;
}

.listContentItemImage {
  object-fit: cover;
  width: inherit;
  height: inherit;
}

.listContentItemTitle {
  height: 2rem;
}

.listContentItemDescription {
  height: 2rem;
}

.listContentItemParagraph {
  height: 4rem;
  flex: 1;
  overflow: hidden;
  min-width: 300px;
}

.listContentItemParagraph::after {
  content: "";
  display: block;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--item-background-color)
  );
}

/* Utility styles. */
.flexBoxBreak {
  flex-basis: 100%;
  height: 0px;
}

@media (min-width: 700px) {
  .appLayoutContainer {
    display: grid;
    grid-template-rows: 100px auto 100px;
    grid-template-columns: 100px minmax(600px, 900px);
    justify-content: center;
    min-height: 100vh;
  }

  .appLayoutNav {
    display: block;
    grid-row: 1 / 3;
    background-color: black;
    color: white;
  }

  .appLayoutHeader {
    grid-column: 2;
    background-color: red;
    color: white;
  }

  .appLayoutFooter {
    grid-column: 1;
    grid-column: 1 / 3;
    color: black;
  }
}
