
:root {

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

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

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

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

  --color-profile-icon: #ccc;

}

:root .tax-profile-type,
:root .single-profile {

  --font-profile-title: var(--font-title);
  --color-profile-title: var(--color-title);

  --font-profile-title-alt: var(--font-title-2);
  --color-profile-title-alt: var(--color-title-2);

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

  --font-profile-text: var(--font-text);
  --color-profile-text: var(--color-text);

}

.entries.profiles {

}

.entries.profiles.display-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-around;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.entries.profiles.display-grid  .entry.profile {
  width: 100%;
  max-width: 290px;
  padding: 10px;
  text-align: center;
}

.entries.profiles.display-records .entry.profile {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.entries.profiles.display-grid .wp-post-image {
  margin-bottom: 8px;
}

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

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

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

.single-profile .entry.profile .entry-title,
.entries.profiles .entry.profile .entry-title {
  font-family: var(--font-profile-title);
  font-size: var(--size-profile-title);
  line-height: 1;
  color: var(--color-profile-title);
  margin-bottom: 10px;
}

.single-profile .entry.profile .entry-title a,
.entries.profiles .entry.profile .entry-title a { 
  color: var(--color-profile-title);
}

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

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

.entry.profile .entry-image {
  margin: 0 auto;
}

.entry.profile .entry-image-link {
  display: inline-block;
}

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

.entry.profile .entry-position {
  display: inline-block;
}

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

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

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

.entry.profile p {
  
}

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

.table-profiles thead {
  display: none;
}

.table-profiles tr {
  padding: 0.75em;
}

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

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

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

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

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

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

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


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

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

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

  /*.entries.profiles.display-grid .entry.profile {
    width: calc( 100% / 3);
  }*/

  .entries.profiles.display-records .entry.profile.has-image .entry-side {
    width: 30%;
    margin-bottom: 0;
  }

  .entries.profiles.display-records .entry.profile.has-image .entry-main {
    width: 60%;
  }

  .table-profiles {
    display: table;
  }
  
  .table-profiles thead {
    display: table-header-group;
  }

  .table-profiles tbody {
    display:table-row-group;
  }

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

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

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

}