.author-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em;
}

.author-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5em;
    margin-bottom: 1.5em;
    background-color: #ffffff;
    padding: inherit;
    border-radius: 6px;
}

.author-avatar img {
  object-fit: cover;
  border-radius: 50%;
}

.author-meta .author-name {
  font-size: 1.8em;
  margin: 0;
}

/* Avatar beholder naturlig størrelse */
.author-avatar {
  flex: 0 0 auto;
}

/* Meta (navn + tittel) side om side med avatar */
.author-meta {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* Flytt bio ned på full bredde */
.author-bio {
  flex-basis: 100%;
  line-height: 1.6;
}

.author-meta .author-title {
  font-style: normal;
  color: #555;
  margin: 0;
}

.author-meta .author-bio {
  line-height: 1.6;
}

.author-posts .posts-heading {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 1.5em;
}

.post-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Alltid samme størrelse på fremhevingsbilder */
.post-thumb {
  width: 100%;        /* fyll bredden til kortet */
  height: 180px;      /* ønsket høyde, juster til eget design */
  overflow: hidden;   /* skjul alle partier av bildet som går utenfor */
  border-radius: 4px; /* valgfritt: avrundede hjørner */
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* beskjær og skaler for å fylle boksen */
  display: block;
}

.post-title {
  font-size: 1.1em;
  margin: 0.75em;
}

.post-card time {
  display: block;
  font-size: 0.9em;
  color: #888;
  margin: 0 0.75em 0.75em;
  font-family: Helvetica, Arial, sans-serif;
}

.pagination {
  margin-top: 2em;
  text-align: center;
}

/* Kontaktsymbolene under tittel */
.author-contact {
  display: flex;
  gap: 0.75em;
  align-items: center;
}

.author-contact,
.author-contact a {
  font-family: Helvetica, Arial, sans-serif;
  color: #949191;          /* lys grå tekst */
  text-decoration: none!important;/* fjern underline */
  font-size:1.1em;
  transition:none!important;
}