/*
 Theme Name:   Keroz theme
 Theme URI:    https://keroz.fr
 Description:  Un thème personnalisé pour GeneratePress
 Author:       Keroz
 Author URI:   https://keroz.fr
 Template:     generatepress
 Version:      1.0
*/

:root {
	/* Height */
	--fluid-h80: clamp(3.75rem, 3.125rem + 2.5vi, 5rem);		/* 80 -> 60 */
	--fluid-h64: clamp(2.5rem, 1.75rem + 3vi, 4rem);		/* 64 -> 40 */

	/* Width */
	--fluid-w48: clamp(2rem, 1.5rem + 2vi, 3rem);		/* 48 -> 32 */
	--fluid-w32: clamp(1.5rem, 1.25rem + 1vi, 2rem);	/* 32 -> 24 */
	--fluid-w24: clamp(1rem, 0.75rem + 1vi, 1.5rem);	/* 24 -> 16 */
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* No Underline */
.no-ul, .no-ul a {
	text-decoration: none;
}

/* Remove bottom margin on last paragraph */
.gb-container p:last-child:last-of-type {
    margin-bottom: 0;
}

.block-editor-block-list__layout .gb-container p:nth-last-child(2) {
    margin-bottom: 0;
}

.ratio-3-2 {
	aspect-ratio: 3 / 2;
}

/* --- UTILITIES --- */

/* Line limits */
.line-limit-2,
.line-limit-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-limit-2 {
	-webkit-line-clamp: 2;
}

.line-limit-3 {
	-webkit-line-clamp: 3;
}