/*
 Theme Name:   Drifter Magazine
 Theme URI:    https://driftermag.com/
 Description:  A custom child theme for GeneratePress
 Author:       Paul Jones Design
 Author URI:   https://pauljonesdesign.com/
 Template:     generatepress
 Version:      1.8
*/

/* ========== TABLE OF CONTENTS ==========
 * 
 * Theme
 * Utilty
 * Typography
 * Global Styles
 * Fluent Forms
 * CSS Grid
 * 
 ========================================= */
.entry-content [id]::before {
  content: '';
  display: block;
  height:      120px; /* height of your sticky nav */
  margin-top: -120px; /* height of your sticky nav */
  visibility: hidden;
}
/* ||  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: Barlow Semi Condensed, sans-serif;
	--body-font:Barlow Semi Condensed, sans-serif;
	--fs-h1: clamp(3rem, 4.6875vw + .75rem, 4.5rem);
	--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.25rem, 0.938rem + 1.172vw, 1.5rem);
	--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);
	--text-pre: clamp(1rem, 0.753rem + 0.515vw, 1.125rem);
}

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

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


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




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