/*
Theme Name: Svenska Sidor
Theme URI: https://svenska-sidor.com/
Author: Svenska Sidor
Author URI: https://svenska-sidor.com/
Template: neel
Description: Child theme of Neel, built for svenska-sidor.com. Adds a centred footer copyright line that carries the live year and site name, and a classic blog homepage that shows each post in full - featured image, title, meta, then the whole article. The single post page, header, footer widgets, menus, sidebar, buttons and links are all left exactly as the parent renders them.
Version: 1.0.0
Requires at least: 5.3
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svenska-sidor
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, footer-widgets, translation-ready
*/

/* ==========================================================================
 * Neel's own style.css is loaded first, from functions.php. Everything below
 * is additive - no parent rule is removed, only extended.
 *
 * 1. Classic homepage entry
 * 2. Featured image
 * 3. Footer copyright
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * 1. Classic homepage entry
 *
 * On the blog home this theme puts each post in the parent's own
 * "full-content" mode, so Neel's existing rules already stack the entry full
 * width instead of floating the thumbnail beside the text. These few rules
 * only tidy the classic order - title first, then the meta row, then the body.
 * -------------------------------------------------------------------------- */

.home.blog .post.svenska-sidor-classic .entry-header {
	margin-bottom: 10px;
}

.home.blog .post.svenska-sidor-classic .entry-title {
	margin-bottom: 12px;
}

/* The date sits with the rest of the meta, under the title. */
.home.blog .post.svenska-sidor-classic .post-date {
	margin-bottom: 8px;
}

.home.blog .post.svenska-sidor-classic .entry-meta {
	margin-bottom: 0;
}

.home.blog .post.svenska-sidor-classic .entry-content {
	margin-top: 20px;
}

/* Keep wide media inside the column. */
.home.blog .post.svenska-sidor-classic .entry-content img,
.home.blog .post.svenska-sidor-classic .entry-content iframe,
.home.blog .post.svenska-sidor-classic .entry-content video,
.home.blog .post.svenska-sidor-classic .entry-content table {
	max-width: 100%;
}

.home.blog .post.svenska-sidor-classic .entry-content img {
	height: auto;
}


/* --------------------------------------------------------------------------
 * 2. Featured image
 *
 * Full width of the column, natural height, never cropped and never stretched:
 * no fixed height, no aspect-ratio and no object-fit anywhere.
 * -------------------------------------------------------------------------- */

.home.blog .post.svenska-sidor-classic .post-thumbnail {
	width: 100%;
	margin: 0;
	overflow: hidden;
}

.home.blog .post.svenska-sidor-classic .post-thumbnail a {
	display: block;
}

.home.blog .post.svenska-sidor-classic .post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: unset;
	aspect-ratio: auto;
}


/* --------------------------------------------------------------------------
 * 3. Footer copyright
 *
 * One centred line under the footer widget area. The widgets, menus and links
 * above it are untouched - this only styles the site-info strip.
 * -------------------------------------------------------------------------- */

.site-info .svenska-sidor-copyright {
	display: block;
	width: 100%;
	margin: 0;
	padding: 4px 0;
	text-align: center;
	line-height: 1.6;
	word-wrap: break-word;
}

@media screen and (max-width: 600px) {

	.site-info .svenska-sidor-copyright {
		font-size: 0.9em;
		padding: 2px 0;
	}
}
