﻿@import url("/css/thumb.css");

.ddlPageCount			    {font-size:12px;}

#newslist					{list-style:none; padding:0; margin:0; width:100%;}
#newslist li				{width:100%; padding:0 0 15px 0; margin:0 0 15px 0; float:left; border-bottom:1px solid #DDD;}
#newslist li.last           {padding:0; margin:0; border:0;}

#newslist li div.image .thumb-container {float:right; width:20%;}
#newslist li div.info                   {padding:0; margin:0; float:left; width:75%;}
#newslist li div.infofull               {padding:0; margin:0; float:left; width:100%;}

#newslist li h2			    {padding:0; margin:0;}
#newslist li h2 a		    {color:#000;}
#newslist li p.date		    {padding:0 0 5px 0; margin:0; font-size:10px; color:#888;}
#newslist li p.date a	    {color:#888;}
#newslist li p.preamble	    {padding:3px 0 0 0; margin:0;}
#newslist li a			    {color:#4f4f4f; text-decoration:none;}
#newslist li a:hover	    {text-decoration:none;}

div.headerfooterlinkslast   {border-top:1px solid #ddd; padding-top:10px; margin-top:15px;}

/* ------------------------------------------------------- Enskild artikel */

/*
 * Artikeln låg tidigare som en vänsterflytande kolumn på 75 procent med
 * bildgalleriet som en smal spalt till höger. Galleriets rutor saknade höjd
 * på desktop, så den uppladdade bilden ritades 0 pixlar hög och syntes inte
 * alls. Artikeln är nu en centrerad läskolumn med artikelns första bild
 * överst, och övriga bilder som ett rutnät under texten.
 */

.singlenews,
.singlenews-long,
.back-to-news-list,
#newsimages {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.singlenews,
.singlenews-long {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

/* Första bilden, före datum och rubrik. */
.singlenews-lead {
    margin: 0 0 28px;
}

    .singlenews-lead img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .singlenews-lead figcaption {
        margin-top: 8px;
        color: #6b7280;
        font-size: .875rem;
        line-height: 1.5;
    }

.singlenews p.date,
.singlenews-long p.date {
    margin: 0 0 8px;
    padding: 0;
    color: #6b7280;
    font-size: .8125rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.singlenews h1,
.singlenews-long h1 {
    margin: 0 0 16px;
    padding: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    color: #131323;
}

/* Ingressen. */
.singlenews h4,
.singlenews-long h4 {
    margin: 0 0 24px;
    padding: 0;
    color: #444;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
}

.singlenews h2,
.singlenews-long h2 {
    margin: 32px 0 12px;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #131323;
}

.singlenews h3,
.singlenews-long h3 {
    margin: 28px 0 10px;
    font-size: 1.1875rem;
    line-height: 1.35;
    color: #131323;
}

.singlenews p,
.singlenews-long p {
    margin: 0 0 16px;
    color: #333;
}

.singlenews ul,
.singlenews ol,
.singlenews-long ul,
.singlenews-long ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

    .singlenews li,
    .singlenews-long li {
        margin-bottom: 6px;
    }

/* Bilder i brödtexten ska aldrig spränga kolumnen. */
.singlenews img,
.singlenews-long img {
    max-width: 100%;
    height: auto;
}

.singlenews a,
.singlenews-long a {
    color: #004b93;
}

.share-news {
    border: 1px solid #eee;
    background-color: #f8f8f8;
    padding: 10px 10px 2px 10px;
    margin: 24px 0 0;
    border-radius: 8px;
}

    .share-news .media {
        padding-bottom: 8px;
    }

/* ------------------------------------------------- Övriga bilder, galleri */

#newsimages {
    list-style: none;
    padding: 0;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

    #newsimages li {
        margin: 0;
        /* Rutan hade ingen höjd, och länken inuti är satt till 100 procent av
           den. Höjdförhållandet ger bilden en yta att visas på. */
        aspect-ratio: 1 / 1;
    }

    #newsimages li a {
        display: block;
        height: 100%;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        border-radius: 8px;
    }

    #newsimages li a img {
        height: 100%;
        width: 100%;
    }

    #newsimages li a:hover img {
        background: url(/gfx/webbedit/zoom-big.png) center center no-repeat;
    }

    #newsimages .image-description {
        margin-top: 6px;
        color: #6b7280;
        font-size: .8125rem;
        line-height: 1.45;
    }

/* --------------------------------------------- Tillbaka till nyhetslistan */

.back-to-news-list {
    border-top: 1px solid #e5e5e5;
    margin-top: 32px;
    padding-top: 16px;
}

    .back-to-news-list a {
        color: #004b93;
        font-weight: 600;
        text-decoration: none;
    }

        .back-to-news-list a:hover {
            text-decoration: underline;
        }

/* ------------------------------------------------------------------ Mobil */

@media screen and (max-width: 600px) {
    .singlenews-lead {
        margin-bottom: 20px;
    }

        .singlenews-lead img {
            border-radius: 8px;
        }

    .singlenews h4,
    .singlenews-long h4 {
        font-size: 1.0625rem;
        margin-bottom: 20px;
    }

    #newsimages {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }

        #newsimages li a:hover img {
            background: url(/gfx/webbedit/zoom-small.png) center center no-repeat;
        }
}

/* ---------------------------------------------- Nyhetslistan (översikten) */

@media screen and (max-width: 860px) {
    #newslist li div.info { width: 75%; }
    #newslist li div.image .thumb-container { width: 135px; height: 135px; padding: 3px; }
    table.headerfooterlinks { font-size: 90%; }
}

@media screen and (max-width: 740px) {
    #newslist li div.info { width: 75%; }
    #newslist li div.image .thumb-container { padding: 3px; }
}

@media screen and (max-width: 620px) {
    #newslist li div.info { width: 100%; }
    #newslist li div.image { display: none; }
    table.headerfooterlinks tr td a { font-size: 90%; text-decoration: none; }
    table.headerfooterlinks tr td select { font-size: 90%; }
}
