
:root {

  --font-poster-child-title: 'Times New Roman', Times, serif;
  --size-poster-child-title: 28px;
  --color-poster-child-title: slategray;

  --font-poster-child-title-alt: Arial, helvetica, sans-serif;
  --size-poster-child-title-alt: 16x;
  --color-poster-child-title-alt: slategray;

  --color-poster-child-tag: slategray;
  --font-poster-child-tag-title: Arial, helvetica, sans-serif;
  --size-poster-child-tag-title: 16px;
  --color-poster-child-tag-title: white;

  --font-poster-child-text: Arial, helvetica, sans-serif;
  --size-poster-child-text: 16px;
  --color-poster-child-text: black;

  --color-poster-child-icon: #ccc;

}

:root .tax-poster-child-type,
:root .single-poster-child {

  --font-poster-child-title: var(--font-title);
  --color-poster-child-title: var(--color-title);

  --font-poster-child-title-alt: var(--font-title-2);
  --color-poster-child-title-alt: var(--color-title-2);

  --color-poster-child-tag: var(--color-tag-bg);
  --font-poster-child-tag-title: var(--font-text);
  --color-poster-child-tag-title: var(--color-tag-title);

  --font-poster-child-text: var(--font-text);
  --color-poster-child-text: var(--color-text);

}

.entries.poster-children {

}

.entries.poster-children.display-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 auto;
}

.entries.poster-children.display-grid  .entry.poster-child {
  text-align: center;
}

.entries.poster-children.display-grid .wp-post-image {
  display: block;
  margin: 0;
}

.entries.poster-children.display-grid .entry-footer .entry-meta {
  padding-top: 0;
  border-top: 0;
}

.entries.poster-children.display-grid .entry-meta span {
  display: inline-block;
}

.entries.poster-children.display-grid .entry-meta span.meta-location {
  display: block;
}

article.entry.poster-child .entry-title,
.entries.poster-children .entry.poster-child .entry-title-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: stretch;
  font-family: var(--font-body-title);
}

.entry.poster-child .entry-title span {
  display: inline-block;
  padding: 5px;
}

.entry.poster-child .entry-title span.entry-year {
  width: 100px;
  background: black;
  color: white;
  text-align: center;
}

.entry.poster-child .entry-title span.entry-name {
  width: calc(100% - 102px);
  margin-left: 2px;
  padding: 5px 12px;
}

/*.single-poster-child .entry.poster-child .entry-title,
.entries.poster-children .entry.poster-child .entry-title {
  font-family: var(--font-poster-child-title);
  font-size: var(--size-poster-child-title);
  line-height: 1;
  color: var(--color-poster-child-title);
  margin-bottom: 10px;
}*/

.single-poster-child .entry.poster-child .entry-title a,
.entries.poster-children .entry.poster-child .entry-title a { 
  color: var(--color-poster-child-title);
}

.table-poster-children a.entry-email-link i,
.table-poster-children a.entry-phone-link i,
.entries.poster-children .entry.poster-child a.entry-email-link i,
.entries.poster-children .entry.poster-child a.entry-phone-link i {
  font-size: 20px !important;
  color: var(--color-poster-child-icon) !important;
}

.entry.poster-child .entry-side {
  margin-bottom: 15px;
}

.entry.poster-child .entry-image {
  margin: 0 auto;
}

.entry.poster-child .entry-image-link {
  display: block;
  margin-bottom: 2px;
}

.entry.poster-child .entry-rank,
.entry.poster-child .entry-name {
  display: block;
  /*color: var(--color-title-4);
  a {  color: var(--color-title-4); }*/
}

.entry.poster-child .entry-position {
  display: inline-block;
}

.entry.poster-child .entry-rank {
  font-family: var(--font-poster-child-title-alt);
  font-size: var(--size-poster-child-title-alt);
  color: var(--color-poster-child-title-alt);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.entry.poster-child .entry-meta .meta-position,
.entry.poster-child .entry-position {
  background: var(--color-poster-child-tag);
  font-family: var(--font-poster-child-tag-title);
  font-size: var(--size-poster-child-tag-title);
  font-weight: normal;
  line-height: 1.2;
  color: var(--color-poster-child-tag-title);
  text-transform: uppercase;
  padding: 4px 6px;
}

.entry.poster-child .entry-meta .entry-phone,
.entry.poster-child .entry-meta .entry-email,
.entry.poster-child .entry-meta .entry-twitter {
  display: block;
}

.entry.poster-child p {
  
}

.table-poster-children,
.table-poster-children tbody,
.table-poster-children tr,
.table-poster-children th,
.table-poster-children td {
  display: block;
}

.table-poster-children thead {
  display: none;
}

.table-poster-children tr {
  padding: 0.75em;
}

.table-poster-children th,
.table-poster-children td {
  padding: 0;
}

.table-poster-children td:before {
  font-weight: bold;
}

.table-poster-children td.name:before {
  content: 'Name: ';
}

.table-poster-children td.position:before {
  content: 'Position: ';
}

.table-poster-children td.location:before {
  content: 'Location: ';
}

/*.table-poster-children td.email:before {
  content: 'Email: ';
}

.table-poster-children td.phone:before {
  content: 'Phone: ';
}*/


@media screen and ( min-width: 720px ) {

  .entry.poster-child .entry-image.alignright {
    margin: 0 0 20px 20px;
  }

  .entry.poster-child .entry-image.alignleft {
    margin: 0 20px 20px 0;
  }

  .entries.poster-children.display-grid {
    grid-template-columns: 1fr 1fr;
  }

  .entries.poster-children.display-records .entry.poster-child.has-image .entry-side {
    width: 30%;
    margin-bottom: 0;
  }

  .entries.poster-children.display-records .entry.poster-child.has-image .entry-main {
    width: 60%;
  }

  .table-poster-children {
    display: table;
  }
  
  .table-poster-children thead {
    display: table-header-group;
  }

  .table-poster-children tbody {
    display:table-row-group;
  }

  .table-poster-children tr {
    display: table-row;
    padding: 0;
  }

  .table-poster-children th,
  .table-poster-children td {
    display: table-cell;
    padding: 0.75em;
  }

  .table-poster-children td.name:before,
  .table-poster-children td.position:before,
  .table-poster-children td.location:before,
  .table-poster-children td.email:before,
  .table-poster-children td.phone:before {
    content: '';
  }

}