/*
Theme Name: Caleb Gittins '25
Theme URI: https://calebgittins.com.au/
Author: Caleb Gittins
Author URI: https://calebgittins.com.au
Description: A portfolio website for Caleb Gittins
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calebgittins
*/

* {
	box-sizing: border-box;
}

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

/* html,
body,
.wp-site-blocks {
	font-size: 100%;
} */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
	margin-block-start: 0;
	margin-block-end: 0;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.wp-block-site-logo img {
  width: auto !important; /* your desired width */
  height: 12px;
}

/*
 * Body Background
 *
*/

.main.wp-block-group {
	padding-top: 52px;
	padding-bottom: 52px;
}

body:has(.body__bg) .wp-site-blocks {
	position: relative;
	z-index: 2;
}

.body__bg,
.body__bg--x,
.body__bg--y {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	overflow: hidden;
}

.body__bg--x,
.body__bg--y {
	display: flex;
	gap: 23px;
}

.body__bg--x {
	flex-direction: column;
	/* align-items: center; */
}

.body__bg--y {
	justify-content: flex-start;
}

.body__bg__line {
	background-color: var(--wp--preset--color--base);
	opacity: 0.1;
	flex-shrink: 0;
}

.body__bg--x .body__bg__line {
	height: 1px;
	width: 100vw;
}

.body__bg--y .body__bg__line {
	height: 100vh;
	width: 1px;
}

/* @media screen and (min-width: 1200px) {
	.body__bg--y {
		justify-content: center;
	}
} */

/*
 * Footer
 */

 body {
	position: relative;
 }

 .wp-site-blocks {
	min-height: 100vh;
 }

@media screen and (min-width: 900px) {
	footer.wp-block-template-part {
		position: absolute;
		z-index: 4;
		bottom: 0;
		left: 0;
		right: 0;
	}
}

footer.wp-block-template-part a {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-bottom: 1px solid;
	font-weight: 700;
}

@media screen and (min-width: 900px) {
	header.wp-block-template-part {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
	}
}

.is-full-height {
	min-height: 100vh;
}

.is-position-center {
	display: flex;
	align-items: center;
}

.body__monogram {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	opacity: 0.1;
	width: 80vw;
}

.body__monogram svg {
	width: 100%;
	height: auto;
}

@media screen and (max-width: 899px) {
	.is-hidden-mobile {
		display: none;
	}
}

@media screen and (min-width: 900px) {
	.is-hidden-desktop {
		display: none;
	}
}
