/* Smort Personal List Block Styles */

.smort-personal-list {
  padding-block: var(--section-padding-y, 4rem);
  background-color: var(--background-light);
}

.smort-personal-list-container {
  max-width: 1280px;
}

/* Header */
.smort-personal-list-header {
  margin-bottom: 3rem;
  text-align: center;
}

.smort-personal-list-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.smort-personal-list-title {
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.smort-personal-list-description {
  color: var(--text-color, #444);
  font-size: 1.1rem;
  max-width: 42rem;
  margin-inline: auto;
  opacity: 0.8;
}

/* Grid – 4 kolumner */
.smort-personal-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;

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

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

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

/* Kort */
.smort-personal-list-card {
  background: var(--color-background-light, #fff);
  border: 1px solid var(--border-light, #e3dcdc);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Bild */
.smort-personal-list-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-background-light, #eee);
}

.smort-personal-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Platshållare när bild saknas */
.smort-personal-list-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary, #ddd);
}

.smort-personal-list-image-placeholder span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary, #333);
  text-transform: uppercase;
}

/* Kortinnehåll */
.smort-personal-list-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.smort-personal-list-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.1rem;
  line-height: 1.3;
}

.smort-personal-list-position {
  font-size: 0.875rem;
  color: var(--primary);
  opacity: 0.7;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

/* Kontaktlista */
.smort-personal-list-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
}

.smort-personal-list-phone a,
.smort-personal-list-email a {
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  word-break: break-all;
}
