/*
Theme Name: Marika radīt skaisto — bērnu tēma
Theme URI: https://robnety.lv/
Template: marika-radit-skaisto
Author: Robnety
Author URI: https://robnety.lv/
Description: Bērnu tēma "Marika radīt skaisto" pielāgojumiem. Šeit liek CSS, funkcijas un veidņu labojumus, lai vecāktēmas atjauninājumi tos nepārrakstītu.
Version: 1.2.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marika-child
*/

/* ==========================================================================
   Galvenais bloks (hero) uz pusi zemāks
   Vecāktēmā: attēls clamp(460px, 46vw, 720px), teksta atkāpes clamp(48px, 6vw, 88px).
   ========================================================================== */

.m-hero--slant .m-hero__media {
	height: clamp(230px, 40vw, 550px);
	max-height: none;
}

.m-hero--slant .m-hero__img,
.m-hero--slant .m-placeholder {
	height: 100%;
	max-height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center 40%;
}

.m-hero--slant .m-hero__text {
	padding-block: clamp(24px, 3vw, 44px);
	gap: 18px;
}

.m-hero--slant .m-h1 { font-size: clamp(30px, 3.6vw, 42px); }
.m-hero--slant .m-lead { font-size: 17px; max-width: 28em; }

@media (max-width: 860px) {
	.m-hero--slant .m-hero__media { height: auto; }
	.m-hero--slant .m-hero__img,
	.m-hero--slant .m-placeholder { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Citi biežākie pielāgojumi (noņem komentāru, lai izmantotu)
   ==========================================================================

   Mazākas atstarpes starp sadaļām:
   :root { --m-space: clamp(56px, 7vw, 88px); }

   Platāka satura josla:
   :root { --m-wrap: 1360px; }

   Cits slīpuma leņķis:
   .m-hero--slant .m-hero__img,
   .m-hero--slant .m-placeholder { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
*/