/* ===== Grundstil (mobil först) ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;              /* inga marginaler */
  padding: 0;             /* inga padding – fyller hela bredden */
  background-color: #f9f9f9;
  color: #333;
  font-size: 1rem;        /* basstorlek på mobil */
  line-height: 1.6;
}

h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 1.8rem;      /* stor rubrik på mobil */
}

.news-item {
  border-bottom: 1px solid #ccc;
  padding: 16px;
}

.news-item h2 {
  margin: 5px 0;
  font-size: 1.3rem;
}

.news-item .meta {
  font-size: 0.95rem;
  color: #666;
}

.news-item img {
  width: 100%;            /* fyller alltid hela behållaren */
  height: auto;
  display: block;
  margin: 12px 0;
  border-radius: 6px;
}

.news-item .caption {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.news-item .text {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== Större skärmar (surfplatta & desktop) ===== */
@media (min-width: 768px) {
  body {
    max-width: 800px;     /* begränsar textbredden för läsbarhet */
    margin: 0 auto;       /* centrerar innehållet */
    padding: 24px;        /* ger luft runt */
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  .news-item h2 {
    font-size: 1.6rem;
  }

  .news-item .text {
    font-size: 1.15rem;
  }
}