/*
 Theme Name:   Ultimate France
 Theme URI:    https://www.ultimatefrance.com/
 Description:  A custom child theme for GeneratePress
 Author:       Ultimate France
 Author URI:   https://ultimatefrance.com/
 Template:     generatepress
 Version:      1.8
*/

/* ========== TABLE OF CONTENTS ==========
 * 
 * Theme
 * Utilty
 * Typography
 * Global Styles
 * Fluent Forms
 * CSS Grid
 * 
 ========================================= */

/* ||  CSS RESET */

img,
svg,
video,
canvas,
iframe,
object {
  display: block;
  max-width: 100%;
}

.acf-gallery, .acf-kitesurfing-gallery, .acf-snowboarding-gallery {
	width:100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* flexible columns */
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 0.75rem;
}
	
.acf-gallery-item img, .acf-kitesurfing-gallery-item img, .acf-snowboarding-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	aspect-ratio: 1 / 1;
}


/* ||  TYPOGRAPHY */

/* These have to match what is in the Customizer > Typography. Pull in font families using font manager. Set headline-font as 'All Headings and set body-font as HTML. */
:root {
	--heading-font: Syne, sans-serif;
	--body-font:Inter, sans-serif;
	--fs-h1: clamp(2.5rem, 4.6296vw + .2778rem, 3.75rem);
	--fs-h2: clamp(2.25rem, 1.125rem + 2.344vw, 3rem);
	--fs-h3: clamp(1.5rem, 0.938rem + 1.172vw, 1.875rem);
	--fs-h4: clamp(1.125rem, 0.938rem + 0.391vw, 1.25rem);
	--fs-h5: clamp(1rem, 0.753rem + 0.515vw, 1.125rem);
	--fs-h6: clamp(1rem, 0.753rem + 0.515vw, 1.125rem);
	--fs-heading--xl: clamp(3.75rem, 2.625rem + 2.344vw, 4.5rem);
	--fs-heading--lg: clamp(3rem, 1.875rem + 2.344vw, 3.75rem);
	--fs-heading--md: clamp(2.25rem, 1.125rem + 2.344vw, 3rem);
	--fs-heading--sm: clamp(1.5rem, 0.938rem + 1.172vw, 1.875rem);
	--fs-heading--xs: clamp(1.125rem, 0.938rem + 0.391vw, 1.25rem);
	--fs-text--xl: clamp(1.25rem, 0.875rem + 0.781vw, 1.5rem);
	--fs-text--lg: clamp(1.125rem, 0.938rem + 0.391vw, 1.25rem);
	--fs-text--md: clamp(1rem, 0.753rem + 0.515vw, 1.125rem);
	--fs-text--sm: clamp(0.85rem, 0.7rem + 0.312vw, 0.95rem);
	--fs-text--xs: clamp(0.75rem, 0.6rem + 0.312vw, 0.85rem);
}

/* Default Body / p font settings */
p, div {
	font-size: var(--fs-text--md);
	font-weight:400;
	line-height:1.5;
	font-family:var(--body-font);
}

p {
	margin-bottom:1.5rem;
}

h1, h2, h3, h4, h5, h6 {
	font-weight:600;
	margin-bottom: .5em;
	font-family: var(--heading-font);
}

h1 {
	font-size:var(--fs-h1);
	line-height:1.05;
}

h2 {
	font-size:var(--fs-h2);
	line-height:1.1;
}

h3 {
	font-size:var(--fs-h3);
	line-height:1.15;
}

h4 {
	font-size:var(--fs-h4);
	line-height:1.1;
}

h5 {
	font-size:var(--fs-h5);
	line-height:1.25;
}

h6 {
	font-size:var(--fs-h6);
	line-height:1.4;
}

p, .pretty {
	text-wrap: pretty;
}

.no-text-wrap, .text-wrap-unset {
	text-wrap: unset;
}

/* ||  GLOBAL */
.gb-button-wrapper a.gb-button, .gb-button, .main-navigation .menu-toggle {
		transition: all 0.3s ease 0s;
}

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

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

/* Site Wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

#main {
	min-height: 65vh;
}

/* 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;
}

/* Knocks out the original overlay side padding to 0. */
.slideout-navigation.do-overlay .inside-navigation {
	padding: 0 0 0 0;
	max-width: 100%;
}

/* Puts the X close icon to the top right. */
.slideout-navigation.do-overlay .slideout-exit {
    position: fixed;
    text-align: right;
}

/* Overrides the original default link colour. */
.slideout-navigation .Button_Primary, .slideout-navigation .Button_Primary a {
    color: var(--white);
}

/* Overrides the Sup[er List Block line height. */
.wp-block-createwithrani-superlist-item a {
	line-height:1.1;
}

/* Removes off-center, mobile menu icon positioning. */
.icon-menu-bars.gp-icon svg {
	top:0em;
}

/* Granular control of styling for dark/light nav bar versions. */
.nav-menu-dark-bg li a {
	color:var(--black-300) !important;
}

.nav-menu-white-pages li a {
	color:var(--black-600) !important;
}
.nav-menu-dark-bg .menu-toggle, .nav-menu-dark-bg li a:hover {
	color:var(--white) !important;
}

.nav-menu-white-pages .menu-toggle, .nav-menu-white-pages li a:hover {
	color:var(--primary) !important;
}

.nav-menu-dark-bg li:hover a svg, .nav-menu-white-pages li:hover a svg  {
	color:var(--accent-3-500) !important;
}


.sticky-sidebar, .post-sidebar {
	position: sticky;
	top: 3rem;
}

/* Targets the ToC links */
.toc-list-item a {
    display: flex;
    align-items: flex-start;
    color: var(--neutral-500);
	padding:5px 5px;
	font-size: 14px;
    line-height: 1.2;
    vertical-align: top;
	margin-left:8px;
}

.toc-list-item a:hover {
    text-decoration: underline;
	color: var(--primary-500);
}

.post-sidebar a.current, .toc-list-item a.is-active-link {
    text-decoration: underline;
	color: var(--primary-500);
}

/* circle dots */
.toc-link:before {
    border: 1px solid var(--neutral-500);
    box-shadow: inset 0 0 0 2.5px #fff;
    content: "";
    display: flex;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
	margin-top:0px;
	margin-right:5px;
}

.is-active-link:before {
	border: 1px solid var(--primary-500);
	background: var(--primary-500);
    background-color: var(--primary-500);
}

.is-collapsed .toc-link:before {
	display:none;
}

.toc-list li {
  list-style: none;
}

/* Search icon - remove GeneratePress default. Keep this CSS if you're using a custom icon. */
.main-navigation .menu-bar-item>a {
	display:none;
}

.post-type-post .editor-styles-wrapper {
    max-width: 656px;
    margin-inline: auto;
    width: 100%;
}