.grid {
  display: grid;
  gap: 15px;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden; /* Forhindrer hvide kanter */
  max-width: 150px;
  height: auto;
}

.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bevar proportionerne og fjern hvide kanter */
}

.nameplate-doc,
.nameplate-pman,
.nameplate-sgpl,
.nameplate-sekr {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #ffffff;
  padding: 10px 10px;
  font-size: 0.9em;
  line-height: 1.2;
  box-sizing: border-box;
  z-index: 10;
  background-color: #5B7C99;
}

/* 
.nameplate-doc { background-color: #C2452D; }
.nameplate-pman { background-color: #846B8A; }
.nameplate-sgpl { background-color: #5B7C99; }
.nameplate-sekr { background-color: #5B9279; }
*/

.nameplate-doc .name,
.nameplate-pman .name,
.nameplate-sgpl .name,
.nameplate-sekr .name {
  font-weight: bold;
  margin: 0;
}

.nameplate-doc .title,
.nameplate-pman .title,
.nameplate-sgpl .title,
.nameplate-sekr .title {
  font-size: 0.8em;
  margin: 0;
}