html {
    -webkit-text-size-adjust: 100%;   /* hindrar iOS från att "förstora" vissa rutor */
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 20px;
    margin: 0;
}

/* ==== BAS / MOBIL (DEFAULT) ==== */

.grid {
    display: grid;
    grid-template-columns: 1fr;   /* EN kolumn som standard = mobil */
    grid-auto-rows: auto;
    gap: 20px;
}

/* Alla textceller har samma textstorlek */
.text-cell,
.text-cell-wide,
.text-cell-color {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 1rem;         /* tvinga samma font i alla celltyper */
    line-height: 1.35;
}

.text-cell-color {
    background: lightgrey;
}

.text-cell h3,
.text-cell-wide h3,
.text-cell-color h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

/* Bilder / video – MOBIL: små, auto-höjd men begränsade */
.image-cell img,
.video-item img,
.video-item video {
    width: 100%;
    height: auto;
    max-height: 140px;       /* små bilder på mobil */
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ==============================
   LISTOR
============================== */

.clean-list {
  margin: 0;
  padding-left: 1.2rem;
}

.clean-list li {
  margin-bottom: 0.45rem;
  line-height: 1.3;
  word-break: break-word;
}

/* ==============================
   ÖVRIGT
============================== */

hr {
    border: none;
    border-top: 1px solid #555;
    margin: 15px 0;
}

.to-top {
    margin-top: 40px;
    text-align: left;
}

.to-top a {
    font-family: Georgia, serif;
    font-size: 15px;
    text-decoration: none;
    color: #333;
    padding: 8px 14px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: #f8f8f8;
    transition: 0.2s;
}

.to-top a:hover {
    background: #e2e2e2;
    border-color: #888;
}

/* ==== IPAD / DESKTOP (TVÅ KOLUMNER) ==== */

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 310px 310px; /* text | bild */
        grid-auto-rows: 200px;
    }

    /* Bara på iPad/desktop är wide "wide" */
    .text-cell-wide {
        grid-column: span 2;
    }

    /* Bilder fyller 200px-cell snyggt */
    .image-cell img,
    .video-item img,
    .video-item video {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}