@import url('./reset.css');
@import url('./generate-reset.css');
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');





:root {
	--heading-font: "Domine", serif;
	--primary-font: "Raleway", sans-serif;
	--max-content-width: 1200px;
	--max-text-width: 800px;
	--wp--preset--font-size--x-large: 2em;
	--wp--preset--font-size--large: 1.5em;
	--wp--preset--font-size--medium: 1.125em;
	--wp--preset--font-size--small: .875em;
	--testing-border: none;
	--testing-border: 0px solid red;
}



/*
 * 
 * Site Structure
 * 
 */
body {
	font-family: var(--primary-font);
	#masthead {
		border-bottom: var(--testing-border);
		box-shadow: 0 10px 40px 0px rgba(170,170,170,.5);
		.inside-header {
			.site-logo {
			}
			.site-branding {
				.main-title {
				}
				.site-description {
				}
			}
			.main-navigation {
				.inside-navigation {
					#primary-menu {
						& > ul.menu {
							li.page_item {
								a {
								}
							}
						}
					}
				}
			}
		}
	}
	#page {
		#content {
			#primary {
				#main {
					margin: 0;
					.inside-article {
						padding-top: 0;
						padding-bottom: 0;
						& > .entry-header {
							& > .entry-title {
								margin-top: 2em;
								text-align: center;
							}
						}
						& > .entry-content {
							
						}
					}
					& > .page {
					}
					& > .post {
					}
					& > .comments-area {
					}
				}
			}
		}
	}
	.site-footer {
		.inside-footer-widgets > .footer-widget-1 {
		}
	}
}



#page {
	.wp-block-gallery > .wp-block-image:first-child {
		width: 100% !important;
		&:has(figcaption)::before {
			backdrop-filter: none;
		}
		& > figcaption {
			font-family: var(--heading-font);
			font-size: clamp( 1.5em , 6vw , 4em );
			font-weight: bold;
			line-height: 1;
			text-wrap: balance;
			text-shadow: 4px 4px 4px rgba(0,0,0,.5);
			color: #fff;
			background: none;
			position: absolute;
			height: 100%;
			top: 0;
			max-width: 800px;
			margin: 0 auto;
			padding: 20% 1em;
			cursor: zoom-in;
		}
	}
}


.entry-content .wp-block-image {
	margin-top: 3em;
	margin-bottom: 3em;
}


#instagram-wrapper {
	background: #F3EFE7;
	margin: 3em 0 0 0;
	padding: 3em 0;
	h3 {
		text-align: center;
	}
}


#page .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
	& > img {
		object-fit: none !important;
	}
	&:first-child {
		& > img {
			object-fit: cover !important;
		}
	}
}



body.category-media.archive,
body.category,
body.blog {
	.inside-article {
		--borders: none;
		display: grid;
		grid-template-areas: 
		"header header" 
		"description description";
		align-items: start;
		margin: 0 0 3em 0;
		&:has(div.post-image){
			grid-template-areas: 
			"image header header" 
			"image description description"
			"image description description"
			"image description description";
		}
		& > .entry-header {
			border: var(--borders);
			grid-area: header;
			.entry-title {
				text-align: left !important;
				font-size: 1.5em;
				color: var(--accent);
				margin: 0 !important;
			}
		}
		& > .post-image {
			border: var(--borders);
			grid-area: image;
			margin: 0 2em 0 0;
			justify-self: stretch;
			img {
				width: 200px;
				min-width: 200px;
			}
		}
		& > .entry-summary {
			border: var(--borders);
			grid-area: description;
			margin: 0;
		}
		& .entry-meta {
			display: none;
		}
	}
}


#page .paging-navigation {
	text-align: center;
	.nav-links {
		display: flex;
		justify-content: center;
		gap: 5px;
		& > span, & > a {
			border: 1px solid #ccc;
			border-radius: 1000px;
			text-decoration: none;
			--size: 35px;
			width: var(--size);
			height: var(--size);
			display: flex;
			text-align: center;
			align-items: stretch;
			align-content: stretch;
			justify-content: center;
			padding: 2px 0 0 0;
			&.current { color: #ccc; }
			&.next, &.prev { display: none; }
		}
	}
}

#page blockquote {
	max-width: 800px;
	padding: 1em 0;
	margin: 1em auto;
	border: 0;
	font-size: 1em;
	border-top: 1px solid #ccc;
	cite {
		display: block;
		text-align: right;
		margin: .5em 0 0 0;
		font-style: normal;
		font-weight: bold;
		text-transform: uppercase;
		padding: 0 0 1em 0;
		&::before {
			content: " ~ ";
		} 
	}
}

body.page .featured-image,
body.single-post .featured-image {
	display: none;	
}


.page-title {
	small {
		text-transform: uppercase;
		font-size: .4em;
		font-weight: normal;
	}
}


body.archive {
	.page-header {
		&:has(div.taxonomy-description) {
			.page-title {
				margin-bottom: 0;
			}
		}
		.taxonomy-description {
			font-family: var(--heading-font);
			font-size: 1.25em;
		}
	}
}



 html #masthead {
	& .mobile-menu-control-wrapper .menu-toggle, 
	& .mobile-menu-control-wrapper .menu-toggle:hover, 
	& .mobile-menu-control-wrapper .menu-toggle:focus, 
	& .has-inline-mobile-toggle #site-navigation.toggled {
		background-color: #aaa;
	}
}



#page .wp-block-image {
	figcaption {
		font-weight: bold;
	}	
}


#footer-widgets {
	.footer-widget-2 {
		flex-grow: 4;
	}
}


#masthead .main-navigation ul ul {
	width: 300px;
}

#masthead .main-navigation .main-nav ul li a {
	line-height: 40px;
	padding: 10px 20px;
	text-transform: uppercase;
	font-size: .75em;
	font-weight: bold;
	letter-spacing: .5px;
	.dropdown-menu-toggle {
		padding: 0 10px;
	}
}
#masthead .main-navigation .main-nav ul ul li a {
	border-bottom: 1px solid #ccc;
}


.read-more {
	display: block;
}


body.category {
	.page-title {
		text-transform: capitalize;
	}
	.blog-home-link {
		text-transform: uppercase;
		font-size: 33%;
		color: var(--accent);
		display: block;
	}
}
.category-links {
	display: flex;
	flex-wrap: wrap;
	a {
		flex: 1 1 auto;
		display: inline-block;
		background: var(--accent);
		color: #fff;
		padding: 10px;
		margin: 0 10px 10px 0;
		font-weight: bold;
		text-transform: capitalize;
		text-align: center;
		line-height: 1;
		&:hover {
			text-decoration: none;
		}
	}
}

.category-text-links {
	text-align: center;
	padding: 10px 0;
	margin: 0;
	font-size: .8rem;
	i {
		font-style: normal;
	}
	a {
		text-transform: uppercase;
		font-weight: bold;
		color: var(--accent);
	}
	a:hover {
		text-decoration: none;
	}
}