/*!
Theme Name: LFWD
Theme URI: https://littlenerdwebdesign.co.uk/
Author: Louise Foster
Author URI: https://littlenerdwebdesign.co.uk/
Description: Little Nerd Web Design parent theme
Tested up to: 7.4.28
Requires PHP: 5.6
Update URI: false
License: GNU General Public License v2 or later
License URI: LICENSE
*/


/* ========================================= NORMALIZE ========================================= */
*{ margin:0;padding:0;box-sizing:border-box;}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

/* ======================================== THEME CODING ======================================== */
*,*::before,*::after{box-sizing:inherit;}

html{box-sizing:border-box;}

body,button,input,select,optgroup,textarea{color:#404040;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:1rem;line-height:1.5;}

dfn,cite,em,i{font-style:italic;}

blockquote{margin:0 1.5em;}

address{margin:0 0 1.5em;}

pre{background:#eee;font-family:"Courier 10 Pitch",courier,monospace;line-height:1.6;margin-bottom:1.6em;max-width:100%;overflow:auto;padding:1.6em;}

code,kbd,tt,var{font-family:monaco,consolas,"Andale Mono","DejaVu Sans Mono",monospace;}

abbr,acronym{border-bottom:1px dotted #666;cursor:help;}

mark,ins{background:#fff9c0;text-decoration:none;}

big{font-size:125%;}

hr{background-color:#ccc;border:0;height:1px;margin-bottom:1.5em;}

ul,ol{margin:1em;}

ul{list-style:disc;}

ol{list-style:decimal;}

li > ul,li > ol{margin-bottom:0;margin-left:1.5em;}

dt{font-weight:700;}

dd{margin:0 1.5em 1.5em;}

embed,iframe,object{max-width:100%;}

img{height:auto;max-width:100%;}

figure{margin:0;}

table{margin:0 0 1.5em;width:100%;}

.site-main .comment-navigation,.site-main.posts-navigation,.site-main.post-navigation{margin:0 0 1.5em;}

.comment-navigation .nav-links,.posts-navigation .nav-links,.post-navigation .nav-links{display:flex;}

.comment-navigation .nav-previous,.posts-navigation .nav-previous,.post-navigation .nav-previous {flex:1 0 50%;}

.comment-navigation .nav-next,.posts-navigation .nav-next,.post-navigation .nav-next {text-align:end;flex:1 0 50%;}

.sticky{display:block;}

.post,.page{margin:0;}

.updated:not(.published){display:none;}

.page-content,.entry-content,.entry-summary{margin:1.5em 0 0;}

.page-links{clear:both;margin:0 0 1.5em;}

.comment-content a{word-wrap:break-word;}

.bypostauthor{display:block;}

.widget{margin:0 0 1.5em;}

.widget select{max-width:100%;}

.page-content .wp-smiley,.entry-content .wp-smiley,.comment-content .wp-smiley{border:none;margin-bottom:0;margin-top:0;padding:0;}

.wp-caption{margin-bottom:1.5em;max-width:100%;}

.wp-caption img[class*="wp-image-"]{display:block;margin-left:auto;margin-right:auto;}

.wp-caption .wp-caption-text{margin:0.8075em 0;}

.wp-caption-text{text-align:center;}

.gallery{margin-bottom:1.5em;display:grid;grid-gap:1.5em;}

.gallery-item{display:inline-block;text-align:center;width:100%;}

.gallery-columns-2{grid-template-columns:repeat(2,1fr);}
.gallery-columns-3{grid-template-columns:repeat(3,1fr);}
.gallery-columns-4{grid-template-columns:repeat(4,1fr);}
.gallery-columns-5{grid-template-columns:repeat(5,1fr);}
.gallery-columns-6{grid-template-columns:repeat(6,1fr);}
.gallery-columns-7{grid-template-columns:repeat(7,1fr);}
.gallery-columns-8{grid-template-columns:repeat(8,1fr);}
.gallery-columns-9{grid-template-columns:repeat(9,1fr);}

.gallery-caption{display:block;}

.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none;}

.infinity-end.neverending .site-footer{display:block;}

.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;}

.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto!important;clip-path:none;color:#21759b;display:block;font-size:0.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000;}

#primary[tabindex="-1"]:focus{outline:0;}

.alignleft{float:left;margin-right:1.5em;margin-bottom:1.5em;}
.alignright {float:right;margin-left:1.5em;margin-bottom:1.5em;}

.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto;margin-bottom:1.5em;}

.wp-block-columns{margin-bottom:0;}

/* ===================== COLOURS ===================== */
/* Colour classes for the editor palette (palette set in functions.php; a child theme replaces it with the client's colours). */
.has-primary-background-color{background-color:var(--wp--preset--color--primary)!important;}.has-primary-color{color:var(--wp--preset--color--primary)!important;}
.has-secondary-background-color{background-color:var(--wp--preset--color--secondary)!important;}.has-secondary-color{color:var(--wp--preset--color--secondary)!important;}
.has-accent-background-color{background-color:var(--wp--preset--color--accent)!important;}.has-accent-color{color:var(--wp--preset--color--accent)!important;}
.has-dark-background-color{background-color:var(--wp--preset--color--dark)!important;}.has-dark-color{color:var(--wp--preset--color--dark)!important;}
.has-light-background-color{background-color:var(--wp--preset--color--light)!important;}.has-light-color{color:var(--wp--preset--color--light)!important;}
.has-white-background-color{background-color:var(--wp--preset--color--white)!important;}.has-white-color{color:var(--wp--preset--color--white)!important;}
.has-black-background-color{background-color:var(--wp--preset--color--black)!important;}.has-black-color{color:var(--wp--preset--color--black)!important;}


/* ===================== FONTS ===================== */
h1,h2,h3,h4,h5,h6{clear:both;margin:0;}

h1{font-size:2.5rem;}
h2{font-size:2.25rem;}
h3{font-size:2rem;}
h4{font-size:1.75rem;}
h5{font-size:1.5rem;}
h6{font-size:1.25rem;}

body{background:#fff;}

p{margin-bottom:1.5em;font-size:1rem;}

/* ==================== HEADER AND MAIN MENU ==================== */
/* Neutral working layout. The child theme styles the look (colours, button, drop-down or slide-in).
   The menu switches to the "Menu" button automatically when its items don't fit (js/lfwd-site.js).
   For a fixed switch point instead, add to the child's style.css:  .lf-header{--lf-menu-breakpoint:900px;} */
.lf-header{position:relative;z-index:100;}
.lf-header__inner{max-width:1400px;margin-left:auto;margin-right:auto;padding:1em;display:flex;align-items:center;justify-content:space-between;gap:2em;}
.lf-header__brand{flex:0 0 auto;}
p.site-title,h1.site-title{margin:0;font-size:1.5rem;}
.site-title a{text-decoration:none;color:inherit;}
.site-description{margin:0;font-size:0.9rem;}
.custom-logo-link{display:inline-block;}
.custom-logo{display:block;height:auto;}

.lf-nav{flex:1 1 auto;min-width:0;display:flex;justify-content:flex-end;}
.lf-nav__menu{list-style:none;margin:0;padding:0;display:flex;justify-content:flex-end;gap:1.5em;flex-wrap:wrap;}
.lf-header.has-js .lf-nav__menu{flex-wrap:nowrap;min-width:0;}
.lf-nav__menu li{position:relative;display:flex;align-items:center;flex-wrap:wrap;white-space:nowrap;}
.lf-nav__menu a{display:block;padding:0.5em 0;text-decoration:none;}

/* Dropdowns (desktop): open on hover, keyboard focus, or the little toggle button */
.lf-nav__menu ul{list-style:none;margin:0;padding:0.5em 0;position:absolute;top:100%;left:0;min-width:220px;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,0.15);display:none;z-index:10;}
.lf-nav__menu ul ul{top:0;left:100%;}
.lf-nav__menu ul li{display:flex;}
.lf-nav__menu ul a{padding:0.5em 1em;width:100%;white-space:normal;}
.lf-nav__menu li:hover > ul,.lf-nav__menu li:focus-within > ul,.lf-nav__menu li.is-open > ul{display:block;}
.lf-submenu-toggle{display:inline-grid;place-items:center;width:1.75em;height:1.75em;margin-left:0.15em;padding:0;border:0;background:none;color:inherit;cursor:pointer;}
.lf-submenu-toggle svg{transition:transform 0.2s ease;}
.lf-nav__menu li.is-open > .lf-submenu-toggle svg{transform:rotate(180deg);}

/* Menu button: hidden until the menu doesn't fit */
.lf-nav__toggle{display:none;align-items:center;gap:0.6em;padding:0.6em 0.9em;border:1px solid currentColor;border-radius:6px;background:none;color:inherit;font:inherit;font-weight:700;line-height:1;cursor:pointer;}
.lf-nav__icon{position:relative;display:block;width:20px;height:14px;}
.lf-nav__icon::before,.lf-nav__icon::after,.lf-nav__icon span{content:"";position:absolute;left:0;width:100%;height:2px;background:currentColor;transition:transform 0.2s ease,opacity 0.2s ease;}
.lf-nav__icon::before{top:0;}
.lf-nav__icon span{top:6px;}
.lf-nav__icon::after{top:12px;}
.lf-nav.is-open .lf-nav__icon::before{transform:translateY(6px) rotate(45deg);}
.lf-nav.is-open .lf-nav__icon span{opacity:0;}
.lf-nav.is-open .lf-nav__icon::after{transform:translateY(-6px) rotate(-45deg);}

/* Collapsed: button shows, menu drops down under the header when opened */
.lf-header.is-collapsed .lf-nav__toggle{display:inline-flex;}
.lf-header.is-collapsed .lf-nav__menu{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:0.5em 1em 1em;background:#fff;box-shadow:0 6px 12px rgba(0,0,0,0.12);}
.lf-header.is-collapsed .lf-nav.is-open .lf-nav__menu{display:flex;}
.lf-header.is-collapsed .lf-nav__menu li{justify-content:space-between;white-space:normal;}
.lf-header.is-collapsed .lf-nav__menu > li{border-bottom:1px solid rgba(0,0,0,0.08);}
.lf-header.is-collapsed .lf-nav__menu a{flex:1;padding:0.75em 0;}
.lf-header.is-collapsed .lf-nav__menu ul{position:static;display:none;width:100%;min-width:0;box-shadow:none;padding:0 0 0.5em 1em;background:none;}
.lf-header.is-collapsed .lf-nav__menu li:hover > ul,.lf-header.is-collapsed .lf-nav__menu li:focus-within > ul{display:none;}
.lf-header.is-collapsed .lf-nav__menu li.is-open > ul{display:block;}
.lf-header.is-collapsed .lf-submenu-toggle{width:2.5em;height:2.5em;}

/* ====================== LINKS ====================== */
a{color:#4169e1;}
a:visited{color:#800080;}
a:hover,a:focus,a:active{color: #191970;}
a:focus{outline:thin dotted;}
a:hover,a:active{outline:0;}

/* ==================== BUTTONS ==================== */
button,input[type="button"],input[type="reset"],input[type="submit"] {border:1px solid;border-color:#ccc #ccc #bbb;border-radius:3px;background:#e6e6e6;color:rgba(0, 0, 0, 0.8);line-height:1;padding:0.6em 1em 0.4em;}

button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover{border-color:#ccc #bbb #aaa;}

button:active,button:focus,input[type="button"]:active,input[type="button"]:focus,input[type="reset"]:active,input[type="reset"]:focus,input[type="submit"]:active,input[type="submit"]:focus{border-color:#aaa #bbb #bbb;}

/* ==================== FORMS ==================== */
input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],input[type="range"],input[type="date"],input[type="month"],input[type="week"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="color"],textarea{color:#666;border:1px solid #ccc;border-radius:3px;padding:3px;}

input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,input[type="number"]:focus,input[type="tel"]:focus,input[type="range"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="time"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="color"]:focus,textarea:focus{color:#111;}

select{border:1px solid #ccc;}

textarea{width:100%;}

/* ==================== SITE WIDE ==================== */
.entry-content{margin:0;}

.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{margin-left:auto;margin-right:auto;}

.sidepadding{padding-left:1em;padding-right:1em;}

/* ==================== BLOG, ARCHIVES, SEARCH, SINGLE POST, 404 ==================== */
/* Neutral layout only - colours, fonts and card styling go in the child theme. */
.lf-container{max-width:1400px;margin-left:auto;margin-right:auto;padding:3em 1em;}
.lf-page-header{margin-bottom:2em;}
.lf-page-title{margin-bottom:0.5em;}
.lf-page-intro{max-width:800px;}

/* Search box */
.search-form{display:flex;gap:0.5em;max-width:520px;}
.search-form label{flex:1;}
.search-form .search-field{width:100%;padding:0.75em;border:1px solid #ccc;border-radius:6px;font:inherit;}
.search-form .search-submit{padding:0.75em 1.25em;border:0;border-radius:6px;background:var(--wp--preset--color--primary,#333);color:var(--wp--preset--color--white,#fff);font:inherit;font-weight:700;cursor:pointer;}

/* Button (used for "Read more") */
.lf-button{display:inline-flex;align-items:center;gap:0.75em;padding:0.5em 0.5em 0.5em 1.1em;border-radius:6px;background:var(--wp--preset--color--primary,#333);color:var(--wp--preset--color--white,#fff);font-weight:700;text-decoration:none;}
.lf-button:visited,.lf-button:hover,.lf-button:focus{color:var(--wp--preset--color--white,#fff);}
.lf-button:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.lf-button__arrow{display:grid;place-items:center;width:2.2em;height:2.2em;border-radius:4px;background:rgba(0,0,0,0.25);}

/* Post cards */
.lf-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5em;}
.lf-card-post{display:flex;flex-direction:column;background:#f5f5f5;}
.lf-card-post__image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;}
.lf-card-post__body{display:flex;flex-direction:column;flex:1;padding:1.25em;}
.lf-card-post__title{font-size:1.5rem;margin-bottom:0.5em;}
.lf-card-post__title a{text-decoration:none;color:inherit;}
.lf-card-post__title a:hover,.lf-card-post__title a:focus{text-decoration:underline;}
.lf-card-post__excerpt{margin-bottom:1.25em;}
.lf-card-post__more{margin-top:auto;align-self:flex-start;}

/* Older / newer posts and previous / next post links */
.lf-posts-nav,.lf-post-nav{margin-top:3em;padding-top:1.5em;}
.lf-post-nav__label{display:block;font-size:0.85rem;text-transform:uppercase;letter-spacing:0.05em;}

/* Single post - text kept to a comfortable reading width */
.lf-single .lf-post,.lf-single .lf-post-nav,.lf-single .comments-area{max-width:800px;margin-left:auto;margin-right:auto;}
.lf-post__meta{margin:0.5em 0 1.5em;font-size:0.9rem;}
.lf-post__meta > span{margin-right:1em;}
.lf-post__image{margin-bottom:2em;}
.lf-post__image img{width:100%;}
.lf-post__footer{margin-top:2em;font-size:0.9rem;}
.lf-post__footer > span{display:block;}

/* Nothing found */
.lf-no-results__content{max-width:800px;}

/* ========== LIST SECTION ========== */
.list{padding-left:2.5em;}


/* ==================== SITE FOOTER ==================== */
.edit-link{display:none;height:0;}
.lf-footer__inner{max-width:1400px;margin-left:auto;margin-right:auto;padding:2em 1em;}
/* Widget columns sit side by side when there's room and stack on smaller screens */
.lf-footer__widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2em;margin-bottom:2em;}
.lf-footer__credit{text-align:center;font-size:0.85rem;padding-top:1em;}

/* ================= BACK TO TOP BUTTON ================= */
/* Appears after scrolling down. Switch it off in Appearance > Customise > Back to top. */
.lf-back-to-top{position:fixed;right:1.25em;bottom:1.25em;z-index:90;display:grid;place-items:center;width:3em;height:3em;border-radius:50%;background:var(--wp--preset--color--primary,#333);color:var(--wp--preset--color--white,#fff);opacity:0;visibility:hidden;transform:translateY(0.5em);transition:opacity 0.2s ease,transform 0.2s ease,visibility 0.2s;}
.lf-back-to-top.is-visible{opacity:1;visibility:visible;transform:none;}
.lf-back-to-top:hover,.lf-back-to-top:focus,.lf-back-to-top:visited{color:var(--wp--preset--color--white,#fff);}

/* ================= REDUCED MOTION ================= */
/* Visitors who've switched on "reduce motion" in their device settings get no animations. */
@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto!important;}
*,*::before,*::after{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;}
}

/* =================== LEGAL PAGES =================== */


/* ===================== 404 PAGE ===================== */


/* ======================================== MEDIA QUERIES ======================================== */
/* =========== MEDIA QUERIES - 400px and down =========== */
@media only screen and (max-width: 400px) {

}


/* =========== MEDIA QUERIES - 781px and down =========== */
@media (max-width: 781px) {



.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:auto!important;}



}





/* =========== MEDIA QUERIES - 1024px and down =========== */
@media only screen and (max-width: 1024px){
.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{margin-left:0;margin-right:0;}



}


/* ======== MEDIA QUERIES - 481px MIN - 768px MAX ======== */
@media only screen and (min-width: 481px) and (max-width: 768px) {

}


/* ======== MEDIA QUERIES - 769px MIN - 1024px MAX ======== */
@media only screen and (min-width: 769px) and (max-width: 1024px) {

}


/* ======== MEDIA QUERIES - 1025px MIN - 1200px MAX ======== */
@media only screen and (min-width: 1025px) and (max-width: 1200px) {

}




