/*
-------------------------------------------
wf-contact-list.css
-------------------------------------------

  Beskrivning: Stilregler för Kontaktpersoner
  Skapad av: Webbfröken AB
  Webbadress: https://webbfroken.se

------------------------------------------- */


/*
-------------------------------------------
Kontaktpersoner
------------------------------------------- */

.wf-contact-list {
  margin-top: var(--wf-spacing-40);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--wf-spacing-80) var(--wf-spacing-40);
}

.wf-contact-list > .sv-layout {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--color-block);
  padding: var(--wf-spacing-40);
  height: 100%;
  box-sizing: border-box;
}

.wf-contact-list .sv-image-portlet {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  max-height: 200px;
}

.wf-contact-list .sv-image-portlet img {
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
}

.wf-contact-list h3 {
  margin: var(--wf-spacing-40) 0 var(--wf-spacing-20);
}

.wf-contact-list p {
  margin: 0;
}

.wf-contact-list p {
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0;
}

.wf-contact-list p strong {
  font-size: var(--wf-font-size-small);
  margin-bottom: var(--wf-spacing-10);
  line-height: 1.4;
  min-height: calc(var(--wf-font-size-small) * 2 * 1.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wf-contact-list p a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px !important;
  color: var(--env-text-body-01-font-color) !important;
  text-decoration-color: color-mix(in hsl, var(--env-text-body-01-font-color) 25%, transparent ) !important;
}

.wf-contact-list p a:hover {
  text-decoration-thickness: 2px !important;
  text-decoration-color: var(--env-text-body-01-font-color) !important;
}

.wf-contact-list p:last-child {
  font-size: calc(var(--wf-font-size-normal) * 0.69); /*Manuell justering för att den standardiserade e-postadressen ska få plats på en rad*/
}


/*
-------------------------------------------
Läsplatta
------------------------------------------- */

@media screen and (max-width: 1024px) {

  .wf-contact-list {
    grid-template-columns: 1fr 1fr;
  }

}


/*
-------------------------------------------
Mobil
------------------------------------------- */

@media screen and (max-width: 767px) {

  .wf-contact-list {
    grid-template-columns: 1fr;
  }

}
