/*
Theme Name:   Twenty Twenty-Five Child
Theme URI:    https://wordpress.org/themes/twentytwentyfive/
Description:  Twenty Twenty-Five child theme
Author:       WordPress.org
Author URI:   https://wordpress.org/
Template:     twentytwentyfive
Version:      1.0.0
Text Domain:  twentytwentyfivechild
*/

.page, .single-post {
	background: url('https://gammelheter-l7g8yict4g.live-website.com/wp-content/uploads/2025/08/newspaper-2.png');
}

/* Källor */
.kalla-list {
    list-style: none;
    padding-left: 0;
}
.kalla-list li {
    display: flex;
    align-items: center;
}
.kalla-list .kalla-thumbnail {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

/* Front page */
body.page-id-167 main.wp-block-group {
	margin-top: 0 !important;
}
body.page-id-167 main > .wp-block-group {
    max-width: 1500px;
	margin: 0 auto;
}
body.page-id-167 main > .wp-block-group .wp-block-group {
    max-width: 100%;
}

.artikel-random-list {
    display: flex;
	flex-direction: column;
    gap: 20px;
	max-width: 90%;
}

@media (min-width: 1200px) {
  .artikel-random-list {
    max-width: 900px;
  }
}

.justnu {
	color: #dd2a30;
	display: none;
}

.artikel-item:first-of-type .justnu {
	display: inline-block;
}

.artikel-item:first-of-type {
	background: rgb(254, 245, 248);
}

.artikel-item, 
.annons-image {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-width: 30%;
}

.artikel-item a {
	text-decoration: none;
}

.artikel-item p:last-of-type {
	font-size: small;
}

.artikel-item:hover,
.annons-image:hover {
	text-decoration: underline;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.artikel-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}

.artikel-item p {
    margin: 0.5em 0 1em;
    color: #444;
}

.artikel-item img,
.annons-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0 auto;
    object-fit: cover;
}

.annons-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
}

.annons-image img {
    border: 2px solid #eee;
}

p.random-date {
	margin-top: -30px !important;
}

/* Styling */

details {
	margin-top: 50px !important;
	border: 1px solid black;
	border-radius: 5px;
	padding: 5px;
}
details summary {
	font-weight: bold;
}

div.wp-block-comments {
	border-top: 1px solid black;
	margin-bottom: 0 !important;
}
main {
	margin-top: 0px !important;
}
header {
	background: rgba(255, 255, 255, 0.5);
}
footer.wp-block-template-part {
	background: rgba(255, 255, 255, 0.5);
	margin-top: 10px !important;
	margin-bottom: 10px !important;
}
footer.wp-block-template-part > div {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}