/* Enable my fonts */

	.wp-block-site-title, h1, h2 {
	  font-variation-settings: "opsz" 144, "WONK" 1;
	}

/* YouTube spacing */

	.wp-block-embed.is-provider-youtube {
		margin-block: var(--wp--preset--spacing--50);
		border-radius:6px;
	}
	
	.wp-block-embed.is-provider-youtube:first-child {
		margin-block-start: 0;
	}
	
	.home .wp-block-cover__inner-container .hide-on-home {
		display:none;
	}

/* Cover content fills the full height so items can sit at top and bottom */

	.shop-hero .wp-block-cover__inner-container {
		align-self: stretch;
		display: flex;
		flex-direction: column;
		padding-bottom: 50px; /* distance from the bottom of the screen */
		box-sizing: border-box;
	}

/* Push the title group to the bottom */
	.shop-hero .hero-bottom {
		margin-top: auto;
	}

/* Keep blocks inside the Cover at their proper width */
	.shop-hero .wp-block-cover__inner-container > * {
		width: 100%;
		box-sizing: border-box;
	}

	button.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button--full-width {
		color: var(--wp--preset--color--accent-5);
	}

/* Lightbox: solid black background that hides the page */

	#baguetteBox-overlay {
	    background-color: #000 !important;
	}

/* Lightbox: keep every image clear of the screen edges */

	#baguetteBox-overlay .full-image img {
	    max-width: 92vw !important;
	    max-height: 88vh !important;   /* a bit less than the width, to leave room for the caption and arrows */
	    box-shadow: none;
	}

/* Lightbox: a thin frame around each image */

	#baguetteBox-overlay .full-image img {
	    outline: 1px solid rgba(255, 255, 255, 0.25);
	    outline-offset: 0;
	}
/* Lightbox: make the arrows and close button a bit subtler on black */

	#baguetteBox-overlay .baguetteBox-button {
	    background-color: rgba(255, 255, 255, 0.08) !important;
	}

/* Shop front header styles */

	.shop-hero {
		align-items: flex-start !important; /* keeps the header at the top */
	}
	
	.shop-hero .wp-block-cover__inner-container {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}

/* Header text colours when overlaid on images */

	.shop-header,
	.shop-header a,
	.shop-header .wp-block-site-title a {
		color: #fff;
	}

/* Copyright shortcode */

	.copyright-line {
		font-size: var(--wp--preset--font-size--small) !important;
		color: var(--wp--preset--color--accent-5);
	}
	.copyright-line a {
		color:white;
	}

/* Menu */

	/* Pipe separators between top-level menu items */
	.pipe-menu .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before {
		content: "|";
		content: "|" / ""; /* hides the pipe from screen readers in browsers that support it */
		margin-right: var(--wp--style--block-gap, 1em);
		opacity: 0.5;
	}
	
	/* Use the hamburger menu up to 781px instead of WordPress's default 599px */
	@media (min-width: 600px) and (max-width: 781px) {
		.wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
	    	display: flex;
	  	}
		.wp-block-navigation .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	    	display: none;
		}
	}

	/* Spacing: change these two values to adjust everything at once */
	.nav-col {
		container-type: inline-size;
		--menu-gap: 1.1rem;     /* space either side of each pipe, and between icons */
		--menu-row-gap: 10px;   /* space between the two menu rows */
	}
	
	/* Never break menu words mid-word */
	.two-by-two .wp-block-navigation-item__content {
		white-space: nowrap;
	}
	
	/* Menu as a grid, 4 across (only when the overlay isn't open) */
	.two-by-two .wp-block-navigation__responsive-container:not(.is-menu-open) ul.wp-block-navigation__container {
		display: grid !important;
		grid-template-columns: repeat(4, auto);
		justify-content: end;
		column-gap: var(--menu-gap);
		row-gap: var(--menu-row-gap);
	}
	
	/* Pipes between items, plus one after the last (Shop) */
	.pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before,
	.pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:last-child::after {
		content: "|";
	 	content: "|" / "";
	 	opacity: 0.5;
	}
	.pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before {
		margin-right: var(--menu-gap);
	}
	.pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:last-child::after {
	 	margin-left: var(--menu-gap);
	}
	
	/* Even spacing between the menu, basket and account */
	.nav-col .nav-row {
	  	gap: var(--menu-gap) !important;
	  	align-items: center !important;
	}
	
	/* 800px+ but the column is tight: menu 2 × 2, icons stacked and lined up with each row */
	@media (min-width: 800px) {
	  	@container (max-width: 560px) {
	    	.two-by-two .wp-block-navigation__responsive-container:not(.is-menu-open) ul.wp-block-navigation__container {
	      		grid-template-columns: repeat(2, auto);
	    	}
		    /* no pipe at the start of a row… */
		    .pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:nth-child(odd)::before {
		    	content: none;
		    }
		    /* …but one at the end of each row (after About and Shop) */
		    .pipe-menu .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2)::after {
			    content: "|";
			    content: "|" / "";
			    opacity: 0.5;
			    margin-left: var(--menu-gap);
		    }
		    .nav-col .nav-row {
		    	display: grid !important;
		    	grid-template-columns: auto auto;
		    	grid-template-rows: 1fr 1fr;
		    	justify-content: end;
		    	column-gap: var(--menu-gap);
		    	row-gap: var(--menu-row-gap) !important;
		    }
		    .nav-col .nav-row > .two-by-two {
		    	grid-row: 1 / span 2;
		    }
		}
	}
	
	/* Under 800px (hamburger): a neat right-hand column of three icons */
	@media (max-width: 799px) {
		.header-cols > .wp-block-column.nav-col {
	    	align-self: flex-start;
	  	}
		.nav-col .nav-row {
	    	flex-direction: column !important;
	    	justify-content: flex-start !important;
	    	align-items: flex-end !important;
	    	gap: 12px !important;
	 	}
		.nav-col .nav-row > * {
	    	margin: 0 !important;
	    	width: 44px;
	    	display: flex;
	    	justify-content: center;
		}
	}
	
	/* Under 490px: icons drop below the title, in a row lined up with the text */
	@media (max-width: 489px) {
		.wp-block-columns.is-not-stacked-on-mobile.header-cols {
			flex-wrap: wrap !important;
		}
		.header-cols > .wp-block-column.nav-col {
			flex-basis: calc(100% - 100px) !important;
			flex-grow: 0 !important;
			margin-left: 100px !important; /* the logo column's width */
			margin-top: 0.5rem;
	  }
	  .nav-col .nav-row {
	    flex-direction: row !important;
	    justify-content: flex-start !important;
	    align-items: center !important;
	  }
	}
	
/* Readability tweaks */

	.entry-content > * { max-width: 66ch; }
	.wp-block-post-excerpt, .wp-block-post-terms { font-size: 1rem; }  /* nothing under 16px */
	:root :where(.wp-block-quote) {
		font-weight: 400;
		margin: 30px 0 30px 0;
		padding-top: 0;
		padding-right: var(--wp--preset--spacing--40);
		padding-bottom: 0;
		padding-left: var(--wp--preset--spacing--40);
	}
	
	/* Lede: first top-level paragraph on single posts and pages, not archives or products */
	body:is(.single, .page):not(.single-product) .entry-content > p:first-of-type,
	.entry-content p.lede {
		font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5625rem)!important; /* 20px on phones, up to 25px */
		line-height: 1.5;
	}