/* Bredare layout */
.container {
  max-width: 1440px;
}

.post__thumbnail {
  max-width: 100%;
}

/* Begränsa bildhöjd inne i inlägg – skala ner utan beskärning */
.post__thumbnail {
  text-align: left;
}

.post__thumbnail img {
  width: auto;
  max-width: min(800px, 100%);
  max-height: 420px;
  height: auto;
  border-radius: 8px;
}

.post__content img {
  display: block;
  margin: 0;
  width: auto;
  max-width: min(800px, 100%);
  max-height: 420px;
  height: auto;
  border-radius: 8px;
}

/* Mindre bilder i listvyn – proportionerligt */
.list__thumbnail img {
  width: auto;
  max-width: min(235px, 100%);
  max-height: 160px;
  height: auto;
}

/* Lokal sökning */
.widget-search__results {
  margin-top: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  max-height: 340px;
  overflow-y: auto;
}

.widget-search__hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
}

.widget-search__hit:last-child {
  border-bottom: none;
}

.widget-search__hit:hover {
  background: #f7f7f7;
}

.widget-search__thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.widget-search__hit-title {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}

.widget-search__hit-date {
  display: block;
  font-size: .72rem;
  color: #888;
}

.widget-search__empty {
  margin: 0;
  padding: 10px;
  font-size: .85rem;
  color: #777;
}

/* Widget: I fokus */
.widget-featured__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.widget-featured__img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.widget-featured__title {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}

.widget-featured__item:hover .widget-featured__title {
  text-decoration: underline;
}

.widget-featured__date {
  display: block;
  font-size: .75rem;
  color: #888;
  margin-top: 2px;
}

/* Widget: Om */
.widget-about p {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}

/* Widget: Arkiv */
.widget-archive__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-archive__count {
  background: #eee;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  color: #555;
}

/* Widget: Statistik */
.widget-stats__grid {
  display: flex;
  gap: 8px;
}

.widget-stats__box {
  flex: 1;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 4px;
}

.widget-stats__num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #e22d30;
}

.widget-stats__label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #777;
}

/* Relaterade artiklar */
.related {
  margin-top: 24px;
  padding: 20px 24px;
  background: #fff;
}

.related__heading {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

.related__title {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}

.related__card:hover .related__title {
  text-decoration: underline;
}

.related__date {
  display: block;
  font-size: .75rem;
  color: #888;
  margin-top: 3px;
}

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

  .related__img {
    height: 160px;
  }
}
