/*
Theme Name: Repečnik
Description: Child theme of Twenty Twenty-Five for Kmetija Repečnik (replaces the old Astra + Elementor setup).
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: repecnik
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Small touches that theme.json cannot express. */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Feature cards on the home page: image cards with the title at the bottom. */
.repecnik-card {
	border-radius: 4px;
	overflow: hidden;
}

.repecnik-card .wp-block-cover__inner-container h3 {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* People portraits on "Naša zgodba". */
.repecnik-portrait img {
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 50%;
}

/* Logo PNGs have an opaque white background: let the section colour show through. */
.repecnik-blend img {
	mix-blend-mode: multiply;
}

/* Media list on "Naša zgodba". */
.repecnik-media {
	list-style: none;
	padding-left: 0;
}

.repecnik-media li {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding-block: 0.6em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-4);
}

.repecnik-media a {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
}

/* Logos row in the footer. */
.repecnik-logos img {
	max-height: 64px;
	width: auto;
}

/* Map embed. */
.repecnik-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	border-radius: 4px;
}
